Skip to content

Commit

Permalink
docs: remove edit page link on examples
Browse files Browse the repository at this point in the history
Resolves #302
  • Loading branch information
kevinmarrec committed Mar 27, 2020
1 parent af2e5be commit c3d9564
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ function getExamplesSidebar () {
title: `${apiName[0].toUpperCase() + apiName.slice(1)} API`,
collapsable: false,
children: levels.map((level, index) => {
const hasGenerated = generateExampleMarkdown(apiName, level, index === 0 ? { prev: false } : index === levels.length - 1 ? { next: false } : {})
const hasGenerated = generateExampleMarkdown(apiName, level, {
editLink: false,
prev: index !== 0,
next: index !== levels.length - 1
})
const title = level[0].toUpperCase() + level.slice(1)
return [`/examples/${apiName}-api/${level}`, hasGenerated ? title : `${title} (soon)`]
})
Expand Down

0 comments on commit c3d9564

Please sign in to comment.