Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ytdHuang committed Nov 11, 2024
1 parent 3cde23b commit 285d61d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion docs/src/.vitepress/theme/VersionPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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]}/` : '/';
Expand Down

0 comments on commit 285d61d

Please sign in to comment.