Skip to content

Commit 7c4a14e

Browse files
doc: improve navigation links
1 parent badbbc7 commit 7c4a14e

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

website/.vitepress/config.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,24 @@ export default defineConfig({
3434
logo: 'logo.svg',
3535
nav: [
3636
{ text: 'Guide', link: '/guide/introduction.html' },
37-
{ text: 'Reference', link: '/reference/cli.html' },
38-
{ text: 'Examples', link: '/catalog/' },
37+
{
38+
text: 'Reference',
39+
items: [
40+
{ text: 'Command Line Interface', link: '/reference/cli.html' },
41+
{ text: 'Rule Config', link: '/reference/yaml.html' },
42+
{ text: 'Rule Object', link: '/reference/rule.html' },
43+
{ text: 'Playground Manual', link: '/reference/playground.html' },
44+
]
45+
},
46+
{
47+
text: 'Resources',
48+
items: [
49+
{ text: 'FAQ', link: '/advanced/faq.html' },
50+
{ text: 'Rule Examples', link: '/catalog/' },
51+
{ text: 'Custom Language', link: '/advanced/custom-language.html' },
52+
{ text: 'Contributing', link: '/contributing/how-to.html' },
53+
],
54+
},
3955
{ text: 'Playground', link: '/playground.html' },
4056
],
4157
socialLinks: [

website/src/style.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ h1 {
130130
line-height: 1.1;
131131
}
132132

133-
button {
133+
.root button {
134134
border-radius: 8px;
135135
border: 1px solid transparent;
136136
padding: 0.6em 1.2em;
@@ -141,13 +141,13 @@ button {
141141
cursor: pointer;
142142
transition: border-color 0.25s;
143143
}
144-
button:hover {
144+
.root button:hover {
145145
border-color: var(--vp-button-alt-hover-border);
146146
color: var(--vp-button-alt-hover-text);
147147
background-color: var(--vp-button-alt-hover-bg);
148148
}
149-
button:focus,
150-
button:focus-visible {
149+
.root button:focus,
150+
.root button:focus-visible {
151151
outline: 4px auto -webkit-focus-ring-color;
152152
}
153153

0 commit comments

Comments
 (0)