Skip to content

Commit

Permalink
Replace myst_parser with myst_nb
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche committed Dec 10, 2024
1 parent 51a4774 commit 657f57e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 1 addition & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@


# Enable markdown
extensions.append("myst_parser")
extensions.append("myst_nb")

# Configure MyST-Parser
myst_enable_extensions = [
Expand Down Expand Up @@ -305,9 +305,6 @@

# -- Biocsetup configuration -------------------------------------------------

# Enable execution of code chunks in markdown
extensions.append('myst_nb')

# Less verbose api documentation
extensions.append('sphinx_autodoc_typehints')

Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ furo
myst-parser[linkify]
sphinx>=3.2.1
myst-nb
sphinx-autodoc-typehints
sphinx-autodoc-typehints
5 changes: 4 additions & 1 deletion src/biocsetup/create_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def create_repository(
# -- Biocsetup configuration -------------------------------------------------
# Enable execution of code chunks in markdown
extensions.remove('myst_parser')
extensions.append('myst_nb')
# Less verbose api documentation
Expand All @@ -86,9 +87,11 @@ def create_repository(
autosummary_generate = True
autosummary_imported_members = True
html_theme = "furo"
"""

conf_content = conf_content.replace("alabaster", "furo")
# conf_content = conf_content.replace("alabaster", "furo")

with open(conf_py_path, "w") as f:
f.write(conf_content + myst_config)
Expand Down

0 comments on commit 657f57e

Please sign in to comment.