Skip to content

Commit e044322

Browse files
committed
Give a custom slug for generic tools section
1 parent fe93c46 commit e044322

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/pages/code.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export default ({ pageContext }: any) => {
140140
</a>
141141
</div>
142142
<div className="column">
143-
<a href="#tools">
143+
<a href="#generic-tools">
144144
<h3>Tools</h3>
145145
</a>
146146
</div>
@@ -165,11 +165,16 @@ export default ({ pageContext }: any) => {
165165
</div>
166166

167167
{buildLanguagesMenu(pageContext)}
168-
169168
{buildLanguagesContent(pageContext)}
169+
<h2>
170+
<a className="anchor" id="generic-tools" name="generic-tools"></a>
171+
Tools
172+
<a className="hash-link" href="#generic-tools">
173+
#
174+
</a>
175+
</h2>
170176
<Marked pageContext={pageContext}>
171177
{`
172-
## Tools
173178
${buildLibraryListMarkdown(pageContext.codeData.Tools)}
174179
`}
175180
</Marked>

src/templates/doc.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const Blog = ({ data, pageContext }: Props) => {
3636
rawMarkdownBody={rawMarkdownBody}
3737
nextDoc={nextDoc}
3838
sideBarData={pageContext.sideBarData}
39+
pageContext={pageContext}
3940
/>
4041
</Layout>
4142
)

0 commit comments

Comments
 (0)