From d5c62b2bf602374febf5f4cc8c3d47a23f80ab27 Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周日, 22 3月 2020 11:51:31 +0800 Subject: [PATCH] improve documentation --- doc/conf.py | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 13f61aa..327d05a 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-61067325-2', # 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,10 @@ 'Miscellaneous'), ] +# Sitemap plugin +html_baseurl = 'http://open-license-manager.github.io/open-license-manager' +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