Skip to content

Commit c3d9564

Browse files
committed
docs: remove edit page link on examples
Resolves #302
1 parent af2e5be commit c3d9564

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/.vuepress/config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,11 @@ function getExamplesSidebar () {
182182
title: `${apiName[0].toUpperCase() + apiName.slice(1)} API`,
183183
collapsable: false,
184184
children: levels.map((level, index) => {
185-
const hasGenerated = generateExampleMarkdown(apiName, level, index === 0 ? { prev: false } : index === levels.length - 1 ? { next: false } : {})
185+
const hasGenerated = generateExampleMarkdown(apiName, level, {
186+
editLink: false,
187+
prev: index !== 0,
188+
next: index !== levels.length - 1
189+
})
186190
const title = level[0].toUpperCase() + level.slice(1)
187191
return [`/examples/${apiName}-api/${level}`, hasGenerated ? title : `${title} (soon)`]
188192
})

0 commit comments

Comments
 (0)