Skip to content

Commit

Permalink
Merge pull request #209 from jhlegarreta/IncludeMarkdownDocInSphinx
Browse files Browse the repository at this point in the history
DOC: Add Markdown tutorial files to the documentation
  • Loading branch information
jhlegarreta authored Oct 24, 2023
2 parents 84b2da1 + 3e3590b commit ba9f379
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ build:
- liblapack-dev
jobs:
pre_build:
- pip install --upgrade myst-parser
- sphinx-apidoc -f -o doc .

# Build documentation in the doc/ directory with Sphinx
Expand Down
3 changes: 2 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"myst_parser",
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
]
Expand All @@ -79,7 +80,7 @@
exclude_patterns = ["*tests*"]

# Sources
source_suffix = ".rst"
source_suffix = [".rst", ".md"]

# The master toctree document.
master_doc = "index"
Expand Down
7 changes: 7 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ tools.
bin
utilities

.. toctree::
:maxdepth: 1
:caption: Tutorials

bundles
subject-specific-tractography-parcellation

Indices and tables
==================

Expand Down

0 comments on commit ba9f379

Please sign in to comment.