Skip to content

Commit 23d5710

Browse files
authored
Add markdown build support in sphinx (#1706)
1 parent d55f821 commit 23d5710

File tree

4 files changed

+36
-4
lines changed

4 files changed

+36
-4
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ docs: docs-python docs-rust
6868
docs-python: install-just-deps-all
6969
poetry run sphinx-build docs docs/build/html -b html
7070

71+
.PHONY: docs-python-markdown
72+
docs-python-markdown: install-just-deps-all
73+
poetry run sphinx-build -M markdown ./docs ./docs/build/markdown
74+
7175
.PHONY: docs-rust
7276
docs-rust:
7377
(cd nautilus_core && RUSTDOCFLAGS="--enable-index-page -Zunstable-options" cargo +nightly doc --all-features --no-deps --workspace --exclude tokio-tungstenite)

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"sphinx.ext.autodoc",
3333
"sphinx.ext.intersphinx",
3434
"sphinx.ext.napoleon",
35+
"sphinx_markdown_builder",
3536
"sphinx_togglebutton",
3637
"sphinx_copybutton",
3738
"sphinx_comments",

poetry.lock

Lines changed: 30 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ sphinx_copybutton = "^0.5.0"
113113
sphinx-external-toc = "^0.3.1"
114114
sphinx-material = "^0.0.35"
115115
sphinx_togglebutton = "^0.3.0"
116+
sphinx_markdown_builder = "^0.6.6"
116117

117118
[tool.isort] # Used by legacy isort for Cython modules
118119
py_version = "310"

0 commit comments

Comments
 (0)