Use mystnb for notebook rendering (#332)

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
This commit is contained in:
Jack Gerrits 2024-08-07 12:25:27 -04:00 committed by GitHub
parent ecde17a255
commit 9f0bdb154c
5 changed files with 2 additions and 12 deletions

View File

@ -93,7 +93,5 @@ jobs:
- uses: actions/checkout@v4
- name: Install Hatch
uses: pypa/hatch@install
- name: Install Pandoc
run: sudo apt-get install pandoc
- run: hatch run docs:check
working-directory: ./python

View File

@ -32,8 +32,6 @@ jobs:
uses: actions/checkout@v4
- name: Install Hatch
uses: pypa/hatch@install
- name: Install Pandoc
run: sudo apt-get install pandoc
- run: hatch run docs:build
working-directory: ./python
- name: Upload artifact

View File

@ -1,4 +0,0 @@
.nbinput .prompt,
.nboutput .prompt {
display: none;
}

View File

@ -20,7 +20,6 @@ extensions = [
"sphinxcontrib.apidoc",
"myst_nb",
"sphinx.ext.intersphinx",
"IPython.sphinxext.ipython_console_highlighting",
]
apidoc_module_dir = "../../src/agnext"
@ -51,7 +50,7 @@ myst_heading_anchors = 5
html_title = "AGNext"
html_theme = "furo"
html_static_path = ["_static"]
html_static_path = []
html_theme_options = {
"source_repository": "https://github.com/microsoft/agnext",

View File

@ -90,8 +90,7 @@ dependencies = [
"furo",
"sphinxcontrib-apidoc",
"myst-nb",
"sphinx-autobuild",
"Ipython",
"sphinx-autobuild"
]
[tool.hatch.envs.docs.scripts]