2023-12-17 20:25:53 +01:00
|
|
|
|
# Configuration file for the Sphinx documentation builder.
|
|
|
|
|
#
|
|
|
|
|
# -- Path setup --------------------------------------------------------------
|
|
|
|
|
|
2024-10-14 19:17:44 +02:00
|
|
|
|
import sys, os
|
2023-12-17 20:25:53 +01:00
|
|
|
|
# sys.path.insert(0, os.path.abspath('.'))
|
2024-10-14 19:17:44 +02:00
|
|
|
|
#sys.path.append(os.path.abspath('ext'))
|
|
|
|
|
sys.path.append('.')
|
2023-12-17 20:25:53 +01:00
|
|
|
|
|
2024-10-15 07:31:31 +02:00
|
|
|
|
#---- debug mode ----
|
2024-10-14 14:05:23 +02:00
|
|
|
|
# shows/hides the todos
|
2024-10-21 15:42:52 +02:00
|
|
|
|
todo_include_todos = True
|
2023-12-17 20:25:53 +01:00
|
|
|
|
|
|
|
|
|
# -- Project information -----------------------------------------------------
|
|
|
|
|
|
|
|
|
|
project = 'Rougail'
|
2024-10-15 07:31:31 +02:00
|
|
|
|
copyright = '2019-2024, Silique'
|
2023-12-17 20:25:53 +01:00
|
|
|
|
author = 'gwen'
|
|
|
|
|
|
|
|
|
|
# The short X.Y version
|
|
|
|
|
version = ''
|
|
|
|
|
# The full version, including alpha/beta/rc tags
|
|
|
|
|
release = '1.0'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# -- General configuration ---------------------------------------------------
|
|
|
|
|
|
|
|
|
|
# If your documentation needs a minimal Sphinx version, state it here.
|
|
|
|
|
#
|
|
|
|
|
# needs_sphinx = '1.0'
|
|
|
|
|
|
|
|
|
|
extensions = [
|
2024-10-14 19:17:44 +02:00
|
|
|
|
'sphinx.ext.extlinks', 'sphinx_lesson', 'sphinx.ext.todo',
|
|
|
|
|
'sphinx.ext.extlinks', 'ext.xref', 'ext.extinclude'
|
2023-12-17 20:25:53 +01:00
|
|
|
|
]
|
|
|
|
|
|
2024-10-15 07:31:31 +02:00
|
|
|
|
#---- xref links ----
|
|
|
|
|
#import the xref.py extension
|
2024-10-14 19:17:44 +02:00
|
|
|
|
xref_links = {"link_name" : ("user text", "url")}
|
|
|
|
|
|
2024-10-14 22:51:05 +02:00
|
|
|
|
#link_name = "Sphinx External Links"
|
|
|
|
|
#user_text = "modified External Links Extension"
|
|
|
|
|
#url = "http://www.sphinx-doc.org/en/stable/ext/extlinks.html"
|
2024-10-15 07:31:31 +02:00
|
|
|
|
#enables syntax like:
|
|
|
|
|
" :xref:`tiramisu` "
|
2024-10-14 19:17:44 +02:00
|
|
|
|
links = {
|
|
|
|
|
'tiramisu': ('Tiramisu', 'https://tiramisu.readthedocs.io/en/latest/'),
|
|
|
|
|
'tiramisu library': ('Tiramisu library homepage', 'https://forge.cloud.silique.fr/stove/tiramisu'),
|
|
|
|
|
}
|
|
|
|
|
xref_links.update(links)
|
2024-10-15 07:31:31 +02:00
|
|
|
|
#---- ext links ----
|
2023-12-17 20:25:53 +01:00
|
|
|
|
# **extlinks** 'sphinx.ext.extlinks',
|
2024-10-15 07:31:31 +02:00
|
|
|
|
# enables syntax like
|
|
|
|
|
" :source:`v1.1_010/firefox/00-proxy.yml` "
|
|
|
|
|
extlinks = {'source': ('https://forge.cloud.silique.fr/stove/rougail-tutorials/raw/tag/%s',
|
|
|
|
|
'source: %s'),
|
|
|
|
|
}
|
|
|
|
|
#---- options for HTML output ----
|
2023-12-17 20:25:53 +01:00
|
|
|
|
default_role = "code"
|
|
|
|
|
html_theme = "sphinx_rtd_theme"
|
|
|
|
|
pygments_style = 'sphinx'
|
|
|
|
|
html_short_title = "Rougail"
|
|
|
|
|
html_title = "Rougail documenation"
|
|
|
|
|
html_show_sourcelink = False
|
|
|
|
|
html_show_sphinx = False
|
|
|
|
|
html_show_copyright = True
|
2024-10-15 07:31:31 +02:00
|
|
|
|
# The name of the Pygments (syntax highlighting) style to use.
|
|
|
|
|
pygments_style = None
|
|
|
|
|
html_static_path = ['_static']
|
2023-12-17 20:25:53 +01:00
|
|
|
|
|
|
|
|
|
# Add any paths that contain templates here, relative to this directory.
|
|
|
|
|
templates_path = ['_templates']
|
|
|
|
|
|
|
|
|
|
# The suffix(es) of source filenames.
|
|
|
|
|
# You can specify multiple suffix as a list of string:
|
|
|
|
|
#
|
|
|
|
|
#source_suffix = ['.rst', '.md']
|
|
|
|
|
source_suffix = '.rst'
|
|
|
|
|
#source_suffix = {
|
|
|
|
|
# '.rst': 'restructuredtext',
|
|
|
|
|
# '.txt': 'restructuredtext',
|
|
|
|
|
# '.md': 'markdown',
|
|
|
|
|
#}
|
|
|
|
|
# The master toctree document.
|
|
|
|
|
master_doc = 'index'
|
|
|
|
|
|
|
|
|
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
|
|
|
# for a list of supported languages.
|
|
|
|
|
#
|
|
|
|
|
# This is also used if you do content translation via gettext catalogs.
|
|
|
|
|
# Usually you set "language" from the command line for these cases.
|
|
|
|
|
language = 'en'
|
|
|
|
|
|
|
|
|
|
# List of patterns, relative to source directory, that match files and
|
|
|
|
|
# directories to ignore when looking for source files.
|
|
|
|
|
# This pattern also affects html_static_path and html_extra_path.
|
2024-10-14 19:17:44 +02:00
|
|
|
|
exclude_patterns = ['.venv', 'build', '_build', 'Thumbs.db', '.DS_Store']
|
2023-12-17 20:25:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def setup(app):
|
|
|
|
|
app.add_css_file('css/custom.css')
|