Skip to content

Commit

Permalink
fix edit this doc link
Browse files Browse the repository at this point in the history
  • Loading branch information
ECorreia45 committed Nov 24, 2024
1 parent 2bc1d84 commit aa3ae27
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docs/_layouts/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import footer from './_footer.js'
import copyCode from './_copy-code.js'

const githubDocsPath =
'https://github.com/beforesemicolon/markup/tree/main/docs/documentation'
'https://github.com/beforesemicolon/markup/tree/main/docs'

const navCategoryToHTML = (docs, currentPath) =>
Array.from(docs.entries())
Expand Down Expand Up @@ -67,11 +67,7 @@ export default (props) => {
${nextPage ? `<a href="${nextPage.path}" id="next-doc">${nextPage.name} &gt;&gt;</a>` : ''}
</div>
<a href="${
props.path === '/documentation'
? `${githubDocsPath}/index.md`
: `${githubDocsPath}.md`
}" id="edit-doc">edit this doc</a>
<a href="${`${githubDocsPath}${props.path.replace('.html', '')}.md`}" id="edit-doc">edit this doc</a>
</article>
<aside id="table-of-content">
<h4>Content</h4>
Expand Down

0 comments on commit aa3ae27

Please sign in to comment.