xref: /openbmc/webui-vue/docs/.vuepress/config.js (revision 459c1edb)
1const path = require('path');
2
3module.exports = {
4    base: "/webui-vue/",
5    title: "OpenBMC Web UI Style Guide",
6    description:
7      "Guidance on code style and development for the OpenBMC browser-based UI",
8    smoothScroll: true,
9    themeConfig: {
10      nav: [
11        {
12          text: "Guide",
13          link: "/guide/"
14        },
15        {
16          text: "Themes",
17          link: "/themes/"
18        },
19        {
20          text: "Github",
21          link: "https://github.com/openbmc/webui-vue"
22        }
23      ],
24      sidebarDepth: 1,
25      sidebar: {
26        "/guide/": [
27          "",
28          {
29            title: "Coding Standards",
30            children: [
31              ["/guide/coding-standards/accessibility", "Accessibility"],
32              ["/guide/coding-standards/sass", "SASS"],
33              ["/guide/coding-standards/javascript", "JavaScript"]
34            ]
35          },
36          {
37            title: "Guidelines",
38            children: [
39              "/guide/guidelines/colors",
40              "/guide/guidelines/motion",
41              "/guide/guidelines/typography"
42            ]
43          },
44          {
45            title: "Components",
46            children: [
47            "/guide/components/",
48            "/guide/components/alert",
49            "/guide/components/button",
50            "/guide/components/toast",
51          ]
52          }
53        ],
54        "/themes/": ["", "customize", "env"]
55      },
56    },
57    configureWebpack: {
58      resolve: {
59        alias: {
60          '@': path.resolve(__dirname, '../../src')
61        }
62      }
63    }
64  };