From 365bce5f93f85408cd1b6393e69342e55a0a25ee Mon Sep 17 00:00:00 2001 From: Derick Montague Date: Fri, 3 Jan 2020 08:36:20 -0600 Subject: Add coding guidelines and component documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resubmitting after reverted–original commit here https://gerrit.openbmc-project.xyz/c/openbmc/webui-vue/+/28760 - Update README to include instructions on documentation development - Update vue and vue-template-compiler to be compatible with vuepress Signed-off-by: Derick Montague Change-Id: I72049a5888ef6bea6621d0b7948f57a8e4177666 --- docs/.vuepress/config.js | 51 ++++++++++++++++++++++++++++++++++ docs/.vuepress/public/openbmc-logo.svg | 1 + 2 files changed, 52 insertions(+) create mode 100644 docs/.vuepress/config.js create mode 100644 docs/.vuepress/public/openbmc-logo.svg (limited to 'docs/.vuepress') diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js new file mode 100644 index 00000000..68073188 --- /dev/null +++ b/docs/.vuepress/config.js @@ -0,0 +1,51 @@ +module.exports = { + base: "/webui-vue/", + title: "OpenBMC Web UI Style Guide", + description: + "Guidance on code style and development for the OpenBMC browser-based UI", + smoothScroll: true, + themeConfig: { + nav: [ + { + text: "Guide", + link: "/guide/getting-started" + }, + { + text: "Themes", + link: "/themes/" + }, + { + text: "Github", + link: "https://github.com/openbmc/webui-vue" + } + ], + sidebarDepth: 1, + sidebar: { + "/guide/": [ + "getting-started", + { + title: "Coding Standards", + children: [ + "/guide/coding-standards/", + ["/guide/coding-standards/accessibility", "Accessibility"], + ["/guide/coding-standards/sass", "SASS"], + ["/guide/coding-standards/javascript", "JavaScript"] + ] + }, + { + title: "Guidelines", + children: [ + "/guide/guidelines/", + "/guide/guidelines/colors", + "/guide/guidelines/typography" + ] + }, + { + title: "Components", + children: ["/guide/components/", "/guide/components/page-section"] + } + ] + }, + "/themes/": [""] + } + }; \ No newline at end of file diff --git a/docs/.vuepress/public/openbmc-logo.svg b/docs/.vuepress/public/openbmc-logo.svg new file mode 100644 index 00000000..d0fa158c --- /dev/null +++ b/docs/.vuepress/public/openbmc-logo.svg @@ -0,0 +1 @@ +Asset 1 \ No newline at end of file -- cgit v1.2.3