Skip to content

Commit

Permalink
Use "ref" type in sidebar Doc<->Reference cross links (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
huonw authored Jan 3, 2024
1 parent 764d694 commit b9a2d7a
Show file tree
Hide file tree
Showing 21 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const sidebars = {
className: "margin-vert--none",
},
{
type: "doc",
type: "ref",
id: "reference/global-options",
label: "Reference",
},
Expand All @@ -20,7 +20,7 @@ const sidebars = {
className: "margin-vert--none",
},
{
type: "doc",
type: "ref",
id: "docs/introduction/how-does-pants-work",
label: "Docs",
},
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.0-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/introduction/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.1-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/introduction/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.10-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/introduction/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.11-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/introduction/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.12-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/introduction/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.13-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/introduction/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.14-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/introduction/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.15-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/introduction/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.16-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/introduction/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.17-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/introduction/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.18-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/introduction/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.19-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/introduction/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.2-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/introduction/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.3-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/introduction/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.4-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/introduction/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.5-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/introduction/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.6-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/learn-about-pants/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.7-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/learn-about-pants/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.8-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/learn-about-pants/welcome-to-pants",
"label": "Docs"
}
Expand Down
4 changes: 2 additions & 2 deletions versioned_sidebars/version-2.9-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "reference/global-options",
"label": "Reference"
}
Expand All @@ -26,7 +26,7 @@
"className": "margin-vert--none"
},
{
"type": "doc",
"type": "ref",
"id": "docs/learn-about-pants/welcome-to-pants",
"label": "Docs"
}
Expand Down

0 comments on commit b9a2d7a

Please sign in to comment.