diff --git a/docs/conf.py b/docs/conf.py index fb78af18..06ca2d4e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -28,7 +28,7 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ["myst_parser", "sphinxcontrib.bibtex"] +extensions = ["myst_parser", "sphinxcontrib.bibtex", "sphinx_tabs.tabs"] # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] diff --git a/docs/test/md.md b/docs/test/md.md new file mode 100644 index 00000000..30718efe --- /dev/null +++ b/docs/test/md.md @@ -0,0 +1,26 @@ +# Testing md + + +````{tabs} +```{tab} testa +contenta +``` + +```{tab} testb +contentb +``` +```` + +````{tabs} +```{tab} +testa +contenta1 +contenta2 +``` + +```{tab} +testb +contentb1 +contentb2 +``` +```` diff --git a/docs/test/rst.rst b/docs/test/rst.rst new file mode 100644 index 00000000..0bf613fd --- /dev/null +++ b/docs/test/rst.rst @@ -0,0 +1,25 @@ +Testing rst +=========== + +.. tabs:: + + .. tab:: testa + + contenta + + .. tab:: testb + + contentb + +.. note:: + + normal + +.. note:: start writing + and don't + stop + + +.. note:: start writing + + with space diff --git a/docs/using/index.md b/docs/using/index.md index 60154a13..c7ba9768 100644 --- a/docs/using/index.md +++ b/docs/using/index.md @@ -6,4 +6,6 @@ Myst documents. ```{toctree} install.md syntax.md +../test/md.md +../test/rst.rst ``` diff --git a/setup.py b/setup.py index a36dcefb..1df7e34e 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ ) ], extras_require={ - "sphinx": ["pyyaml", "docutils>=0.15", "sphinx>=2,<3"], + "sphinx": ["pyyaml", "docutils>=0.15", "sphinx>=2,<3", "sphinx-tabs"], "code_style": ["flake8<3.8.0,>=3.7.0", "black", "pre-commit==1.17.0"], "testing": [ "coverage",