Skip to content

Commit

Permalink
[DOCS] Factorize configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
1technophile committed Jan 8, 2024
1 parent 6713a4e commit 5583aa3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 45 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
python -m pip install --upgrade pip
pip install requests
npm install
- name: Download Common Config
run: |
curl -o docs/.vuepress/public/commonConfig.js https://www.theengs.io/commonConfig.js
- name: Build documentation
run: |
npm run docs:build
Expand Down
50 changes: 5 additions & 45 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,42 +1,10 @@
const commonConfig = require('./public/commonConfig');

module.exports = {
markdown: {
lineNumbers: true
},
title: 'Theengs app',
description: 'Multi platform BLE Application leveraging Theengs Decoder',
head: [
['link', { rel: "apple-touch-icon", sizes: "180x180", href: ".apple-touch-icon.png"}],
['link', { rel: "icon", type: "image/png", sizes: "32x32", href: "/favicon-32x32.png"}],
['link', { rel: "icon", type: "image/png", sizes: "16x16", href: "/favicon-16x16.png"}],
['link', { rel: 'manifest', href: '/manifest.json' }],
['meta', { name: 'theme-color', content: '#3eaf7c' }],
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }],
['link', { rel: 'mask-icon', href: '/icons/safari-pinned-tab.svg', color: '#3eaf7c' }],
['meta', { name: 'msapplication-TileImage', content: '/favicon-144x144.png' }],
['meta', { name: 'msapplication-TileColor', content: '#000000' }]
],
...commonConfig,
themeConfig: {
smoothScroll: true,
repo: 'theengs/app',
docsDir: 'docs',
docsBranch: 'development',
lastUpdated: 'Last Updated',
editLinks: false,
nav: [
{ text: 'Shop', link: 'https://shop.theengs.io/'},
{ text: 'Home', link: 'https://www.theengs.io', target:'_self', rel:''},
{ text: 'Use cases',
items: [
{ text: 'Smart Home', link: 'https://www.theengs.io/usecases/smarthome.html', target:'_self', rel:''},
{ text: 'Research', link: 'https://www.theengs.io/usecases/research.html', target:'_self', rel:''}
]},
{ text: 'Compatible', link: 'https://decoder.theengs.io/devices/devices.html', target:'_self', rel:''},
{ text: 'App', link: 'https://app.theengs.io', target:'_self', rel:''},
{ text: 'Gateway', link: 'https://gateway.theengs.io', target:'_self', rel:''},
{ text: 'Decoder', link: 'https://decoder.theengs.io', target:'_self', rel:''},
{ text: 'Web Parser', link: 'https://parser.theengs.io', target:'_self', rel:''}
],
...commonConfig.themeConfig,
sidebar: [
['/','0 - What is it for 🏠'],
{
Expand All @@ -63,13 +31,5 @@ module.exports = {
]
}
]
},
plugins: [
['@vuepress/pwa', {
serviceWorker: true,
updatePopup: true
}],
['@vuepress/medium-zoom', true],
['@vuepress/nprogress']
]
}
}

0 comments on commit 5583aa3

Please sign in to comment.