Skip to content
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

docs: use quantinuum-sphinx theme #120

Merged
merged 43 commits into from
Nov 22, 2024
Merged

docs: use quantinuum-sphinx theme #120

merged 43 commits into from
Nov 22, 2024

Conversation

daniel-mills-cqc
Copy link
Collaborator

@daniel-mills-cqc daniel-mills-cqc commented Nov 20, 2024

I've created this new branch with your changes on top of main. Let me know if this is actually helpful.

@daniel-mills-cqc daniel-mills-cqc marked this pull request as ready for review November 20, 2024 19:50
@CalMacCQ
Copy link
Collaborator

thanks for sorting this out, I should be able to finish this off today

@daniel-mills-cqc daniel-mills-cqc force-pushed the update_docs branch 3 times, most recently from 7432592 to 0aea766 Compare November 21, 2024 14:17
Copy link
Collaborator Author

@daniel-mills-cqc daniel-mills-cqc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great!
Would you mind checking the warning from the build. I see a warning

WARNING: html_static_path entry 'quantinuum-sphinx/_static' does not exist
WARNING: favicon file 'quantinuum-sphinx/_static/assets/quantinuum_favicon.svg' does not exist

Could those be fixed?

@CalMacCQ
Copy link
Collaborator

CalMacCQ commented Nov 21, 2024

I've also added a README in the docs folder. Let me know if you're happy with this.

Would you recommend using poetry or pip in local build and github workflows?

- name: Save documentation
uses: actions/upload-artifact@v4
with:
name: docs_html
Copy link
Collaborator

@CalMacCQ CalMacCQ Nov 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly worried I've got this line and the one below wrong? Maybe doesn't matter so much.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it matters hugely, but I think only the build itself really needs uploading here. Would you mind making that change?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed now

@CalMacCQ
Copy link
Collaborator

Could those be fixed?

Warnings now fixed, hadn't checked out the submodule in C.I. properly.

These warnings were actually quite serious. I've added a -W flag to fail the sphinx C.I. build on warnings to catch this sort of thing in future.

@daniel-mills-cqc
Copy link
Collaborator Author

I've also added a README in the docs folder. Let me know if you're happy with this.

Would you recommend using poetry or pip in local build and github workflows?

Thanks, looking good!

I don't really recommend using either in particular, but I'm happy to stick with pip in this readme.

Copy link
Collaborator Author

@daniel-mills-cqc daniel-mills-cqc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just this last small comment, then it's good to go!

docs/README.md Outdated
Comment on lines 11 to 15
```shell
python -m venv ".venv"
source .venv/bin/activate
pip install -e .[docs]
```
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could remove the reference to venv and just allow the user to use whichever means they prefer.
You could also mention at this point that poetry is supported.

@CalMacCQ CalMacCQ enabled auto-merge (squash) November 22, 2024 12:00
@CalMacCQ CalMacCQ merged commit cb9709f into main Nov 22, 2024
12 checks passed
@CalMacCQ CalMacCQ deleted the update_docs branch November 22, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use quantinuum-sphinx documentation theme
2 participants