Clean up sphinx conf file
This commit is contained in:
parent
4729294cad
commit
8177a2471a
|
@ -3,4 +3,4 @@ FROM python:3.8-slim
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENTRYPOINT ["sphinx-build", "-M", "revealjs", ".", "_build"]
|
ENTRYPOINT ["sphinx-build", "-M", "revealjs", ".", "_build"]
|
||||||
|
|
||||||
RUN pip install sphinx-revealjs sphinxcontrib-gtagjs
|
RUN pip install sphinx-revealjs
|
||||||
|
|
110
conf.py
110
conf.py
|
@ -1,90 +1,50 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# -- Path setup --------------------------------------------------------------
|
|
||||||
import os
|
|
||||||
|
|
||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
project = "sphinx-revealjs"
|
project = 'edifice-corb serverless architecture'
|
||||||
copyright = "2018, Kazuya Takei"
|
copyright = '2020, Pavle Portic'
|
||||||
author = "Kazuya Takei"
|
author = 'Pavle Portic'
|
||||||
version = ""
|
version = '0.1.0'
|
||||||
release = "2018.10"
|
|
||||||
|
|
||||||
# -- General configuration ---------------------------------------------------
|
# -- General configuration ---------------------------------------------------
|
||||||
extensions = ["sphinx_revealjs", "sphinxcontrib.gtagjs"]
|
extensions = ['sphinx_revealjs']
|
||||||
templates_path = ["_templates"]
|
templates_path = ['_templates']
|
||||||
source_suffix = ".rst"
|
source_suffix = '.rst'
|
||||||
master_doc = "index"
|
master_doc = 'index'
|
||||||
language = None
|
language = None
|
||||||
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
|
exclude_patterns = [
|
||||||
|
'_build',
|
||||||
|
'Dockerfile',
|
||||||
|
'watch.sh',
|
||||||
|
]
|
||||||
pygments_style = None
|
pygments_style = None
|
||||||
|
|
||||||
# -- Options for HTML output -------------------------------------------------
|
# -- Options for HTML output -------------------------------------------------
|
||||||
html_theme = "alabaster"
|
html_theme = 'alabaster'
|
||||||
html_theme_options = {
|
html_theme_options = {
|
||||||
"revealjs_theme": "league",
|
'revealjs_theme': 'league',
|
||||||
}
|
}
|
||||||
html_static_path = ["_static"]
|
html_static_path = ['_static']
|
||||||
|
|
||||||
# -- Options for Reveal.js output ---------------------------------------------
|
# -- Options for Reveal.js output ---------------------------------------------
|
||||||
revealjs_style_theme = "black"
|
revealjs_style_theme = 'black'
|
||||||
revealjs_script_conf = """
|
revealjs_script_conf = '''
|
||||||
{
|
{
|
||||||
controls: true,
|
controls: true,
|
||||||
progress: true,
|
progress: true,
|
||||||
history: true,
|
history: true,
|
||||||
center: true,
|
center: true,
|
||||||
transition: "slide",
|
transition: "slide",
|
||||||
}
|
showNotes: true,
|
||||||
"""
|
}
|
||||||
|
'''
|
||||||
revealjs_script_plugins = [
|
revealjs_script_plugins = [
|
||||||
{
|
{
|
||||||
"src": "revealjs/plugin/notes/notes.js",
|
'src': 'revealjs/plugin/notes/notes.js',
|
||||||
"options": "{async: true}",
|
'options': '{async: true}',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "revealjs/plugin/highlight/highlight.js",
|
'src': 'revealjs/plugin/highlight/highlight.js',
|
||||||
"options": "{async: true, callback: function() { hljs.initHighlightingOnLoad(); }}",
|
'options': '{async: true, callback: function() { hljs.initHighlightingOnLoad(); }}',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
# -- Options for HTMLHelp output ---------------------------------------------
|
|
||||||
htmlhelp_basename = "sphinx-revealjsdoc"
|
|
||||||
|
|
||||||
# -- Options for LaTeX output ------------------------------------------------
|
|
||||||
latex_elements = {}
|
|
||||||
latex_documents = [
|
|
||||||
(
|
|
||||||
master_doc,
|
|
||||||
"sphinx-revealjs.tex",
|
|
||||||
"sphinx-revealjs Documentation",
|
|
||||||
"Kazuya Takei",
|
|
||||||
"manual",
|
|
||||||
),
|
|
||||||
]
|
|
||||||
|
|
||||||
# -- Options for manual page output ------------------------------------------
|
|
||||||
man_pages = [
|
|
||||||
(master_doc, "sphinx-revealjs", "sphinx-revealjs Documentation", [author], 1)
|
|
||||||
]
|
|
||||||
|
|
||||||
# -- Options for Texinfo output ----------------------------------------------
|
|
||||||
texinfo_documents = [
|
|
||||||
(
|
|
||||||
master_doc,
|
|
||||||
"sphinx-revealjs",
|
|
||||||
"sphinx-revealjs Documentation",
|
|
||||||
author,
|
|
||||||
"sphinx-revealjs",
|
|
||||||
"One line description of project.",
|
|
||||||
"Miscellaneous",
|
|
||||||
),
|
|
||||||
]
|
|
||||||
|
|
||||||
# -- Options for Epub output -------------------------------------------------
|
|
||||||
epub_title = project
|
|
||||||
epub_exclude_files = ["search.html"]
|
|
||||||
|
|
||||||
# -- Options for extensions --------------------------------------------------
|
|
||||||
if "GTAGJS_IDS" in os.environ:
|
|
||||||
gtagjs_ids = os.environ["GTAGJS_IDS"].split(",")
|
|
||||||
|
|
Loading…
Reference in New Issue