Skip to content

Commit 9b2aa58

Browse files
committed
Give a custom slug for generic tools section
1 parent e368125 commit 9b2aa58

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
@@ -39,6 +39,7 @@ const Blog = ({ data, pageContext }: Props) => {
3939
rawMarkdownBody={rawMarkdownBody}
4040
nextDoc={nextDoc}
4141
sideBarData={pageContext.sideBarData}
42+
pageContext={pageContext}
4243
/>
4344
</Layout>
4445
)

0 commit comments

Comments
 (0)