-
Notifications
You must be signed in to change notification settings - Fork 48
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
fix: remove unecessary _tket
perfix in local docs build
#1721
Conversation
_tket
in the docs_tket
in the docs
_tket
in the docs_tket
in the docs
pytket/docs/build-docs.sh
Outdated
@@ -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 "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slightly worried that these sed comands are not architecture independent. They work fine on my mac. Maybe this is a good reason to use a Makefile
?
The website uses linux runners in C.I. so will make sure to use the linux syntax there and test that it works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also check the platform from within the shell script and perform a switch on that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can confirm that this does not work on Linux.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to make this work at least on Linux and MacOS.
Yes, happy to update the script to check the platform its running on and adjust the sed command accordingly. |
_tket
in the docs_tket
perfix in local docs build
Now added some handling so that the build script should work on MacOS and Linux. I've tested locally Note that the webiste is already fixed. This script is only for local builds |
Description
Note that this only impacts the local build. The website build is already fixed and deployed.
Updating the build script to replace all of the refernce to the internal
_tket
module. Previously this was done by commands in theMakefile
but this stopped working due to some previous changes.I've decided to remove the
Makefile
for now as it was unused. Instead I've put the sed replace in thebuild-docs.sh
script.Related issues
closes #1719