@primer/doctocat-nextjs 0.5.7 → 0.5.8-rc.3941255

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @primer/doctocat-nextjs
2
2
 
3
+ ## 0.5.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#59](https://github.com/primer/doctocat-nextjs/pull/59) [`c24a5b9`](https://github.com/primer/doctocat-nextjs/commit/c24a5b98aad639b42213ad230d923907115eb864) Thanks [@danielguillan](https://github.com/danielguillan)! - Switched sidebar navigation and content document order for improved accessibility
8
+
3
9
  ## 0.5.7
4
10
 
5
11
  ### Patch Changes
@@ -130,6 +130,19 @@ export function Theme({pageMap, children}: ThemeProps) {
130
130
  <Header flatDocsDirectories={flatDocsDirectories} siteTitle={siteTitle} pageMap={pageMap} />
131
131
  </PRCBox>
132
132
  <PageLayout rowGap="none" columnGap="none" padding="none" containerWidth="full">
133
+ <PageLayout.Pane
134
+ width="small"
135
+ sticky
136
+ offsetHeader={65}
137
+ padding="none"
138
+ position="start"
139
+ hidden={{narrow: true}}
140
+ divider="line"
141
+ >
142
+ <aside aria-label={`${activeHeaderLink ? activeHeaderLink.title : siteTitle} sidebar`}>
143
+ <Sidebar pageMap={pageMap} />
144
+ </aside>
145
+ </PageLayout.Pane>
133
146
  <PageLayout.Content padding="normal">
134
147
  <div id="main">
135
148
  <PRCBox sx={!isHomePage && {maxWidth: 1200, width: '100%', margin: '0 auto'}}>
@@ -247,18 +260,6 @@ export function Theme({pageMap, children}: ThemeProps) {
247
260
  </PRCBox>
248
261
  </div>
249
262
  </PageLayout.Content>
250
- <PageLayout.Pane
251
- aria-label="Side navigation"
252
- width="small"
253
- sticky
254
- offsetHeader={65}
255
- padding="none"
256
- position="start"
257
- hidden={{narrow: true}}
258
- divider="line"
259
- >
260
- <Sidebar pageMap={pageMap} />
261
- </PageLayout.Pane>
262
263
  </PageLayout>
263
264
  </ContentWrapper>
264
265
  </BaseStyles>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/doctocat-nextjs",
3
- "version": "0.5.7",
3
+ "version": "0.5.8-rc.3941255",
4
4
  "description": "A Next.js theme for building Primer documentation sites",
5
5
  "main": "index.js",
6
6
  "type": "module",