From caaf7baff0b5995ef6c8fef213f1ec7af34ca911 Mon Sep 17 00:00:00 2001 From: Derick Montague Date: Fri, 9 Oct 2020 11:17:48 -0500 Subject: Fix documentation render bug Using the i18n module in the BVToastMixin file caused an issue with VuePress that resulted in the static files not being created and the documentation rendering as a blank page. - Removed the import of the BVToastMixin - Copied BVToastMixin to docs components and removed i18n - Copied the StatusIcon to docs components to so icons will render with the correct fill color in the toast notifications GitHub Issue: https://github.com/openbmc/webui-vue/issues/40 Signed-off-by: Derick Montague Change-Id: Ie479df17d529ad2803c41e7442801e13601a0a02 --- docs/.vuepress/components/BmcToasts.vue | 2 +- .../components/app-imports/BVToastMixin.js | 58 ++++++++++++++++++++ .../components/app-imports/StatusIcon.vue | 61 ++++++++++++++++++++++ docs/.vuepress/config.js | 9 ++++ docs/.vuepress/enhanceApp.js | 2 - 5 files changed, 129 insertions(+), 3 deletions(-) create mode 100644 docs/.vuepress/components/app-imports/BVToastMixin.js create mode 100644 docs/.vuepress/components/app-imports/StatusIcon.vue diff --git a/docs/.vuepress/components/BmcToasts.vue b/docs/.vuepress/components/BmcToasts.vue index 4c9d30f3..6f90d1f1 100644 --- a/docs/.vuepress/components/BmcToasts.vue +++ b/docs/.vuepress/components/BmcToasts.vue @@ -8,7 +8,7 @@ + + diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index dd112e61..8b7be97c 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -1,3 +1,5 @@ +const path = require('path'); + module.exports = { base: "/webui-vue/", title: "OpenBMC Web UI Style Guide", @@ -53,5 +55,12 @@ module.exports = { ], "/themes/": ["", "customize"] }, + }, + configureWebpack: { + resolve: { + alias: { + '@': path.resolve(__dirname, '../../src') + } + } } }; \ No newline at end of file diff --git a/docs/.vuepress/enhanceApp.js b/docs/.vuepress/enhanceApp.js index 9a3b2b64..c0f3dfba 100644 --- a/docs/.vuepress/enhanceApp.js +++ b/docs/.vuepress/enhanceApp.js @@ -1,7 +1,6 @@ import "./styles/_index.scss"; import Alert from "../../src/components/Global/Alert"; -import BVToastMixin from "../../src/components/Mixins/BVToastMixin"; // Bootstrap-vue Plugin imports import { @@ -18,5 +17,4 @@ export default ({ Vue }) => { // BMC Components and Mixins Vue.component('Alert', Alert); - Vue.mixin('BVToastMixin', BVToastMixin); } \ No newline at end of file -- cgit v1.2.3