Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace myst_parser with myst_nb #4

Merged
merged 4 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Changelog

## Version 0.1.1
## Version 0.1.1 - 0.1.2

Minor changes to improve user experience.
- Minor changes to improve user experience.
- Replace `myst_nb` and `myst_parser`.

## Version 0.1.0

Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ create_repository(

## After setup

- (Optional) Enable [pre-commit.ci](https://pre-commit.ci/) bot for your new repository.
- Add a secret variable, `PYPI_API_TOKEN`, to your repository containing the token for publishing the package to PyPI.
- Tagging the repository will trigger an action to test, generate documentation, and publish the package to PyPI.
- Install [tox](https://tox.wiki/en/4.23.2/) to handle package tasks. GitHub Actions relies on the tox configuration to test, generate documentation, and publish packages.
- (Optional) Enable the [pre-commit.ci](https://pre-commit.ci/) bot for your repository.
- (Optional) Install [ruff](https://docs.astral.sh/ruff/) for code formatting.

<!-- pyscaffold-notes -->
Expand Down
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
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
furo
myst-nb
# Requirements file for ReadTheDocs, check .readthedocs.yml.
# To build the module reference correctly, make sure every external package
# under `install_requires` in `setup.cfg` is also listed here!
# sphinx_rtd_theme
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
Loading