diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 1ac87da4..6d5e1ffd 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -12,3 +12,4 @@ build: - pip install -e ".[docs,metrics-ner,nlstruct,srt-io-converter,webrtc-voice-detector]" pre_build: - jupyter-book config sphinx docs/ + - sed "s/'sphinx_book_theme',//" docs/conf.py # See https://github.com/executablebooks/jupyter-book/pull/2111 diff --git a/docs/examples/spacy/spacy_io.md b/docs/examples/spacy/spacy_io.md index c52ebaa7..bc4b5e97 100644 --- a/docs/examples/spacy/spacy_io.md +++ b/docs/examples/spacy/spacy_io.md @@ -24,7 +24,8 @@ For this example, you should download the french spacy model. You can download i ```{code-cell} ipython3 :tags: [remove-output] -!python -m spacy download fr_core_news_sm +import spacy.cli +spacy.cli.download("fr_core_news_sm") ``` Consider the following spacy document: @@ -73,8 +74,7 @@ displacy.render(spacy_doc, style="ent") --- ```{code-cell} ipython3 -displacy.render(spacy_doc, style="span",options={"spans_key": "SECTION"}) - +displacy.render(spacy_doc, style="span", options={"spans_key": "SECTION"}) ``` The spacy document has **2** entities and **1** span group called `SECTION`. diff --git a/pyproject.toml b/pyproject.toml index 203597c6..b28c345a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -160,7 +160,7 @@ all = [ webrtc-voice-detector]""", ] docs = [ - "jupyter-book==0.15.*", + "jupyter-book==1.0.*,", "matplotlib", "pandas>=1.4", "spacy>=3.4", @@ -214,14 +214,8 @@ python = "3.10" [tool.hatch.envs.docs.scripts] config = "jupyter-book config sphinx docs/" -build = [ - "config", - "sphinx-build docs/ {args:docs/_build/html}", -] -serve = [ - "config", - "sphinx-autobuild docs/ {args:docs/_build/html}", -] +build = "sphinx-build docs/ {args:docs/_build/html}" +serve = "sphinx-autobuild docs/ {args:docs/_build/html}" [tool.coverage.run] source_pkgs = ["medkit", "tests"]