diff --git a/web/README.md b/web/README.md index a06633912..c729fb1fc 100644 --- a/web/README.md +++ b/web/README.md @@ -31,5 +31,14 @@ yarn build yarn lint ``` +### Basic Header Theeming + +Not happy with the default Docat logo and header? +Just add your custom html header to the `/var/www/html/config.json` file. + +``` +{"headerHTML": "

MyCompany

"} +``` + ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). diff --git a/web/package.json b/web/package.json index 20d92611a..73614116c 100644 --- a/web/package.json +++ b/web/package.json @@ -41,7 +41,9 @@ "plugin:vue/essential", "eslint:recommended" ], - "rules": {}, + "rules": { + "no-console": "off" + }, "parserOptions": { "parser": "babel-eslint" }, diff --git a/web/src/components/Layout.vue b/web/src/components/Layout.vue index 4b93898bc..007085ef6 100644 --- a/web/src/components/Layout.vue +++ b/web/src/components/Layout.vue @@ -5,8 +5,7 @@
- -

DOCAT

+
@@ -29,10 +28,24 @@ diff --git a/web/src/repositories/ProjectRepository.js b/web/src/repositories/ProjectRepository.js index b8193a5f6..78a57e5d4 100644 --- a/web/src/repositories/ProjectRepository.js +++ b/web/src/repositories/ProjectRepository.js @@ -3,6 +3,18 @@ import Repository from '@/repositories/Repository' const resource = 'doc' export default { + /** + * Get Config + */ + async getConfig() { + try { + const result = await Repository.get(`${Repository.defaults.baseURL}/config.json`) + return result.data; + } catch { + return {} + } + }, + /** * Returns all projects */