Skip to content

Commit

Permalink
chore: restructure website menu (#1078)
Browse files Browse the repository at this point in the history
  • Loading branch information
thepassle authored and daKmoR committed Dec 3, 2019
1 parent cedb4af commit 750322b
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 53 deletions.
132 changes: 80 additions & 52 deletions docs/.vuepress/config.js
Expand Up @@ -4,75 +4,104 @@ const sidebar = [
['/', 'Home'],
['/guide/', 'Introduction'],
{
title: 'Developing',
title: 'Guides & Docs',
collapsable: true,
children: [
['/developing/', 'Getting started'],
['/developing/ide', 'IDE'],
'/developing/lit-html',
'/developing/code-examples',
'/developing/best-practices',
'/developing/es-dev-server',
['/init/', 'Generators'],
'/developing/lit-helpers',
['/codelabs/', 'Codelabs'],
'/developing/code-examples',
'/developing/lit-html',
'/developing/types',
'/developing/routing',
],
},
['/codelabs/', 'Codelabs'],
{
title: 'Linting',
collapsable: true,
children: [
['/linting/', 'Getting started'],
'/linting/linting-eslint',
'/linting/linting-prettier',
'/linting/linting-types',
['/developing/ide', 'IDE'],
'/guide/component-libraries',
],
},
{
title: 'Testing',
title: 'Configs & Recommendations',
collapsable: true,
children: [
['/testing/', 'Getting started'],
'/testing/testing',
'/testing/testing-helpers',
'/testing/testing-chai-a11y-axe',
'/testing/testing-sinon',
'/testing/semantic-dom-diff',
'/testing/testing-karma',
'/testing/karma-esm',
'/testing/testing-karma-bs',
'/testing/testing-wallaby',
{
title: 'Linting',
collapsable: true,
children: [
['/linting/', 'Getting started'],
'/linting/linting-eslint',
'/linting/linting-prettier',
'/linting/linting-types',
],
},
{
title: 'Developing',
collapsable: true,
children: ['/developing/'],
},

{
title: 'Testing',
collapsable: true,
children: [
['/testing/', 'Getting started'],
'/testing/testing',
'/testing/testing-karma',
'/testing/testing-karma-bs',
'/testing/testing-wallaby',
],
},
{
title: 'Building apps for production',
collapsable: true,
children: [
['/building/', 'Getting started'],
'/building/building-rollup',
'/building/building-webpack',
],
},
{
title: 'Deploying apps',
collapsable: true,
children: [['/publishing/', 'Getting started']],
},
{
title: 'Demoing',
collapsable: true,
children: [['/demoing/', 'Getting started']],
},
],
},
{
title: 'Building',
title: 'Tools',
collapsable: true,
children: [
['/building/', 'Getting started'],
'/building/building-rollup',
'/building/rollup-plugin-index-html',
'/building/building-webpack',
'/building/webpack-index-html-plugin',
{
title: 'Developing',
collapsable: true,
children: [
'/developing/es-dev-server',
['/init/', 'Generators'],
'/developing/lit-helpers',
],
},
{
title: 'Testing',
collapsable: true,
children: [
'/testing/testing-helpers',
'/testing/testing-chai-a11y-axe',
'/testing/testing-sinon',
'/testing/semantic-dom-diff',
'/testing/karma-esm',
],
},
{
title: 'Building',
collapsable: true,
children: ['/building/rollup-plugin-index-html', '/building/webpack-index-html-plugin'],
},
],
},
{
title: 'Demoing',
collapsable: true,
children: [['/demoing/', 'Getting started']],
},
{
title: 'Publishing',
collapsable: true,
children: [['/publishing/', 'Getting started']],
},
{
title: 'Automating',
collapsable: true,
children: [['/automating/', 'Getting started']],
},
];

module.exports = {
title: 'open-wc',
description: 'Open Web Component Recommendations',
Expand All @@ -97,7 +126,6 @@ module.exports = {
title: 'Deep dives',
collapsable: true,
children: [
'component-libraries',
'rerender',
'unit-testing-custom-events',
'unit-testing-init-error',
Expand Down
9 changes: 8 additions & 1 deletion docs/.vuepress/styles/index.styl
Expand Up @@ -5,4 +5,11 @@
background-color: #388cfa

.header-anchor
color: #9B35FA
color: #9B35FA

.sidebar-group.is-sub-group > .sidebar-heading span
font-weight: bold
color: #2c3e50

.sidebar-group.is-sub-group > p
opacity: 1!important
File renamed without changes.

0 comments on commit 750322b

Please sign in to comment.