Skip to content

Commit

Permalink
redorder forms sidebar items, collapse all but login by default, and …
Browse files Browse the repository at this point in the history
…fix incorrect filename for Create items
  • Loading branch information
jprusik committed May 3, 2024
1 parent 0b67221 commit 4da6151
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"collapsed": true,
"label": "Create",
"link": {
"type": "generated-index",
"description": "Common patterns for account creation forms"
},
"collapsed": false
"position": 5
}
3 changes: 2 additions & 1 deletion client/docs/forms/identity/_category_.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"collapsed": true,
"label": "Identity",
"link": {
"type": "generated-index",
"description": "Common patterns for identity forms"
},
"collapsed": false
"position": 2
}
4 changes: 2 additions & 2 deletions client/docs/forms/login/_category_.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"collapsed": false,
"label": "Login",
"position": 1,
"link": {
"type": "generated-index",
"description": "Common patterns for login forms"
},
"collapsed": false
"position": 1
}
3 changes: 2 additions & 1 deletion client/docs/forms/payment/_category_.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"collapsed": true,
"label": "Payment",
"link": {
"type": "generated-index",
"description": "Common patterns for payment forms"
},
"collapsed": false
"position": 3
}
3 changes: 2 additions & 1 deletion client/docs/forms/search/_category_.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"collapsed": true,
"label": "Search",
"link": {
"type": "generated-index",
"description": "Common patterns for search inputs"
},
"collapsed": false
"position": 4
}
3 changes: 2 additions & 1 deletion client/docs/forms/update/_category_.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"collapsed": true,
"label": "Update",
"link": {
"type": "generated-index",
"description": "Common patterns for authentication update forms"
},
"collapsed": false
"position": 6
}
4 changes: 4 additions & 0 deletions client/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ const config: Config = {
{
docs: {
breadcrumbs: false,
// @TODO there is a known issue where docs `routeBasePath` set to "/" breaks 404 pages
// https://github.com/facebook/docusaurus/issues/9665
// https://github.com/facebook/docusaurus/issues/9688

routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
},
Expand Down

0 comments on commit 4da6151

Please sign in to comment.