Skip to content

Commit

Permalink
Update Dependencies; Make Vendor in Device-Page clickable (Koenkk#1705)
Browse files Browse the repository at this point in the history
* Update Dependencies; Make Vendor in Device-Page clickable

* Readd max-old-space param

Co-authored-by: Koen Kanters <[email protected]>
  • Loading branch information
psi-4ward and Koenkk authored Nov 20, 2022
1 parent 6f1486e commit 754f87e
Show file tree
Hide file tree
Showing 15 changed files with 5,110 additions and 4,133 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Node.js ⚗
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '18'

- name: Determine node version №
id: node-version
Expand Down
2 changes: 1 addition & 1 deletion docgen/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as path from "path";
import { getBase, domain } from "../vuepress.config";
import { getBase, domain } from "../getBase";

export const devicesBaseDir = path.resolve(__dirname, '..', 'docs', 'devices');
export const imageBaseDir = path.resolve(__dirname, '..', 'public', 'images', 'devices');
Expand Down
2 changes: 1 addition & 1 deletion docgen/generate_device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pageClass: device-page
| | |
|-----|-----|
| Model | ${ device.model } |
| Vendor | ${ device.vendor } |
| Vendor | [${ device.vendor }](/supported-devices/#v=${ encodeURIComponent(device.vendor) }) |
| Description | ${ device.description } |
| Exposes | ${ exposesDescription } |
| Picture | ![${ device.vendor } ${ device.model }](${ image }) |
Expand Down
2 changes: 1 addition & 1 deletion docgen/tests/check-links.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { promises as fsp } from "fs";
import { getBase } from "../../vuepress.config";
import { getBase } from "../../getBase";
import { distDir, findFiles } from "./utils";
import * as path from "path";

Expand Down
14 changes: 14 additions & 0 deletions docs/.vuepress/client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineClientConfig } from '@vuepress/client'

export default defineClientConfig({
async enhance({ app, router, siteData }) {
// @ts-ignore
if (!__VUEPRESS_SSR__) {
const Quasar = await import('quasar/src/install-quasar.js');
app.use(Quasar.default);
}
},
setup() {
},
rootComponents: [],
});
12 changes: 0 additions & 12 deletions docs/.vuepress/clientAppEnhance.ts

This file was deleted.

9 changes: 0 additions & 9 deletions docs/.vuepress/defaultPageClassPlugin.ts

This file was deleted.

10 changes: 10 additions & 0 deletions docs/.vuepress/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,16 @@ footer a {
transform: translate3d(0, 0.2em, 0);
}

.page-nav .next a:after, .page-nav .prev a:before {
content: ' ';
}
.page-nav .next:after {
content: '';
}
.page-nav .prev:before {
content: '';
}

summary {
color: var(--c-text-accent);
cursor: pointer;
Expand Down
8 changes: 8 additions & 0 deletions getBase.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export const domain = 'https://www.zigbee2mqtt.io';
export const isDevelop = !!process.env.DEVELOP_BRANCH;

export function getBase() {
let base = '/';
if (isDevelop) base += 'develop/';
return base as '/' | `/${string}/`;
}
Loading

0 comments on commit 754f87e

Please sign in to comment.