1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
royalnet/docs/source/conf.py

152 lines
3.1 KiB
Python
Raw Normal View History

2022-05-02 16:58:34 +00:00
# Extended Sphinx configuration
2020-11-17 01:59:35 +00:00
# https://www.sphinx-doc.org/en/master/usage/configuration.html
2022-05-02 16:58:34 +00:00
###########
# Imports #
###########
2020-11-17 01:59:35 +00:00
2022-05-02 16:58:34 +00:00
import datetime
2020-11-17 01:59:35 +00:00
2022-05-02 16:58:34 +00:00
###########################
# Developer configuration #
###########################
# Alter these to reflect the nature of your project!
# Project name
project = 'Royalnet'
# Project author
2020-11-17 01:59:35 +00:00
author = 'Stefano Pigozzi'
2022-05-02 16:58:34 +00:00
# Project copyright
project_copyright = f'{datetime.date.today().year}, {author}'
# Sphinx language
language = "en"
# Configuration for the theme
html_theme_options = {
# Set this to the main color of your project
"style_nav_header_background": "#FF7F00",
}
html_context = {
"display_github": True,
# Set this to the name of the organization this GitHub repository is in
"github_user": "Steffo99",
# Set this to the name of this repository
"github_repo": "royalnet",
# Set this to the name of the main branch slash docs slash
"github_version": "master/docs/",
}
2020-11-17 01:59:35 +00:00
2022-05-02 16:58:34 +00:00
##########################
# Advanced configuration #
##########################
# Change these options only if you need further customization
2020-11-17 01:59:35 +00:00
2022-05-02 16:58:34 +00:00
# Sphinx extensions
2020-11-17 01:59:35 +00:00
extensions = [
"sphinx.ext.intersphinx",
2022-05-02 16:58:34 +00:00
"sphinx.ext.autodoc",
"sphinx.ext.autosectionlabel",
"sphinx.ext.todo",
]
# Source files encoding
source_encoding = "UTF-8"
# Source file extensions
source_suffix = {
".rst": "restructuredtext",
}
# Source files parsers
source_parsers = {}
# The doc from which to start rendering
root_doc = "index"
# Files to ignore when rendering
exclude_patterns = [
"build",
"_build",
"Thumbs.db",
".DS_Store",
]
# Sphinx template files
templates_path = [
'_templates',
2020-11-17 01:59:35 +00:00
]
2022-05-02 16:58:34 +00:00
# Prologue of all rst files
rst_prolog = ""
# Epilogue of all rst files
rst_epilog = ""
2020-11-17 01:59:35 +00:00
2022-05-02 16:58:34 +00:00
# Default domain
primary_domain = "py"
# Default role
default_role = "any"
2020-11-17 01:59:35 +00:00
# Print warnings on the page
2022-05-02 16:58:34 +00:00
keep_warnings = False
2020-11-17 01:59:35 +00:00
# Display more warnings than usual
2022-05-02 16:58:34 +00:00
nitpicky = False
2020-11-17 01:59:35 +00:00
2022-05-02 16:58:34 +00:00
# Intersphinx URLs
2020-11-17 01:59:35 +00:00
intersphinx_mapping = {
2022-05-02 16:58:34 +00:00
"python": ("https://docs.python.org/3.10", None),
2020-11-17 01:59:35 +00:00
}
2022-05-02 16:58:34 +00:00
# Manpages URL
manpages_url = "https://man.archlinux.org/"
2020-11-17 01:59:35 +00:00
2022-05-02 16:58:34 +00:00
# HTML builder theme
html_theme = 'sphinx_rtd_theme'
# Title of the HTML page
html_title = f"{project}"
# Short title of the HTML page
html_short_title = f"{project}"
# Path of the documentation static files
html_static_path = [
"_static",
]
# Path of extra files to add to the build
html_extra_path = [
"_extra",
]
# Disable additional indexes
html_domain_indices = False
# LaTeX rendering engine to use
latex_engine = "lualatex"
# LaTeX top level title type
latex_toplevel_sectioning = "chapter"
# LaTeX URLs rendering
latex_show_urls = "footnote"
# LaTeX theme
latex_theme = "manual"
# TODOs
todo_include_todos = True
todo_emit_warnings = True
todo_link_only = False
# Smartquotes
smartquotes_excludes = {
"languages": [
# Smartquotes is completely broken in italian!
"it",
# Keep the default, just in case
"ja",
],
"builders": [
"man",
"text",
]
}
2020-11-17 01:59:35 +00:00
2022-05-02 16:58:34 +00:00
# Autodoc
autodoc_member_order = "bysource"
2020-12-10 19:01:13 +00:00
autodoc_default_options = {
2022-05-02 16:58:34 +00:00
"members": True,
"undoc-members": True,
2020-12-10 19:01:13 +00:00
}