From c7cb5115ec176f5e763d9252149a8bbc5d7381df Mon Sep 17 00:00:00 2001 From: Sergey Bedritsky Date: Thu, 11 Mar 2021 16:48:12 +0200 Subject: [PATCH] fix: readme header (#150) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: header with no aside prop * fix: handle header key in settings * fix: add content dir to purge * docs: add header key * fix: weird spacing and aligning Co-authored-by: Sébastien Chopin --- docs/content/1.get-started/2.configuration.md | 4 +++- theme/components/templates/AsideNavigation.vue | 7 +++++-- theme/components/templates/Container.vue | 2 +- theme/components/templates/Header.vue | 13 ++++++++++--- theme/module.js | 11 +++++++---- theme/plugins/docus.js | 2 +- theme/utils/settings.js | 1 + 7 files changed, 28 insertions(+), 12 deletions(-) diff --git a/docs/content/1.get-started/2.configuration.md b/docs/content/1.get-started/2.configuration.md index 99797f4ee..28c7d585b 100644 --- a/docs/content/1.get-started/2.configuration.md +++ b/docs/content/1.get-started/2.configuration.md @@ -33,8 +33,10 @@ The theme design is based on a `primary` color to make it easy to override, you | `title` | `String` | Documentation title | | `description` | `String` | Brief summary about documentation, added for search engine optimization and social sharing | | `url` | `String` | Url of your deployed documentation. | -| `logo` | `String` `Object` | Logo of the project, can be an `Object` to set a logo per [color mode](https://github.com/nuxt-community/color-mode-module). | | `layout` | `String` | The layout of your documentation (defaults to `docs`). Can be changed to `readme` to have a one-page doc. | +| `logo` | `String` `Object` | Logo of the project, can be an `Object` to set a logo per [color mode](https://github.com/nuxt-community/color-mode-module). To display the logo, see `header.logo` section. | +| `header.logo` | `Boolean` | Defaults to `false`, set to `true` to display the logo in header. | +| `header.title` | `Boolean` | Defaults to `true`, set to `false` to hide the title and only display the logo in header. | | `twitter` | `String` | Twitter username to link in the header. Example: `@nuxt_js`. | | `github` | `Object` or `String` | Can be a `String` to act as `github.repo` if no other config is needed. | | `github.repo` | `String` | GitHub repository for the project. This will enable displaying the last version, the releases page, the link at the top and the `Edit this page on GitHub link` on each page. Example: `nuxt/content`. | diff --git a/theme/components/templates/AsideNavigation.vue b/theme/components/templates/AsideNavigation.vue index 4867e6625..4c33c30ac 100644 --- a/theme/components/templates/AsideNavigation.vue +++ b/theme/components/templates/AsideNavigation.vue @@ -5,7 +5,8 @@
-
+ +
@@ -16,8 +17,10 @@
+ +