From 923dca6ffe443b0408ff7a9bb2c5223a3935ea8d Mon Sep 17 00:00:00 2001 From: troyyyyy Date: Tue, 21 Mar 2023 13:40:38 +0800 Subject: [PATCH] Support markdown in docs --- docs/ABL/Test.md | 5 +++++ docs/conf.py | 3 ++- docs/index.rst | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 docs/ABL/Test.md diff --git a/docs/ABL/Test.md b/docs/ABL/Test.md new file mode 100644 index 0000000..cb0c801 --- /dev/null +++ b/docs/ABL/Test.md @@ -0,0 +1,5 @@ +# Test md + + +1. md +2. `code` \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 6724f52..0fdd4ac 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,10 +26,11 @@ extensions = [ 'sphinx.ext.mathjax', 'sphinx.ext.viewcode', 'sphinx_rtd_theme', + 'recommonmark', ] templates_path = ['_templates'] -source_suffix = '.rst' +source_suffix = ['.rst', '.md'] exclude_patterns = [] # locale_dirs = ['locale/'] gettext_compact = False diff --git a/docs/index.rst b/docs/index.rst index 6acedc2..37953e8 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -6,6 +6,7 @@ ABL/Abductive Learning.rst ABL/Quick Start.rst + ABL/Test.md .. toctree:: :caption: Examples