diff --git a/build.js b/build.js index c298e4c6cd572..195903db35b9b 100755 --- a/build.js +++ b/build.js @@ -101,6 +101,10 @@ function buildlocale (source, locale) { sortBy: 'date', reverse: true, refer: false + }, + knowledgeBase: { + pattern: 'knowledge/**/*.md', + refer: false } })) .use(markdown(markedOptions)) diff --git a/layouts/docs.hbs b/layouts/docs.hbs index b8c055ee14ad6..fba38c572324e 100644 --- a/layouts/docs.hbs +++ b/layouts/docs.hbs @@ -8,22 +8,7 @@
- + {{> docs-menu }}
{{{ contents }}} diff --git a/layouts/knowledge-base-index.hbs b/layouts/knowledge-base-index.hbs new file mode 100644 index 0000000000000..e855301aae123 --- /dev/null +++ b/layouts/knowledge-base-index.hbs @@ -0,0 +1,26 @@ + + +{{> html-head }} + + + {{> header }} + +
+
+ + {{> docs-menu }} + +
+ {{{ contents }}} + + {{#each collections.knowledgeBase}} +
  • {{ title }}
  • + {{/each}} +
    + +
    +
    + + {{> footer }} + + diff --git a/locale/en/knowledge/index.md b/locale/en/knowledge/index.md new file mode 100644 index 0000000000000..e6ee74d2e977d --- /dev/null +++ b/locale/en/knowledge/index.md @@ -0,0 +1,6 @@ +--- +title: Knowledge Base +layout: knowledge-base-index.hbs +--- + +# Knowledge Base diff --git a/locale/en/site.json b/locale/en/site.json index eb8842cf200e5..b252f45365d9a 100644 --- a/locale/en/site.json +++ b/locale/en/site.json @@ -73,6 +73,10 @@ "api": { "link": "/api/", "text": "API" + }, + "knowledge": { + "link": "knowledge", + "text": "Knowledge Base" } }, "foundation": {