From c7a56b270bd7c3ffd287b042f3797fb68d9788ed Mon Sep 17 00:00:00 2001 From: Gabriele Contini <contini.mailing@gmail.com> Date: 周日, 22 3月 2020 18:04:06 +0800 Subject: [PATCH] update analytics id --- doc/conf.py | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 13f61aa..7e4e7ed 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -32,7 +32,10 @@ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = ['sphinx.ext.todo', - 'sphinx.ext.githubpages', 'breathe', 'recommonmark', 'sphinx_markdown_tables', 'sphinx_rtd_theme' ] + 'sphinx.ext.githubpages', 'breathe', 'recommonmark', 'sphinx_markdown_tables', 'sphinx_rtd_theme', + 'sphinxemoji.sphinxemoji', 'sphinx_sitemap','sphinx.ext.autosectionlabel' ] + +autosectionlabel_prefix_document = True # Breathe Configuration breathe_default_project = "licensecc" @@ -50,7 +53,7 @@ master_doc = 'index' # General information about the project. -project = 'licensecc' +project = 'Licensecc' copyright = '2020, Open License Manager' author = 'Open License Manager' @@ -94,6 +97,8 @@ # documentation. # html_theme_options = { + 'canonical_url': 'http://open-license-manager.github.io/open-license-manager/', + 'analytics_id': 'UA-160839650-1', # Provided by Google in your dashboard 'titles_only': False } @@ -114,6 +119,13 @@ # ] #} +html_js_files = [ + 'https://buttons.github.io/buttons.js' +] + +html_css_files = [ + 'css/custom.css' +] # -- Options for HTMLHelp output ------------------------------------------ @@ -171,5 +183,12 @@ 'Miscellaneous'), ] +# Sitemap plugin +html_baseurl = 'http://open-license-manager.github.io/open-license-manager' +#sitemap_url_scheme = "{lang}{version}subdir/{link}" +sitemap_url_scheme = "{link}" +sphinxemoji_style = 'twemoji' +#html_logo = "_static/lock_32.png" +html_favicon="_static/lock_32.ico" \ No newline at end of file -- Gitblit v1.9.1