diff --git a/docs/make.jl b/docs/make.jl index f49f35b57..a60d1c39b 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -69,7 +69,6 @@ makedocs(; pages = PAGES, format = DocumenterVitepress.MarkdownVitepress( repo = "github.com/qutip/QuantumToolbox.jl", - deploy_url = "https://qutip.org/QuantumToolbox.jl", ), draft = DRAFT, plugins = [bib], diff --git a/docs/src/.vitepress/theme/VersionPicker.vue b/docs/src/.vitepress/theme/VersionPicker.vue index b65054027..ae2b25121 100644 --- a/docs/src/.vitepress/theme/VersionPicker.vue +++ b/docs/src/.vitepress/theme/VersionPicker.vue @@ -31,7 +31,7 @@ const getBaseRepository = () => { if (typeof window === 'undefined') return ''; // Handle server-side rendering (SSR) const { origin, pathname } = window.location; // Check if it's a GitHub Pages (or similar) setup - if (origin.includes('github.io')) { + if ((origin.includes('qutip.org')) || (origin.includes('github.io'))) { // Extract the first part of the path as the repository name const pathParts = pathname.split('/').filter(Boolean); const baseRepo = pathParts.length > 0 ? `/${pathParts[0]}/` : '/';