From b6eb06aeee0fda77395d7b3172c44b999b70cdee Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 28 Feb 2021 11:04:52 +0100 Subject: Refactoring config in a class to have a testable environment --- docs/conf.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index cc274d9..b353a1c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,9 +14,6 @@ # import sys # sys.path.insert(0, os.path.abspath('.')) -from docutils import nodes -from sphinx import addnodes - # -- Project information ----------------------------------------------------- project = 'minishell_test' @@ -57,6 +54,7 @@ html_theme = 'sphinx_rtd_theme' # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] + def setup(app): from sphinx.util.docfields import Field app.add_object_type( @@ -81,6 +79,7 @@ def setup(app): ] ) + extlinks = { "issue": ("https://github.com/cacharle/minishell_test/issues/%s", "#"), "pull": ("https://github.com/cacharle/minishell_test/pull/%s", "p"), -- cgit