From 8b795a75c462cc090b3cc5565716cc5e5d7d848f Mon Sep 17 00:00:00 2001 From: mraniki Date: Sat, 8 Jul 2023 22:19:18 +0200 Subject: [PATCH] :zap: Update Sphinx extensions and add toggle button --- docs/conf.py | 1 + docs/index.rst | 9 +++++---- pyproject.toml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 5bc21d46..5f7e8f04 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -35,6 +35,7 @@ 'sphinx_copybutton', 'myst_parser', 'sphinxext.remoteliteralinclude', + 'sphinx_togglebutton', # 'sphinx_inline_tabs', # 'sphinx_reredirects', # 'sphinx_design', diff --git a/docs/index.rst b/docs/index.rst index 05c4c11c..a81040e0 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -18,16 +18,17 @@ FindMyOrder How To Use it ================== the following example illustrate how to use the module - -.. rli:: https://raw.githubusercontent.com/mraniki/findmyorder/main/examples/example.py - :language: python +:class: dropdown + .. rli:: https://raw.githubusercontent.com/mraniki/findmyorder/main/examples/example.py + :language: python Settings ================== Setting available via settings.toml -.. rli:: https://raw.githubusercontent.com/mraniki/findmyorder/main/findmyorder/default_settings.toml +:class: dropdown + .. rli:: https://raw.githubusercontent.com/mraniki/findmyorder/main/findmyorder/default_settings.toml :language: python FMO class diff --git a/pyproject.toml b/pyproject.toml index 06f7f799..e432a682 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ sphinx-copybutton= "^0.5.2" myst-parser = "^2.0.0" sphinx-notfound-page = "^0.8.3" sphinxext-remoteliteralinclude = "^0.4.0" - +sphinx-togglebutton = "*" [tool.pytest.ini_options] pythonpath = "."