2021-11-08 03:21:52 +00:00
|
|
|
# Customized Sphinx configuration
|
2021-10-29 02:00:21 +00:00
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
|
|
|
|
|
|
import datetime
|
|
|
|
|
2021-11-08 03:21:52 +00:00
|
|
|
# Project name
|
2021-11-17 20:35:25 +00:00
|
|
|
project = 'Progettazione e sviluppo di Sophon, applicativo cloud a supporto della ricerca'
|
2021-11-08 03:21:52 +00:00
|
|
|
# Project author
|
2021-10-29 02:00:21 +00:00
|
|
|
author = 'Stefano Pigozzi'
|
2021-11-08 03:21:52 +00:00
|
|
|
# Project copyright
|
|
|
|
project_copyright = f'{datetime.date.today().year}, {author}'
|
|
|
|
|
|
|
|
# Sphinx language
|
2021-11-09 15:56:33 +00:00
|
|
|
language = "it"
|
2021-11-08 03:21:52 +00:00
|
|
|
# Sphinx extensions
|
2021-10-29 02:00:21 +00:00
|
|
|
extensions = [
|
|
|
|
"sphinx.ext.intersphinx",
|
2021-11-10 01:49:56 +00:00
|
|
|
"sphinx.ext.autosectionlabel",
|
2021-11-11 18:20:26 +00:00
|
|
|
"sphinx.ext.todo",
|
2021-11-30 11:36:49 +00:00
|
|
|
"sphinxcontrib.httpdomain",
|
2021-11-08 03:21:52 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
# 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',
|
2021-10-29 02:00:21 +00:00
|
|
|
]
|
|
|
|
|
2021-11-08 03:21:52 +00:00
|
|
|
# Prologue of all rst files
|
|
|
|
rst_prolog = ""
|
|
|
|
# Epilogue of all rst files
|
|
|
|
rst_epilog = ""
|
2021-10-29 02:00:21 +00:00
|
|
|
|
2021-11-08 03:21:52 +00:00
|
|
|
# Default domain
|
|
|
|
primary_domain = None
|
|
|
|
# Default role
|
2021-11-11 18:20:26 +00:00
|
|
|
default_role = "any"
|
2021-10-29 02:00:21 +00:00
|
|
|
|
|
|
|
# Print warnings on the page
|
2021-11-08 22:29:01 +00:00
|
|
|
keep_warnings = False
|
2021-10-29 02:00:21 +00:00
|
|
|
# Display more warnings than usual
|
2021-11-08 22:29:01 +00:00
|
|
|
nitpicky = False
|
2021-10-29 02:00:21 +00:00
|
|
|
|
2021-11-08 03:21:52 +00:00
|
|
|
# Intersphinx URLs
|
2021-10-29 02:00:21 +00:00
|
|
|
intersphinx_mapping = {
|
|
|
|
"python": ("https://docs.python.org/3.8", None),
|
|
|
|
"django": ("http://docs.djangoproject.com/en/3.2/", "http://docs.djangoproject.com/en/3.2/_objects/"),
|
|
|
|
"docker": ("https://docker-py.readthedocs.io/en/stable/", None),
|
2021-11-04 04:23:23 +00:00
|
|
|
"coloredlogs": ("https://coloredlogs.readthedocs.io/en/latest/", None),
|
2021-11-10 02:09:18 +00:00
|
|
|
"gunicorn": ("https://docs.gunicorn.org/en/stable/", None),
|
|
|
|
"psycopg2": ("https://www.psycopg.org/docs/", None),
|
2021-10-29 02:00:21 +00:00
|
|
|
}
|
2021-11-08 03:21:52 +00:00
|
|
|
# Manpages URL
|
|
|
|
manpages_url = "https://man.archlinux.org/"
|
|
|
|
|
|
|
|
# Autonumber figures
|
2021-11-09 15:56:33 +00:00
|
|
|
numfig = True
|
2021-11-08 03:21:52 +00:00
|
|
|
# Autonumeration formatting
|
|
|
|
numfig_format = {
|
2021-11-09 15:56:33 +00:00
|
|
|
"figure": "Figura %s",
|
|
|
|
"table": "Tabella %s",
|
|
|
|
"code-block": "Listati %s",
|
|
|
|
"section": "Sezione %s",
|
2021-11-08 03:21:52 +00:00
|
|
|
}
|
|
|
|
# Maximum depth for autonumeration
|
|
|
|
numfig_secnum_depth = 2
|
2021-11-04 02:12:27 +00:00
|
|
|
|
2021-11-08 03:21:52 +00:00
|
|
|
# HTML builder theme
|
|
|
|
html_theme = 'sphinx_rtd_theme'
|
|
|
|
# Configuration for the theme
|
|
|
|
html_theme_options = {
|
|
|
|
"style_nav_header_background": "#051836",
|
|
|
|
}
|
|
|
|
# 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 = [
|
2021-11-08 21:53:33 +00:00
|
|
|
"_extra",
|
2021-11-08 03:21:52 +00:00
|
|
|
]
|
2021-12-02 08:32:29 +00:00
|
|
|
# Disable additional indexes
|
|
|
|
html_domain_indices = False
|
2021-11-04 02:12:27 +00:00
|
|
|
|
2021-11-08 03:21:52 +00:00
|
|
|
# LaTeX rendering engine to use
|
2021-11-09 15:56:33 +00:00
|
|
|
latex_engine = "lualatex"
|
2021-11-08 03:21:52 +00:00
|
|
|
# LaTeX top level title type
|
2021-11-13 16:58:37 +00:00
|
|
|
latex_toplevel_sectioning = "chapter"
|
2021-11-08 03:21:52 +00:00
|
|
|
# LaTeX URLs rendering
|
|
|
|
latex_show_urls = "footnote"
|
|
|
|
# LaTeX theme
|
2021-11-09 15:56:33 +00:00
|
|
|
latex_theme = "manual"
|
2021-11-08 03:21:52 +00:00
|
|
|
|
|
|
|
latex_setup = {
|
|
|
|
"TitleColor": "{rgb}{0,0,0.08}",
|
|
|
|
|
|
|
|
"InnerLinkColor": "{rgb}{0.19,0.57,0.82}",
|
|
|
|
"OuterLinkColor": "{rgb}{0.19,0.57,0.82}",
|
|
|
|
|
|
|
|
"VerbatimBorderColor": "{rgb}{0.88,0.88,0.88}",
|
|
|
|
"VerbatimColor": "{rgb}{0.97,0.97,0.97}",
|
|
|
|
|
|
|
|
"noteBorderColor": "{rgb}{0.42,0.69,0.87}",
|
|
|
|
"importantBorderColor": "{rgb}{0.42,0.69,0.87}",
|
|
|
|
|
|
|
|
"hintBorderColor": "{rgb}{0.1,0.74,0.61}",
|
|
|
|
"tipBorderColor": "{rgb}{0.1,0.74,0.61}",
|
|
|
|
|
|
|
|
"warningBorderColor": "{rgb}{0.94,0.7,0.49}",
|
|
|
|
"warningBgColor": "{rgb}{1,0.93,0.8}",
|
|
|
|
"cautionBorderColor": "{rgb}{0.94,0.7,0.49}",
|
|
|
|
"cautionBgColor": "{rgb}{1,0.93,0.8}",
|
|
|
|
"attentionBorderColor": "{rgb}{0.94,0.7,0.49}",
|
|
|
|
"attentionBgColor": "{rgb}{1,0.93,0.8}",
|
|
|
|
|
|
|
|
"dangerBorderColor": "{rgb}{0.95,0.62,0.59}",
|
|
|
|
"dangerBgColor": "{rgb}{0.95,0.62,0.59}",
|
|
|
|
"errorBorderColor": "{rgb}{0.95,0.62,0.59}",
|
|
|
|
"errorBgColor": "{rgb}{0.95,0.62,0.59}",
|
2021-11-29 16:45:55 +00:00
|
|
|
|
|
|
|
"bookmarksdepth": 2,
|
2021-11-08 03:21:52 +00:00
|
|
|
}
|
|
|
|
latex_elements = {
|
|
|
|
"papersize": "a4paper",
|
|
|
|
"pointsize": "12pt",
|
2021-11-09 15:56:33 +00:00
|
|
|
"sphinxsetup": ", ".join(f"{key}={value}" for key, value in latex_setup.items()),
|
2021-11-21 05:15:56 +00:00
|
|
|
"fontpkg": r"""
|
|
|
|
\setmainfont{EB Garamond}
|
|
|
|
\setsansfont{EB Garamond}
|
|
|
|
\setmonofont{Fira Code}
|
2021-12-02 09:02:16 +00:00
|
|
|
""",
|
|
|
|
"maketitle": r"""
|
|
|
|
\begin{titlepage}
|
|
|
|
|
|
|
|
\begin{center}
|
|
|
|
\mdseries
|
|
|
|
\huge UNIVERSITÀ DEGLI STUDI DI MODENA E REGGIO EMILIA
|
|
|
|
\vskip-.1in
|
|
|
|
\rule{\textwidth}{1pt}
|
|
|
|
\vskip.1in
|
|
|
|
\LARGE Dipartimento di Scienze Fisiche, Informatiche e Matematiche
|
|
|
|
\vskip.2in
|
|
|
|
|
|
|
|
\LARGE Corso di Laurea in Informatica
|
|
|
|
\vskip.5in
|
|
|
|
\LARGE Tesi di Laurea
|
|
|
|
\vskip.5in
|
|
|
|
\emph{\Huge Progettazione e sviluppo di Sophon, applicativo cloud a supporto della ricerca}
|
|
|
|
\end{center}
|
|
|
|
\vskip1.7in
|
|
|
|
|
|
|
|
\begin{minipage}{.40\textwidth}
|
|
|
|
\begin{flushleft}
|
|
|
|
\mdseries\large Relatore:
|
|
|
|
\vskip0.1in
|
|
|
|
\large Prof.ssa\\ Claudia Canali
|
|
|
|
\end{flushleft}
|
|
|
|
\end{minipage}
|
|
|
|
\hskip.3\textwidth
|
|
|
|
\begin{minipage}{.25\textwidth}
|
|
|
|
\begin{flushleft}
|
|
|
|
\mdseries\large Candidato:
|
|
|
|
\vskip0.1in
|
2021-12-02 16:03:56 +00:00
|
|
|
\large Matr. 128570\\Stefano Pigozzi
|
2021-12-02 09:02:16 +00:00
|
|
|
\end{flushleft}
|
|
|
|
\end{minipage}
|
|
|
|
|
|
|
|
\vskip0.5in
|
|
|
|
|
|
|
|
\centering
|
|
|
|
\mdseries
|
|
|
|
\rule{\textwidth}{1pt}
|
|
|
|
\LARGE Anno Accademico 2020-2021
|
|
|
|
|
|
|
|
\end{titlepage}
|
2021-12-07 16:18:29 +00:00
|
|
|
|
|
|
|
\newpage
|
|
|
|
|
|
|
|
\ % The empty page
|
|
|
|
|
|
|
|
\newpage
|
2021-12-02 16:04:15 +00:00
|
|
|
""",
|
2021-11-04 02:12:27 +00:00
|
|
|
}
|
2021-11-11 18:20:26 +00:00
|
|
|
|
|
|
|
# TODOs
|
2021-12-02 16:08:15 +00:00
|
|
|
todo_include_todos = False
|
2021-11-11 18:20:26 +00:00
|
|
|
todo_emit_warnings = False
|
|
|
|
todo_link_only = False
|
|
|
|
|
2021-11-18 18:32:27 +00:00
|
|
|
# Rinohtype
|
|
|
|
rinoh_documents = [
|
|
|
|
{
|
|
|
|
"doc": "index",
|
|
|
|
"target": "manual",
|
|
|
|
}
|
|
|
|
]
|
2021-11-21 14:54:38 +00:00
|
|
|
|
|
|
|
# Smartquotes
|
|
|
|
smartquotes_excludes = {
|
|
|
|
"languages": [
|
|
|
|
# Smartquotes is completely broken in italian!
|
|
|
|
"it",
|
|
|
|
# Keep the default, just in case
|
|
|
|
"ja",
|
|
|
|
],
|
|
|
|
"builders": [
|
|
|
|
"man",
|
|
|
|
"text",
|
|
|
|
]
|
|
|
|
}
|