-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add markdown supported documentation pages
- Loading branch information
Showing
5 changed files
with
164 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import Root from "./views/Root.vue"; | ||
import Documentation from "./views/Documentation.vue"; | ||
import EditEndPointsGrar from "./views/EditEndPointsGrar.vue"; | ||
|
||
export const DocumentationRoutes = [ | ||
{ | ||
path: "/documentatie", | ||
component: Root, | ||
meta: {}, | ||
children: [ | ||
{ | ||
path: "", | ||
component: Documentation, | ||
name: "documentation" | ||
}, | ||
{ | ||
path: "editendpointsgrar", | ||
component: EditEndPointsGrar, | ||
name: "editendpointsgrar" | ||
}, | ||
], | ||
}, | ||
]; | ||
|
||
export default DocumentationRoutes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<template> | ||
<vl-page> | ||
<vl-main> | ||
<vl-region> | ||
<vl-layout> | ||
<vl-grid mod-stacked> | ||
<vl-column width="9" width-s="12"> | ||
<vl-link :to="$l('backButtons.home.url')" mod-bold v-l="`backButtons.home.text`" /> | ||
<header> | ||
<y-markdown v-if="$data.markdownLoaded" :src="$data.header" /> | ||
</header> | ||
</vl-column> | ||
|
||
<vl-column> | ||
<vl-grid mod-stacked> | ||
<vl-column :width="`${$data.sidebar.urls > 0 ? 8 : 12}`" width-s="12"> | ||
<vl-grid mod-stacked> | ||
<vl-column> | ||
<vl-typography> | ||
<y-markdown v-if="$data.markdownLoaded" :src="$data.content" /> | ||
</vl-typography> | ||
</vl-column> | ||
<vl-column v-for="item in $data.doormatItems" :key="item.url" width="6" width-s="12"> | ||
<vl-doormat :title="item.title" :href="item.url" mod-alt /> | ||
</vl-column> | ||
</vl-grid> | ||
</vl-column> | ||
<vl-column v-if="$data.sidebar.urls > 0" width="3" push="1" push-m="reset" width-s="12"> | ||
<aside v-vl-sticky="{ top: '120px', left: '0' }"> | ||
<vl-side-navigation :title="$l(`${$options.localeName}.sidebar.title`)"> | ||
<vl-side-navigation-list> | ||
<template v-for="item in $data.sidebar.urls"> | ||
<vl-side-navigation-item :key="item.url" :href="item.url" :text="item.title" /> | ||
</template> | ||
</vl-side-navigation-list> | ||
</vl-side-navigation> | ||
</aside> | ||
</vl-column> | ||
</vl-grid> | ||
</vl-column> | ||
</vl-grid> | ||
</vl-layout> | ||
</vl-region> | ||
</vl-main> | ||
</vl-page> | ||
</template> | ||
|
||
|
||
<script lang="ts"> | ||
import Vue from "vue"; | ||
export default Vue.extend({ | ||
localeName: "documentation", | ||
hasMarkdown: true | ||
}); | ||
</script> | ||
|
||
<style lang="scss"> | ||
div.functional-documentation { | ||
h2, h3, h4, h5, h6, a, p { | ||
scroll-margin: 80px; | ||
} | ||
} | ||
</style> |
64 changes: 64 additions & 0 deletions
64
site/src/modules/documentation/views/EditEndPointsGrar.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<template> | ||
<vl-page class="edit-endpoints-grar"> | ||
<vl-main> | ||
<vl-region> | ||
<vl-layout> | ||
<vl-grid mod-stacked> | ||
<vl-column width="9" width-s="12"> | ||
<vl-link :to="$l('backButtons.documentation.url')" mod-bold v-l="`backButtons.documentation.text`" /> | ||
<header> | ||
<y-markdown v-if="$data.markdownLoaded" :src="$data.header" /> | ||
</header> | ||
</vl-column> | ||
|
||
<vl-column> | ||
<vl-grid mod-stacked> | ||
<vl-column :width="`${$data.sidebar.urls > 0 ? 8 : 12}`" width-s="12"> | ||
<vl-grid mod-stacked> | ||
<vl-column> | ||
<vl-typography> | ||
<y-markdown v-if="$data.markdownLoaded" :src="$data.content" /> | ||
</vl-typography> | ||
</vl-column> | ||
<vl-column v-for="item in $data.doormatItems" :key="item.url" width="6" width-s="12"> | ||
<vl-doormat :title="item.title" :href="item.url" mod-alt /> | ||
</vl-column> | ||
</vl-grid> | ||
</vl-column> | ||
<vl-column v-if="$data.sidebar.urls > 0" width="3" push="1" push-m="reset" width-s="12"> | ||
<aside v-vl-sticky="{ top: '120px', left: '0' }"> | ||
<vl-side-navigation :title="$l(`${$options.localeName}.sidebar.title`)"> | ||
<vl-side-navigation-list> | ||
<template v-for="item in $data.sidebar.urls"> | ||
<vl-side-navigation-item :key="item.url" :href="item.url" :text="item.title" /> | ||
</template> | ||
</vl-side-navigation-list> | ||
</vl-side-navigation> | ||
</aside> | ||
</vl-column> | ||
</vl-grid> | ||
</vl-column> | ||
</vl-grid> | ||
</vl-layout> | ||
</vl-region> | ||
</vl-main> | ||
</vl-page> | ||
</template> | ||
|
||
|
||
<script lang="ts"> | ||
import Vue from "vue"; | ||
export default Vue.extend({ | ||
localeName: "editendpointsgrar", | ||
hasMarkdown: true, | ||
}); | ||
</script> | ||
|
||
<style lang="scss"> | ||
div.edit-endpoints-grar { | ||
h2, h3, h4, h5, h6, a, p { | ||
scroll-margin: 80px; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<template> | ||
<div> | ||
<router-view | ||
@pageLoaded="(args) => $emit('pageLoaded', args)" | ||
@updateStatus="(args) => $emit('updateStatus', args)" | ||
/> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters