From 8177a2471a1e8bfc8b23342b25f9234b08cf4a7c Mon Sep 17 00:00:00 2001 From: Pavle Portic Date: Tue, 9 Jun 2020 09:58:43 +0200 Subject: [PATCH] Clean up sphinx conf file --- Dockerfile | 2 +- conf.py | 110 +++++++++++++++++------------------------------------ 2 files changed, 36 insertions(+), 76 deletions(-) diff --git a/Dockerfile b/Dockerfile index abe092d..ae565de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,4 @@ FROM python:3.8-slim WORKDIR /app ENTRYPOINT ["sphinx-build", "-M", "revealjs", ".", "_build"] -RUN pip install sphinx-revealjs sphinxcontrib-gtagjs +RUN pip install sphinx-revealjs diff --git a/conf.py b/conf.py index 86a1553..6bc01cc 100644 --- a/conf.py +++ b/conf.py @@ -1,90 +1,50 @@ # -*- coding: utf-8 -*- -# -- Path setup -------------------------------------------------------------- -import os - # -- Project information ----------------------------------------------------- -project = "sphinx-revealjs" -copyright = "2018, Kazuya Takei" -author = "Kazuya Takei" -version = "" -release = "2018.10" +project = 'edifice-corb serverless architecture' +copyright = '2020, Pavle Portic' +author = 'Pavle Portic' +version = '0.1.0' # -- General configuration --------------------------------------------------- -extensions = ["sphinx_revealjs", "sphinxcontrib.gtagjs"] -templates_path = ["_templates"] -source_suffix = ".rst" -master_doc = "index" +extensions = ['sphinx_revealjs'] +templates_path = ['_templates'] +source_suffix = '.rst' +master_doc = 'index' language = None -exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] +exclude_patterns = [ + '_build', + 'Dockerfile', + 'watch.sh', +] pygments_style = None # -- Options for HTML output ------------------------------------------------- -html_theme = "alabaster" +html_theme = 'alabaster' html_theme_options = { - "revealjs_theme": "league", + 'revealjs_theme': 'league', } -html_static_path = ["_static"] +html_static_path = ['_static'] # -- Options for Reveal.js output --------------------------------------------- -revealjs_style_theme = "black" -revealjs_script_conf = """ - { - controls: true, - progress: true, - history: true, - center: true, - transition: "slide", - } -""" +revealjs_style_theme = 'black' +revealjs_script_conf = ''' + { + controls: true, + progress: true, + history: true, + center: true, + transition: "slide", + showNotes: true, + } +''' revealjs_script_plugins = [ - { - "src": "revealjs/plugin/notes/notes.js", - "options": "{async: true}", - }, - { - "src": "revealjs/plugin/highlight/highlight.js", - "options": "{async: true, callback: function() { hljs.initHighlightingOnLoad(); }}", - }, + { + 'src': 'revealjs/plugin/notes/notes.js', + 'options': '{async: true}', + }, + { + 'src': 'revealjs/plugin/highlight/highlight.js', + '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(",")