-
Notifications
You must be signed in to change notification settings - Fork 3
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 new Quantinuum docs theme #519
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "docs/quantinuum-sphinx"] | ||
path = docs/quantinuum-sphinx | ||
url = https://github.com/CQCL/quantinuum-sphinx.git | ||
branch = dist |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const navConfig = { | ||
"navTextLinks": [ | ||
|
||
], | ||
"navProductName": 'Guppy', | ||
"navIconLinks": [ | ||
{ | ||
"title": 'Github', | ||
"href": "https://github.com/CQCL/guppylang/", | ||
"iconImageURL": "/_static/assets/github.svg", | ||
}, | ||
], | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,26 +19,16 @@ | |
"sphinx.ext.intersphinx", | ||
] | ||
|
||
html_theme = "sphinx_book_theme" | ||
|
||
html_theme = "furo" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also I think you are supposed to add |
||
html_title = "Guppy compiler development docs" | ||
html_theme_options = {} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Necessary or just good for explicitness? (Happy either way, but if the latter, might be good to add a comment at line end) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure, I copied this from CQCL/hugr#1267 |
||
|
||
html_theme_options = { | ||
"repository_url": "https://github.com/CQCL/guppylang", | ||
"use_repository_button": True, | ||
"navigation_with_keys": True, | ||
"logo": { | ||
"image_light": "_static/Quantinuum_logo_black.png", | ||
"image_dark": "_static/Quantinuum_logo_white.png", | ||
}, | ||
} | ||
|
||
html_static_path = ["../_static"] | ||
html_css_files = ["custom.css"] | ||
html_static_path = ["../_static", "../quantinuum-sphinx/_static"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. super-nit: according to https://github.com/CQCL/quantinuum-sphinx, these should be ordered the other way around |
||
templates_path = ["_templates", "../quantinuum-sphinx/_templates"] | ||
html_favicon = "../quantinuum-sphinx/_static/assets/quantinuum_favicon.svg" | ||
|
||
autosummary_generate = True | ||
|
||
templates_path = ["_templates"] | ||
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] | ||
|
||
intersphinx_mapping = { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
No
"title"
or"href"
?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.
Not sure what we should have in the navbar. Any ideas what to put here?