-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- the full HTML output can be built with sphinx-build -b html -c tests/ tests/awesome-selfhosted-html/ tests/awesome-selfhosted-html/html - needs pip3 install sphinx sphinx-rtd-theme myst-parser - TODO fix build warnings - TODO fix TOC/left sidebar generation (WARNING: Le document n'est inclus dans aucune table des matières de l'arborescence.) - ref. https://github.com/readthedocs/sphinx_rtd_theme/blob/master/docs/index.rst - ref. https://sphinx-rtd-theme.readthedocs.io/en/stable/configuring.html - ref. https://www.sphinx-doc.org/en/master/usage/quickstart.html - ref. https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-toctree - ref. https://myst-parser.readthedocs.io/en/latest/syntax/organising_content.html - ref. https://github.com/executablebooks/MyST-Parser
- Loading branch information
Showing
2 changed files
with
110 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
project = 'awesome-selfhosted' | ||
author = 'awesome-selfhosted community' | ||
version = '1.0' | ||
release = '1.0' | ||
html_show_copyright = True | ||
|
||
# -- General configuration --------------------------------------------------- | ||
|
||
# Add any Sphinx extension module names here, as strings. They can be | ||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||
# ones. | ||
extensions = ['myst_parser', 'sphinx_rtd_theme'] | ||
|
||
# Only parse .md files | ||
source_suffix = ['.md'] | ||
|
||
# Add any paths that contain templates here, relative to this directory. | ||
templates_path = ['_templates'] | ||
|
||
# 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. | ||
exclude_patterns = [] | ||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
|
||
# The theme to use for HTML and HTML Help pages. See the documentation for | ||
# a list of builtin themes. | ||
# | ||
html_theme = 'sphinx_rtd_theme' | ||
html_show_sphinx = True | ||
|
||
# Add any paths that contain custom static files (such as style sheets) here, | ||
# relative to this directory. They are copied after the builtin static files, | ||
# so a file named "default.css" will overwrite the builtin "default.css". | ||
# html_static_path = ['_static'] | ||
# html_css_files = ['style.css'] | ||
|
||
html_theme_options = { | ||
'display_version': True, | ||
'prev_next_buttons_location': 'bottom', | ||
'style_external_links': True, | ||
'vcs_pageview_mode': 'edit', | ||
'collapse_navigation': False, | ||
'sticky_navigation': True, | ||
'navigation_depth': 4, # Defines sidebar navigation depth | ||
'titles_only': False | ||
} | ||
|
||
# html_context = { | ||
# "display_gitlab": True, # Integrate Gitlab | ||
# "gitlab_host": "gitlab.com", | ||
# "gitlab_user": "nodiscc", # Username | ||
# "gitlab_repo": "toolbox", # Repo name | ||
# "gitlab_version": "master", # Version | ||
# "conf_py_path": "/doc/md/" # Path in the checkout to the docs root | ||
# } | ||
|
||
# exclude_patterns = ['README.md'] | ||
|
||
# Load the recommonmark auto TOC generator | ||
# It will find any section named as defined in 'auto_toc_tree_section', | ||
# find any bullet lists of relative markdown links | ||
# And use it to generate a TOC and populate the sidebar | ||
# from recommonmark.parser import CommonMarkParser | ||
# from recommonmark.transform import AutoStructify | ||
# def setup(app): | ||
# app.add_config_value('recommonmark_config', { | ||
# 'enable_auto_toc_tree': True, | ||
# 'auto_toc_tree_section': 'Index', | ||
# 'auto_toc_maxdepth': 2, # Defines in-place generated TOC depth, not the sidebar depth | ||
# }, True) | ||
# app.add_transform(AutoStructify) |