diff --git a/docs/01_start.rst b/docs/01_start.rst index 5fd66ce..ba08cf2 100644 --- a/docs/01_start.rst +++ b/docs/01_start.rst @@ -17,7 +17,6 @@ Example The following example illustrate how to use the module -.. rli:: https://raw.githubusercontent.com/mraniki/findmyorder/main/examples/example.py - :language: python +.. literalinclude:: ../examples/example.py \ No newline at end of file diff --git a/docs/02_config.rst b/docs/02_config.rst index 97be75e..05cd5f0 100644 --- a/docs/02_config.rst +++ b/docs/02_config.rst @@ -6,8 +6,7 @@ Config Setting available via settings.toml or .env - -.. rli:: https://raw.githubusercontent.com/mraniki/findmyorder/main/findmyorder/default_settings.toml - :language: toml + +.. literalinclude:: ../findmyorder/default_settings.toml diff --git a/docs/conf.py b/docs/conf.py index 202cf7c..bd47099 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,13 +22,29 @@ 'sphinx.ext.autosummary', 'sphinx.ext.napoleon', 'sphinx.ext.viewcode', - 'sphinxext.remoteliteralinclude', + "sphinx.ext.intersphinx", ] # -- Extension configuration --------------------------------------------------- +intersphinx_mapping = { + "sphinx": ("https://www.sphinx-doc.org/en/master/", None), + # - :doc:`sphinx:usage/extensions/intersphinx` + "dynaconf": ("https://www.dynaconf.com", None), + "python": ("https://docs.python.org/3", None), + "talky": ("https://talky.readthedocs.io/en/latest/", None), + "talky-dev": ("https://talky.readthedocs.io/en/dev/", None), + "findmyorder": ("https://talky.readthedocs.io/projects/findmyorder/en/latest", None), + "dxsp": ("https://talky.readthedocs.io/projects/dxsp/en/latest", None), + "iamlistening": ("https://talky.readthedocs.io/projects/iamlistening/en/latest", None), + "talkytrend": ("https://talky.readthedocs.io/projects/talkytrend/en/latest", None), + "myllm": ("https://talky.readthedocs.io/projects/myllm/en/latest", None), +} + +intersphinx_disabled_reftypes = ["*"] + napoleon_google_docstring = True autosummary_generate = True autoclass_content = 'both'