Skip to content

Commit c304546

Browse files
TerminalFiFichteFoll
authored andcommitted
fix nav highlights
1 parent aaadab3 commit c304546

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Diff for: docs/.vitepress/config.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { defineConfig } from 'vitepress';
44
export default defineConfig({
55
title: "Sublime Text Community Documentation",
66
description: "Community-driven Documentation for Sublime Text",
7+
cleanUrls: true,
78
head: [
89
['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no' }],
910
['meta', { name: 'author', content: 'sublime text community' }],
@@ -28,9 +29,9 @@ export default defineConfig({
2829
smoothScroll: true,
2930
// Navbar Link
3031
nav: [
31-
{ text: "Guide", link: "/guide/" },
32-
{ text: "Reference", link: "/reference/" },
33-
{ text: "Glossary", link: "/glossary" },
32+
{ text: "Guide", link: "/guide/", activeMatch: "/guide/" },
33+
{ text: "Reference", link: "/reference/", activeMatch: "/reference/" },
34+
{ text: "Glossary", link: "/glossary", activeMatch: "/glossary" },
3435
],
3536
// Social Icons
3637
socialLinks: [
@@ -42,6 +43,7 @@ export default defineConfig({
4243
'/guide/': [
4344
{
4445
text: "Guide",
46+
base: "/guide/",
4547
collapsible: true,
4648
items: [
4749
{ text: "Introduction", link: "/guide/" },
@@ -106,6 +108,7 @@ export default defineConfig({
106108
'/reference/': [
107109
{
108110
text: 'Reference',
111+
base: '/reference/',
109112
path: '/reference/',
110113
items: [
111114
{ text: "Build Systems", link: 'https://www.sublimetext.com/docs/build_systems.html' },

Diff for: docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ head:
4848

4949
<!-- Custom home layout -->
5050
<div class="custom-layout">
51-
<Contributors user="sublimetext-io" repo="docs.sublimetext.io" ></Contributors>
51+
<Contributors ></Contributors>
5252
</div>
5353

0 commit comments

Comments
 (0)