فهرست منبع

configure sphinx for markdown

justheuristic 5 سال پیش
والد
کامیت
6c92139f6d
2فایلهای تغییر یافته به همراه8 افزوده شده و 19 حذف شده
  1. 5 1
      docs/conf.py
  2. 3 18
      docs/index.md

+ 5 - 1
docs/conf.py

@@ -47,6 +47,7 @@ extensions = [
     'sphinx.ext.ifconfig',
     'sphinx.ext.viewcode',
     'sphinx.ext.githubpages',
+    'recommonmark'
 ]
 
 # Add any paths that contain templates here, relative to this directory.
@@ -56,7 +57,10 @@ templates_path = ['_templates']
 # You can specify multiple suffix as a list of string:
 #
 # source_suffix = ['.rst', '.md']
-source_suffix = '.md'
+source_suffix = {
+    '.rst': 'restructuredtext',
+    '.md': 'markdown',
+}
 
 # The master toctree document.
 master_doc = 'index'

+ 3 - 18
docs/index.md

@@ -1,20 +1,5 @@
-.. tesseract documentation master file, created by
-   sphinx-quickstart on Thu Mar 19 00:26:48 2020.
-   You can adapt this file completely to your liking, but it should at least
-   contain the root `toctree` directive.
+This is a test file
 
-Welcome to tesseract's documentation!
-=====================================
+# TODO caption
 
-.. toctree::
-   :maxdepth: 2
-   :caption: Contents:
-
-
-
-Indices and tables
-==================
-
-* :ref:`genindex`
-* :ref:`modindex`
-* :ref:`search`
+$formula = x + y$