Skip to content
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

toc without highlighting and without mobile view #214

Merged
merged 13 commits into from
Nov 21, 2023
2 changes: 1 addition & 1 deletion test/input/build/config/.observablehq/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export default {
{path: "/sub/two", name: "Two"}
],
toc: {
label: "Contents"
label: "On this page"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to follow the exact same naming as Vitepress? I think we should opt for something different

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the override test, it needs to be different from the new default which is "Contents"

}
};
2 changes: 1 addition & 1 deletion test/output/build/config/toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}</script>
<div id="observablehq-center">
<details open id="observablehq-toc">
<summary><span>Contents</span></summary>
<summary><span>On this page</span></summary>
<nav><ol>
<li class="observablehq-secondary-link"><a href="#h2%3A-section-1">H2: Section 1</a></li>
<li class="observablehq-secondary-link"><a href="#h2%3A-section-2">H2: Section 2</a></li>
Expand Down