Skip to content

Commit

Permalink
feat(content-docs): draft docs excluded from build & sidebars (#6457)
Browse files Browse the repository at this point in the history
Co-authored-by: sebastienlorber <[email protected]>
Co-authored-by: Joshua Chen <[email protected]>
  • Loading branch information
3 people authored Apr 13, 2022
1 parent ee4c984 commit 5fb0a2e
Show file tree
Hide file tree
Showing 27 changed files with 396 additions and 58 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@ exports[`simple site custom pagination 1`] = `
"pagination": [
{
"id": "doc with space",
"next": {
"permalink": "/docs/doc-draft",
"title": "doc-draft",
},
"prev": undefined,
},
{
"id": "doc-draft",
"next": {
"permalink": "/docs/foo/bar",
"title": "Bar",
},
"prev": undefined,
"prev": {
"permalink": "/docs/doc with space",
"title": "Hoo hoo, if this path tricks you...",
},
},
{
"id": "foo/bar",
Expand Down Expand Up @@ -163,6 +174,10 @@ exports[`simple site custom pagination 1`] = `
"id": "doc with space",
"type": "doc",
},
{
"id": "doc-draft",
"type": "doc",
},
{
"collapsed": false,
"collapsible": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ exports[`toGlobalDataVersion generates the right docs, sidebars, and metadata 1`
"sidebar": "tutorial",
},
],
"draftIds": [
"some-draft-id",
],
"isLast": true,
"label": "Label",
"mainDocId": "main",
Expand Down
Loading

0 comments on commit 5fb0a2e

Please sign in to comment.