diff --git a/pytket/docs/build-docs.sh b/pytket/docs/build-docs.sh index a5cb926d21..fb65b9bba8 100644 --- a/pytket/docs/build-docs.sh +++ b/pytket/docs/build-docs.sh @@ -3,6 +3,8 @@ cp -R pytket-docs-theming/quantinuum-sphinx . cp pytket-docs-theming/conf.py . sphinx-build -b html . build -D html_title="pytket" +find build/ -type f -name "*.html" | xargs sed -e 's/pytket._tket/pytket/g' -i "" +#sed -i 's/pytket._tket/pytket/g' build/html/searchindex.js # Remove copied files. This ensures reusability. rm -r _static