From 095d4a327b382f3eb9cf94072da6a1fa98224b04 Mon Sep 17 00:00:00 2001 From: jffarge Date: Thu, 31 Mar 2022 15:53:25 +0200 Subject: [PATCH] Display getting started as the index page Signed-off-by: jffarge --- docs/getting-started/1200-local-dev.md | 2 +- docs/getting-started/index.md | 15 +++++++++++++++ website/sidebars.js | 7 ++----- website/src/css/custom.scss | 2 +- 4 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 docs/getting-started/index.md diff --git a/docs/getting-started/1200-local-dev.md b/docs/getting-started/1200-local-dev.md index a3b1fda7..5ed0166f 100644 --- a/docs/getting-started/1200-local-dev.md +++ b/docs/getting-started/1200-local-dev.md @@ -1,5 +1,5 @@ --- -slug: / +slug: /1200/local-dev displayed_sidebar: europa --- diff --git a/docs/getting-started/index.md b/docs/getting-started/index.md new file mode 100644 index 00000000..35acded1 --- /dev/null +++ b/docs/getting-started/index.md @@ -0,0 +1,15 @@ +--- +slug: / +displayed_sidebar: europa +--- + +# Getting Started + +```mdx-code-block +import DocCardList from '@theme/DocCardList'; +import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; + +Run your CI/CD pipelines locally, then easily integrate them with any CI environment. + + +``` diff --git a/website/sidebars.js b/website/sidebars.js index 24011247..8c9cb7ba 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -79,12 +79,9 @@ module.exports = { type: "category", label: "Getting Started", collapsible: false, - collapsed: false, link: { - type: 'generated-index', - title: 'Getting Started', - description: - "Run your CI/CD pipelines locally, then easily integrate them with any CI environment.", + type: 'doc', + id: 'getting-started/index' }, items: ["getting-started/local-dev", "getting-started/ci-environment"], }, diff --git a/website/src/css/custom.scss b/website/src/css/custom.scss index 97476723..c74aec50 100644 --- a/website/src/css/custom.scss +++ b/website/src/css/custom.scss @@ -124,7 +124,7 @@ code { --ifm-h3-vertical-rhythm-top: 2; } - a { + a:not(.card) { font-weight: bold; text-decoration: underline; color: var(--ifm-color-primary-dark);