From 87e2833a892f1e763f7602b0fea1ee406fef1085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Mon, 7 Mar 2022 22:41:59 +0100 Subject: [PATCH] Markdown ve sphinxu. --- docs/conf.py | 8 +++++++- docs/index.rst | 1 + docs/zapisy/zapisy.rst | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 docs/zapisy/zapisy.rst diff --git a/docs/conf.py b/docs/conf.py index 24f2bfed..d597faf2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -34,7 +34,8 @@ extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.intersphinx', - 'sphinx.ext.autosectionlabel' + 'sphinx.ext.autosectionlabel', + 'myst_parser', ] # Add any paths that contain templates here, relative to this directory. @@ -79,3 +80,8 @@ autodoc_member_order = "bysource" # Nezobrazování zděděné (ze super tříd) dokumentace TODO nefunguje? autodoc_inherit_docstrings = False + +source_suffix = { + '.rst': 'restructuredtext', + '.md': 'markdown', +} diff --git a/docs/index.rst b/docs/index.rst index 0f779e42..10d6016f 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -14,6 +14,7 @@ Vítejte v dokumentaci M&Mího webu! sphinx dalsi_soubory modules/modules + zapisy/zapisy diff --git a/docs/zapisy/zapisy.rst b/docs/zapisy/zapisy.rst new file mode 100644 index 00000000..1150a65c --- /dev/null +++ b/docs/zapisy/zapisy.rst @@ -0,0 +1,5 @@ +Zápisy +====== + +.. toctree:: + 2021-12-06-testovani_dokumentace_codereview \ No newline at end of file