From afdd6167b8f3b2434bda5d48476862c03fdcaf47 Mon Sep 17 00:00:00 2001 From: Callum Macpherson <93673602+CalMacCQ@users.noreply.github.com> Date: Tue, 6 Aug 2024 15:38:21 +0100 Subject: [PATCH] docs: update navbar config and theming submodule (#1523) * update navbar config * use latest quantinuum-sphinx * fix some local build warnings --- pytket/docs/_static/nav-config.js | 83 +++++++++++++++---------------- pytket/docs/conf.py | 3 ++ pytket/docs/quantinuum-sphinx | 2 +- 3 files changed, 43 insertions(+), 45 deletions(-) diff --git a/pytket/docs/_static/nav-config.js b/pytket/docs/_static/nav-config.js index 6f975c7055..7da76ddfbf 100644 --- a/pytket/docs/_static/nav-config.js +++ b/pytket/docs/_static/nav-config.js @@ -1,46 +1,41 @@ -const navConfig = { - +const navConfig = { + "navTextLinks": [ - { - "title": "API Docs", - "href": "../api-docs", - "pathMatch": "somewhere", - }, - { - "title": "Examples", - "href": "../examples", - "pathMatch": "somewhere", - }, - { - "title": "Blog", - "href": "../blog/", - "pathMatch": "somewhere", - }, - { - "title": "User Manual", - "href": "../user-manual", - "pathMatch": "somewhere", - }, -], -"navProductName": "TKET", -"navIconLinks": [ - { - "title": "TKET Github", - "href": "https://github.com/CQCL/tket", - "pathMatch": "somewhere", - "iconImageURL": "_static/assets/github.svg", - }, - { - "title": "TKET Slack Channel", - "href": "https://tketusers.slack.com/", - "pathMatch": "somewhere", - "iconImageURL": "_static/assets/slack.svg", - }, - { - "title": "TKET Stack Exchange", - "href": "https://quantumcomputing.stackexchange.com/questions/tagged/pytket", - "pathMatch": "somewhere", - "iconImageURL": "_static/assets/stack.svg", - }, -], + { + "title": "API Docs", + "href": "../../api-docs", + "pathMatch": "somewhere", + }, + { + "title": "Blog", + "href": "../../blog/", + "pathMatch": "somewhere", + }, + { + "title": "User Guide", + "href": "../../user-guide", + "pathMatch": "somewhere", + }, + ], + "navProductName": "TKET", + "navIconLinks": [ + { + "title": "TKET Github", + "href": "https://github.com/CQCL/tket", + "pathMatch": "somewhere", + "iconImageURL": "/_static/assets/github.svg", + }, + { + "title": "TKET Slack Channel", + "href": "https://tketusers.slack.com/", + "pathMatch": "somewhere", + "iconImageURL": "/_static/assets/slack.svg", + }, + { + "title": "TKET Stack Exchange", + "href": "https://quantumcomputing.stackexchange.com/questions/tagged/pytket", + "pathMatch": "somewhere", + "iconImageURL": "/_static/assets/stack.svg", + }, + ], } diff --git a/pytket/docs/conf.py b/pytket/docs/conf.py index 21bc4c78d1..56111227a1 100644 --- a/pytket/docs/conf.py +++ b/pytket/docs/conf.py @@ -96,6 +96,9 @@ # documentation. # + +exclude_patterns = ["build/jupyter_execute/*", ".venv/*"] + html_theme_options = {} # Custom sidebar templates, must be a dictionary that maps document names diff --git a/pytket/docs/quantinuum-sphinx b/pytket/docs/quantinuum-sphinx index 544cf64c04..160b297794 160000 --- a/pytket/docs/quantinuum-sphinx +++ b/pytket/docs/quantinuum-sphinx @@ -1 +1 @@ -Subproject commit 544cf64c042062bbef5c6aecd448cc86058e98d1 +Subproject commit 160b297794d5af8832b7d7085707a9bcc43c93d3