diff --git a/README.rst b/README.rst index 5323e899b..35729ef04 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,6 @@ |coverage| |unit-tests| |type-hints| |docs| |black| |pypi-versions| |python-versions| |conda| |zenodo| -.. |coverage| image:: https://codecov.io/gh/pydicom/pynetdicom/branch/main/graph/badge.svg +.. |coverage| image:: https://codecov.io/gh/pydicom/pynetdicom/branch/main/graph/badge.svg :target: https://codecov.io/gh/pydicom/pynetdicom .. |unit-tests| image:: https://github.com/pydicom/pynetdicom/workflows/unit-tests/badge.svg @@ -44,7 +44,7 @@ medical images and related information. It defines the formats and communication protocols for media exchange in radiology, cardiology, radiotherapy and other medical domains. -*pynetdicom* is a pure Python 3.7+ package that implements the DICOM +*pynetdicom* is a pure Python package that implements the DICOM networking protocol. Working with `pydicom `_, it allows the easy creation of DICOM *Service Class Users* (SCUs) and *Service Class Providers* (SCPs). diff --git a/docs/Makefile b/docs/Makefile index 57fada28e..f5b3ef705 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -60,6 +60,7 @@ html: rm -rf $(BUILDDIR)/html/_images #rm -rf _build/doctrees/ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html + python fix_search.py touch $(BUILDDIR)/html/.nojekyll @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." diff --git a/docs/fix_search.py b/docs/fix_search.py new file mode 100644 index 000000000..3b3a6ba2e --- /dev/null +++ b/docs/fix_search.py @@ -0,0 +1,19 @@ +""" +A temporary fix for #953 while waiting for upstream sphinx_rtd_theme to fix/remove their +dependency on jQuery. +""" +from pathlib import Path +import re + +search_html = Path("./_build/html/search.html") +assert search_html.exists() + +with open(search_html) as fp: + html = fp.read() + +pat = r"(' +html_fixed = re.sub(pat, repl, html) + +with open(search_html, "w") as fp: + fp.write(html_fixed) diff --git a/pyproject.toml b/pyproject.toml index 46f12ad62..6e1439951 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ maintainers = [ ] name = "pynetdicom" readme = "README.rst" -version = "2.1.0" +version = "2.1.1" [tool.poetry.dependencies]