Skip to content

Commit

Permalink
Add examples to topbar
Browse files Browse the repository at this point in the history
  • Loading branch information
goerz committed Jan 16, 2024
1 parent ba82a58 commit accf132
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/src/assets/topbar/topbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ document.addEventListener("DOMContentLoaded", function() {
var suffix = 'stable/';
if (footerMessageElement && (footerMessageElement.textContent.includes('+dev') || footerMessageElement.textContent.includes('-dev'))) {
suffix = 'dev/';
} else if (window.location.href.includes('/dev/')) {
suffix = 'dev/';
}
var packages = [
"QuantumPropagators.jl",
Expand Down Expand Up @@ -42,6 +44,7 @@ document.addEventListener("DOMContentLoaded", function() {
</div>
<a class="nav-link nav-item ${name === 'QuantumPropagators.jl' ? 'current' : ''}" href="${name === 'QuantumPropagators.jl' ? '' : 'https://juliaquantumcontrol.github.io/QuantumPropagators.jl/' + suffix}">QuantumPropagators.jl</a>
<a class="nav-link nav-item ${name === 'QuantumControl.jl' ? 'current' : ''}" href="${name === 'QuantumControl.jl' ? '' : 'https://juliaquantumcontrol.github.io/QuantumControl.jl/' + suffix}">QuantumControl.jl</a>
<a class="nav-link nav-item ${name.includes('Examples') ? 'current' : ''}" href="${name.includes('Examples') ? '' : 'https://juliaquantumcontrol.github.io/QuantumControlExamples.jl/' + suffix}">Examples</a>
</div>
<button id="multidoc-toggler">
<svg viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
Expand Down

0 comments on commit accf132

Please sign in to comment.