Skip to content

Commit af65683

Browse files
authored
docs(github): support for various file extensions (#250)
1 parent 2c673f5 commit af65683

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/components/docs/DocsPageHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
label="GitHub"
2323
icon="i-simple-icons-github"
2424
color="white"
25-
:to="`https://github.com/nuxtlabs/ui/blob/dev/src/runtime/components/${page._dir}/${page.title.replace(' ', '')}.vue`"
25+
:to="`https://github.com/nuxtlabs/ui/blob/dev/src/runtime/components/${page._dir}/${page.title.replace(' ', '')}${page.github.suffix || '.vue'}`"
2626
/>
2727
</div>
2828
</div>

docs/content/3.forms/8.form-group.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
github: true
2+
github:
3+
suffix: .ts
34
description: Display a label and additional informations around a form element.
45
---
56

0 commit comments

Comments
 (0)