Skip to content

Commit

Permalink
fix(docs): hide "docs" header in the sidebar (vercel#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding authored Oct 23, 2022
1 parent 91e3415 commit 11740e7
Show file tree
Hide file tree
Showing 8 changed files with 114 additions and 62 deletions.
2 changes: 1 addition & 1 deletion docs/components/pages/landing/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
mask-composite: exclude;
z-index: -1;
border-radius: calc(var(--border-radius) - var(--border-size));
border-radius: calc(var(--border-radius) + var(--border-size));
}

.counter-border i::before {
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"ms": "^2.1.3",
"next": "12.3.1",
"next-themes": "^0.2.0",
"nextra": "2.0.0-beta.33",
"nextra-theme-docs": "2.0.0-beta.33",
"nextra": "2.0.0-beta.34",
"nextra-theme-docs": "2.0.0-beta.34",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hot-toast": "2.4.0",
Expand Down
10 changes: 5 additions & 5 deletions docs/pages/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"index": {
"title": "Home",
"type": "page",
"hidden": true,
"display": "hidden",
"theme": {
"layout": "raw",
"sidebar": false,
Expand All @@ -27,7 +27,7 @@
"newWindow": true
},
"showcase": {
"hidden": true,
"display": "hidden",
"title": "Showcase",
"type": "page",
"theme": {
Expand All @@ -38,14 +38,14 @@
},
"confirm": {
"title": "Confirm",
"hidden": true
"display": "hidden"
},
"terms": {
"title": "Terms of Use",
"hidden": true
"display": "hidden"
},
"privacy": {
"title": "Privacy Policy",
"hidden": true
"display": "hidden"
}
}
2 changes: 1 addition & 1 deletion docs/pages/blog/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"*": {
"//": "Hide all the links from the sidebar or navbar, and disable ToC and Sidebar for these pages.",
"hidden": true,
"display": "hidden",
"theme": {
"toc": false,
"sidebar": false,
Expand Down
5 changes: 3 additions & 2 deletions docs/pages/pack/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
"index": {
"title": "Home",
"type": "page",
"hidden": true,
"display": "hidden",
"theme": {
"layout": "raw",
"sidebar": false,
"toc": true
}
},
"docs": {
"title": "Docs"
"title": "Docs",
"display": "children"
}
}
5 changes: 3 additions & 2 deletions docs/pages/repo/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
"index": {
"title": "Home",
"type": "page",
"hidden": true,
"display": "hidden",
"theme": {
"layout": "raw",
"sidebar": false,
"toc": true
}
},
"docs": {
"title": "Docs"
"title": "Docs",
"display": "children"
}
}
2 changes: 1 addition & 1 deletion docs/pages/repo/docs/core-concepts/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"caching": "Caching",
"remote-caching": "Remote Caching",
"scopes": {
"hidden": true
"display": "hidden"
}
}
Loading

0 comments on commit 11740e7

Please sign in to comment.