Skip to content

Commit

Permalink
doc: improve navigation links
Browse files Browse the repository at this point in the history
  • Loading branch information
HerringtonDarkholme committed Nov 29, 2024
1 parent badbbc7 commit 7c4a14e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
20 changes: 18 additions & 2 deletions website/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,24 @@ export default defineConfig({
logo: 'logo.svg',
nav: [
{ text: 'Guide', link: '/guide/introduction.html' },
{ text: 'Reference', link: '/reference/cli.html' },
{ text: 'Examples', link: '/catalog/' },
{
text: 'Reference',
items: [
{ text: 'Command Line Interface', link: '/reference/cli.html' },
{ text: 'Rule Config', link: '/reference/yaml.html' },
{ text: 'Rule Object', link: '/reference/rule.html' },
{ text: 'Playground Manual', link: '/reference/playground.html' },
]
},
{
text: 'Resources',
items: [
{ text: 'FAQ', link: '/advanced/faq.html' },
{ text: 'Rule Examples', link: '/catalog/' },
{ text: 'Custom Language', link: '/advanced/custom-language.html' },
{ text: 'Contributing', link: '/contributing/how-to.html' },
],
},
{ text: 'Playground', link: '/playground.html' },
],
socialLinks: [
Expand Down
8 changes: 4 additions & 4 deletions website/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ h1 {
line-height: 1.1;
}

button {
.root button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
Expand All @@ -141,13 +141,13 @@ button {
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
.root button:hover {
border-color: var(--vp-button-alt-hover-border);
color: var(--vp-button-alt-hover-text);
background-color: var(--vp-button-alt-hover-bg);
}
button:focus,
button:focus-visible {
.root button:focus,
.root button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}

Expand Down

0 comments on commit 7c4a14e

Please sign in to comment.