diff --git a/docs/gridsome.config.js b/docs/gridsome.config.js index be94b234..35ff9d4e 100644 --- a/docs/gridsome.config.js +++ b/docs/gridsome.config.js @@ -18,8 +18,8 @@ module.exports = { use: '@gridsome/vue-remark', options: { typeName: 'Post', - baseDir: './src/data', - route: '/posts/:slug', + baseDir: './src/data/posts', + route: '/:slug', template: './src/templates/Post.vue', plugins: [ '@gridsome/remark-prismjs', diff --git a/docs/src/data/links.yaml b/docs/src/data/links.yaml new file mode 100644 index 00000000..e457b23a --- /dev/null +++ b/docs/src/data/links.yaml @@ -0,0 +1,10 @@ +- title: Getting Started + items: + - title: Install + link: /install/ + - title: Basic Example + link: /basic-example/ + - title: Advanced Example + link: /advanced-example/ + - title: React + link: /react/ \ No newline at end of file diff --git a/docs/src/data/extensions.md b/docs/src/data/posts/advanced.md similarity index 60% rename from docs/src/data/extensions.md rename to docs/src/data/posts/advanced.md index c626a3da..861ef013 100644 --- a/docs/src/data/extensions.md +++ b/docs/src/data/posts/advanced.md @@ -1,6 +1,6 @@ --- -title: Handle Extensions -slug: handle-extensions +title: Advanced Example +slug: advanced-example --- Use a custom list of extensions. diff --git a/docs/src/data/basic.md b/docs/src/data/posts/basic.md similarity index 81% rename from docs/src/data/basic.md rename to docs/src/data/posts/basic.md index 11070c56..041e74a1 100644 --- a/docs/src/data/basic.md +++ b/docs/src/data/posts/basic.md @@ -1,6 +1,6 @@ --- title: Basic Example -slug: basic +slug: basic-example --- This is a basic example of tiptap. diff --git a/docs/src/data/install.md b/docs/src/data/posts/install.md similarity index 100% rename from docs/src/data/install.md rename to docs/src/data/posts/install.md diff --git a/docs/src/data/react.md b/docs/src/data/posts/react.md similarity index 83% rename from docs/src/data/react.md rename to docs/src/data/posts/react.md index 60cf19cd..b2a1251e 100644 --- a/docs/src/data/react.md +++ b/docs/src/data/posts/react.md @@ -1,5 +1,5 @@ --- -title: React Test +title: React slug: react --- diff --git a/docs/src/demos/Basic/style.scss b/docs/src/demos/Basic/style.scss index b7a4851c..6e7bccb6 100644 --- a/docs/src/demos/Basic/style.scss +++ b/docs/src/demos/Basic/style.scss @@ -1,3 +1,3 @@ -.bla { +.this-is-a-test { color: black; } \ No newline at end of file diff --git a/docs/src/layouts/App/index.vue b/docs/src/layouts/App/index.vue index 2ae08855..f16d4c86 100644 --- a/docs/src/layouts/App/index.vue +++ b/docs/src/layouts/App/index.vue @@ -10,15 +10,20 @@
- +
@@ -33,19 +38,22 @@ query { metadata { siteName } - allPost { - edges { - node { - id - title - path - } - } - } } + + - - \ No newline at end of file diff --git a/docs/src/layouts/App/style.scss b/docs/src/layouts/App/style.scss index 37b82a9f..cc0ab383 100644 --- a/docs/src/layouts/App/style.scss +++ b/docs/src/layouts/App/style.scss @@ -8,6 +8,19 @@ font-size: 1.4rem; } + &__link-group { + margin-bottom: 2rem; + } + + &__link-group-title { + font-weight: 700; + letter-spacing: 0.05rem; + font-size: 0.75rem; + text-transform: uppercase; + color: rgba($colorBlack, 0.4); + margin-bottom: 0.5rem; + } + &__link { display: block; padding: 0.1rem 0.5rem; diff --git a/docs/src/templates/Post.vue b/docs/src/templates/Post.vue index 3097cbe7..3597ac9d 100644 --- a/docs/src/templates/Post.vue +++ b/docs/src/templates/Post.vue @@ -2,8 +2,6 @@

{{ $page.post.title }}

- -
@@ -13,53 +11,4 @@ query Post ($id: ID!) { title } } - - - \ No newline at end of file + \ No newline at end of file