restructuring

This commit is contained in:
Philipp Kühn
2020-04-24 10:03:15 +02:00
parent 397de08db0
commit 0f0b92b672
20 changed files with 4 additions and 23 deletions

View File

@@ -19,7 +19,7 @@ module.exports = {
use: '@gridsome/vue-remark', use: '@gridsome/vue-remark',
options: { options: {
typeName: 'DocPage', typeName: 'DocPage',
baseDir: './src/data/posts', baseDir: './src/docPages',
template: './src/templates/DocPage', template: './src/templates/DocPage',
plugins: [ plugins: [
'@gridsome/remark-prismjs', '@gridsome/remark-prismjs',

View File

@@ -24,7 +24,7 @@
</template> </template>
<script> <script>
import linkGroups from '@/data/links.yaml' import linkGroups from '@/links.yaml'
export default { export default {
data() { data() {

View File

@@ -36,6 +36,7 @@ In tiptap we define every node in its own `Extension` class instead. This allows
```js ```js
class Document extends Node { class Document extends Node {
name = 'document' name = 'document'
topNode = true
schema() { schema() {
return { return {

View File

@@ -62,7 +62,7 @@ query {
</static-query> </static-query>
<script> <script>
import linkGroups from '@/data/links.yaml' import linkGroups from '@/links.yaml'
import Icon from '@/components/Icon' import Icon from '@/components/Icon'
import PageNavigation from '@/components/PageNavigation' import PageNavigation from '@/components/PageNavigation'
import GithubButton from 'vue-github-button' import GithubButton from 'vue-github-button'

View File

@@ -1,5 +0,0 @@
Layout components are used to wrap pages and templates. Layouts should contain components like headers, footers or sidebars that will be used across the site.
Learn more about Layouts: https://gridsome.org/docs/layouts/
You can delete this file.

View File

@@ -1,5 +0,0 @@
Pages are usually used for normal pages or for listing items from a GraphQL collection.
Add .vue files here to create pages. For example **About.vue** will be **site.com/about**.
Learn more about pages: https://gridsome.org/docs/pages/
You can delete this file.

View File

@@ -1,7 +0,0 @@
Templates for **GraphQL collections** should be added here.
To create a template for a collection called `WordPressPost`
create a file named `WordPressPost.vue` in this folder.
Learn more: https://gridsome.org/docs/templates/
You can delete this file.

View File

@@ -1,3 +0,0 @@
Add static files here. Files in this directory will be copied directly to `dist` folder during build. For example, /static/robots.txt will be located at https://yoursite.com/robots.txt.
This file should be deleted.