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 + docs/guide/coding-standards/accessibility.md | 1 + docs/guide/coding-standards/index.md | 1 + docs/guide/coding-standards/javascript.md | 1 + docs/guide/coding-standards/sass.md | 1 + docs/guide/components/index.md | 1 + docs/guide/components/page-section.md | 1 + docs/guide/components/page-title.md | 1 + docs/guide/getting-started.md | 1 + docs/guide/guidelines/colors.md | 1 + docs/guide/guidelines/index.md | 1 + docs/guide/guidelines/typography.md | 1 + docs/index.md | 7 ++++ docs/themes/index.md | 1 + 15 files changed, 71 insertions(+) create mode 100644 docs/.vuepress/config.js create mode 100644 docs/.vuepress/public/openbmc-logo.svg create mode 100644 docs/guide/coding-standards/accessibility.md create mode 100644 docs/guide/coding-standards/index.md create mode 100644 docs/guide/coding-standards/javascript.md create mode 100644 docs/guide/coding-standards/sass.md create mode 100644 docs/guide/components/index.md create mode 100644 docs/guide/components/page-section.md create mode 100644 docs/guide/components/page-title.md create mode 100644 docs/guide/getting-started.md create mode 100644 docs/guide/guidelines/colors.md create mode 100644 docs/guide/guidelines/index.md create mode 100644 docs/guide/guidelines/typography.md create mode 100644 docs/index.md create mode 100644 docs/themes/index.md (limited to 'docs') 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 diff --git a/docs/guide/coding-standards/accessibility.md b/docs/guide/coding-standards/accessibility.md new file mode 100644 index 00000000..efbc943b --- /dev/null +++ b/docs/guide/coding-standards/accessibility.md @@ -0,0 +1 @@ +# Accessibility Conventions and Standards \ No newline at end of file diff --git a/docs/guide/coding-standards/index.md b/docs/guide/coding-standards/index.md new file mode 100644 index 00000000..4bba659e --- /dev/null +++ b/docs/guide/coding-standards/index.md @@ -0,0 +1 @@ +# Overview \ No newline at end of file diff --git a/docs/guide/coding-standards/javascript.md b/docs/guide/coding-standards/javascript.md new file mode 100644 index 00000000..6710f2fd --- /dev/null +++ b/docs/guide/coding-standards/javascript.md @@ -0,0 +1 @@ +# JavaScript Conventions and Standards \ No newline at end of file diff --git a/docs/guide/coding-standards/sass.md b/docs/guide/coding-standards/sass.md new file mode 100644 index 00000000..b990f50c --- /dev/null +++ b/docs/guide/coding-standards/sass.md @@ -0,0 +1 @@ +# SASS Conventions and Standards \ No newline at end of file diff --git a/docs/guide/components/index.md b/docs/guide/components/index.md new file mode 100644 index 00000000..4bba659e --- /dev/null +++ b/docs/guide/components/index.md @@ -0,0 +1 @@ +# Overview \ No newline at end of file diff --git a/docs/guide/components/page-section.md b/docs/guide/components/page-section.md new file mode 100644 index 00000000..9c8f1b2d --- /dev/null +++ b/docs/guide/components/page-section.md @@ -0,0 +1 @@ +# Page Section \ No newline at end of file diff --git a/docs/guide/components/page-title.md b/docs/guide/components/page-title.md new file mode 100644 index 00000000..ebc2fc57 --- /dev/null +++ b/docs/guide/components/page-title.md @@ -0,0 +1 @@ +# Page Title \ No newline at end of file diff --git a/docs/guide/getting-started.md b/docs/guide/getting-started.md new file mode 100644 index 00000000..8b3a7945 --- /dev/null +++ b/docs/guide/getting-started.md @@ -0,0 +1 @@ +# Getting Started \ No newline at end of file diff --git a/docs/guide/guidelines/colors.md b/docs/guide/guidelines/colors.md new file mode 100644 index 00000000..7baf37b0 --- /dev/null +++ b/docs/guide/guidelines/colors.md @@ -0,0 +1 @@ +# Colors \ No newline at end of file diff --git a/docs/guide/guidelines/index.md b/docs/guide/guidelines/index.md new file mode 100644 index 00000000..4bba659e --- /dev/null +++ b/docs/guide/guidelines/index.md @@ -0,0 +1 @@ +# Overview \ No newline at end of file diff --git a/docs/guide/guidelines/typography.md b/docs/guide/guidelines/typography.md new file mode 100644 index 00000000..db88d407 --- /dev/null +++ b/docs/guide/guidelines/typography.md @@ -0,0 +1 @@ +# Typography \ No newline at end of file diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 00000000..1aaa4adc --- /dev/null +++ b/docs/index.md @@ -0,0 +1,7 @@ +--- +home: true +heroImage: openbmc-logo.svg +heroText: Style Guide and Coding Conventions +actionText: Getting Started +actionLink: /guide/getting-started +--- \ No newline at end of file diff --git a/docs/themes/index.md b/docs/themes/index.md new file mode 100644 index 00000000..e86c6e5c --- /dev/null +++ b/docs/themes/index.md @@ -0,0 +1 @@ +# Themes \ No newline at end of file -- cgit v1.2.3