-
-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2644 from preschian/add-contribute-and-first-time…
…-pages
- Loading branch information
Showing
8 changed files
with
110 additions
and
0 deletions.
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 @@ | ||
declare module '*.md' |
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
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
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,32 @@ | ||
<template> | ||
<section class="content"> | ||
<VueMarkdown :source="content" :options="options" /> | ||
</section> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Vue } from 'nuxt-property-decorator' | ||
import highlight from '~/utils/highlight' | ||
import '@/styles/content-markdown.scss' | ||
import Contributing from '../CONTRIBUTING.md' | ||
@Component({ | ||
components: { | ||
VueMarkdown: () => import('vue-markdown-render'), | ||
}, | ||
data() { | ||
return { | ||
options: { | ||
highlight, | ||
}, | ||
} | ||
}, | ||
}) | ||
export default class Contribute extends Vue { | ||
get content() { | ||
return Contributing | ||
} | ||
} | ||
</script> |
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,32 @@ | ||
<template> | ||
<section class="content"> | ||
<VueMarkdown :source="content" :options="options" /> | ||
</section> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Vue } from 'nuxt-property-decorator' | ||
import highlight from '~/utils/highlight' | ||
import '@/styles/content-markdown.scss' | ||
import FirstTimeMD from '../FIRST_TIME.md' | ||
@Component({ | ||
components: { | ||
VueMarkdown: () => import('vue-markdown-render'), | ||
}, | ||
data() { | ||
return { | ||
options: { | ||
highlight, | ||
}, | ||
} | ||
}, | ||
}) | ||
export default class FirstTime extends Vue { | ||
get content() { | ||
return FirstTimeMD | ||
} | ||
} | ||
</script> |
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,10 @@ | ||
@import '~/node_modules/highlight.js/styles/github-dark.css'; | ||
|
||
.content { | ||
pre, | ||
blockquote { | ||
background-color: black; | ||
border-left: 5px solid #dbdbdb; | ||
padding: 1.25em 1.5em; | ||
} | ||
} |
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,14 @@ | ||
import hljs from 'highlight.js' | ||
|
||
const highlight = function (str, lang) { | ||
if (lang && hljs.getLanguage(lang)) { | ||
try { | ||
return hljs.highlight(str, { language: lang }).value | ||
} catch (__) { | ||
return '' | ||
} | ||
} | ||
return '' | ||
} | ||
|
||
export default highlight |
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