diff --git a/docs/conf.py b/docs/conf.py index 75ddb8a..e07fc36 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,7 +22,8 @@ extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.todo', - 'sphinx.ext.coverage' + 'sphinx.ext.coverage', + 'sphinxcontrib.openapi' ] templates_path = ['_templates'] @@ -35,5 +36,5 @@ add_module_names = False # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output -html_theme = 'alabaster' +html_theme = 'sphinx_rtd_theme' html_static_path = ['_static'] diff --git a/docs/openapi.yml b/docs/focus.yml similarity index 100% rename from docs/openapi.yml rename to docs/focus.yml diff --git a/docs/index.rst b/docs/index.rst index 2ff981c..85ccd53 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -17,3 +17,5 @@ documentation for details. setup focus + focus-compliance + open-api diff --git a/docs/open-api.rst b/docs/open-api.rst new file mode 100644 index 0000000..52f8307 --- /dev/null +++ b/docs/open-api.rst @@ -0,0 +1,5 @@ +====================== +Open API specification +====================== + +.. openapi:: focus.yml \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index da61026..6972ad4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,6 @@ requests python-dotenv twine wheel -sphinx \ No newline at end of file +sphinx +sphinx-rtd-theme +sphinxcontrib-openapi \ No newline at end of file