summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-08-28 11:38:09 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-08-28 11:43:55 +0200
commit457de997097c53b1ddeb23e23b5e39078021db44 (patch)
tree7418cba1779d7c6d0602e3664163e22c71fee1d5
parent041ba07806d1b422e1e50b77551a280362dc18cd (diff)
downloadIshtar-457de997097c53b1ddeb23e23b5e39078021db44.tar.bz2
Ishtar-457de997097c53b1ddeb23e23b5e39078021db44.zip
👷 new readthedocs configuration file - explicit rdt theme
-rw-r--r--.readthedocs.yaml23
-rw-r--r--docs/fr/source/conf.py7
-rw-r--r--requirements_rtd.txt2
3 files changed, 30 insertions, 2 deletions
diff --git a/.readthedocs.yaml b/.readthedocs.yaml
new file mode 100644
index 000000000..52faf18dd
--- /dev/null
+++ b/.readthedocs.yaml
@@ -0,0 +1,23 @@
+# .readthedocs.yaml
+# Read the Docs configuration file
+# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
+
+# Required
+version: 2
+
+formats:
+ - pdf
+
+# Set the version of Python and other tools you might need
+build:
+ os: ubuntu-22.04
+ tools:
+ python: "3.9"
+
+# Build documentation in the docs/ directory with Sphinx
+sphinx:
+ configuration: docs/fr/source/conf.py
+
+python:
+ install:
+ - requirements: requirements_rtd.txt \ No newline at end of file
diff --git a/docs/fr/source/conf.py b/docs/fr/source/conf.py
index 1480d0fd7..53f6c4427 100644
--- a/docs/fr/source/conf.py
+++ b/docs/fr/source/conf.py
@@ -33,7 +33,9 @@ from version import __version__
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = []
+extensions = [
+ 'sphinx_rtd_theme',
+]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -99,7 +101,8 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-html_theme = 'default'
+#html_theme = 'default'
+html_theme = "sphinx_rtd_theme"
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
diff --git a/requirements_rtd.txt b/requirements_rtd.txt
index 6ed12fd60..f6d70f5a8 100644
--- a/requirements_rtd.txt
+++ b/requirements_rtd.txt
@@ -60,6 +60,8 @@ unidecode
-e git+https://github.com/jazzband/django-simple-history.git@2.7.0#egg=django-simple-history
django-extensions==3.0.3
+
+sphinx_rtd_theme
# old 2.1.4
# django-debug-toolbar==3.2.4