diff --git a/docs/gridsome.config.js b/docs/gridsome.config.js index 68ebb6f2..dd739bf5 100644 --- a/docs/gridsome.config.js +++ b/docs/gridsome.config.js @@ -44,7 +44,7 @@ module.exports = { typeName: 'DocPage', baseDir: './src/docPages', template: './src/templates/DocPage/index.vue', - index: './introduction', + // index: './introduction', plugins: [ '@gridsome/remark-prismjs', 'remark-container', diff --git a/docs/src/components/AppSection/index.vue b/docs/src/components/AppSection/index.vue new file mode 100644 index 00000000..4a5bb866 --- /dev/null +++ b/docs/src/components/AppSection/index.vue @@ -0,0 +1,9 @@ + + + diff --git a/docs/src/components/AppSection/style.scss b/docs/src/components/AppSection/style.scss new file mode 100644 index 00000000..1191485e --- /dev/null +++ b/docs/src/components/AppSection/style.scss @@ -0,0 +1,15 @@ +.app-section { + position: relative; + + &__inner { + position: relative; + z-index: 2; + padding: 4rem 1rem; + margin: 0 auto; + max-width: 50rem; + + // @media (min-width: $mobileBreakPoint) { + // padding: 0 2rem; + // } + } +} diff --git a/docs/src/components/Demo/style.scss b/docs/src/components/Demo/style.scss index 2cbbaf35..c3f24efd 100644 --- a/docs/src/components/Demo/style.scss +++ b/docs/src/components/Demo/style.scss @@ -63,12 +63,12 @@ width: 100%; padding: 0.5rem 1.25rem; font-size: 0.85rem; - border: 1px solid rgba($colorWhite, 0.1); + border-top: 1px solid rgba($colorWhite, 0.1); border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; - border-top-width: 0; background-color: $colorBlack; white-space: nowrap; + color: rgba($colorWhite, 0.5); } &__name { @@ -84,6 +84,10 @@ &__link { margin-left: auto; + + &:hover { + color: $colorWhite; + } } &__error { diff --git a/docs/src/layouts/App/index.vue b/docs/src/layouts/App/index.vue index f605dc03..64009c70 100644 --- a/docs/src/layouts/App/index.vue +++ b/docs/src/layouts/App/index.vue @@ -33,7 +33,7 @@
-
+
@@ -49,7 +49,7 @@
-
+
@@ -123,6 +123,13 @@ import PageNavigation from '@/components/PageNavigation' // import GithubButton from 'vue-github-button' export default { + props: { + showSidebar: { + type: Boolean, + default: true, + }, + }, + components: { Icon, PageNavigation, diff --git a/docs/src/layouts/App/style.scss b/docs/src/layouts/App/style.scss index b33ffe12..b3d342ff 100644 --- a/docs/src/layouts/App/style.scss +++ b/docs/src/layouts/App/style.scss @@ -8,7 +8,7 @@ $menuBreakPoint: 800px; &__navigation { position: fixed; display: flex; - z-index: 1; + z-index: 2; top: 0; width: 100%; height: $navHeight; @@ -33,6 +33,8 @@ $menuBreakPoint: 800px; &__content { display: flex; + position: relative; + z-index: 1; } &__name { @@ -163,15 +165,15 @@ $menuBreakPoint: 800px; } } - &__inner { - margin: 0 auto; - max-width: 50rem; - padding: 0 1rem; + // &__inner { + // margin: 0 auto; + // max-width: 50rem; + // padding: 0 1rem; - @media (min-width: $mobileBreakPoint) { - padding: 0 2rem; - } - } + // @media (min-width: $mobileBreakPoint) { + // padding: 0 2rem; + // } + // } &__link-group { margin-bottom: 1rem; diff --git a/docs/src/links.yaml b/docs/src/links.yaml index dbabf680..67d75b23 100644 --- a/docs/src/links.yaml +++ b/docs/src/links.yaml @@ -1,7 +1,5 @@ - title: Overview items: - - title: Introduction - link: / - title: Installation link: /overview/installation - title: Upgrade Guide diff --git a/docs/src/pages/index.vue b/docs/src/pages/index.vue new file mode 100644 index 00000000..2ebcb7c5 --- /dev/null +++ b/docs/src/pages/index.vue @@ -0,0 +1,95 @@ + + + diff --git a/docs/src/templates/DocPage/index.vue b/docs/src/templates/DocPage/index.vue index cbcd1b05..634ee7cd 100644 --- a/docs/src/templates/DocPage/index.vue +++ b/docs/src/templates/DocPage/index.vue @@ -1,8 +1,10 @@ @@ -19,7 +21,13 @@ query($path: String!) {