From 0f47bfac4471cb6153baec455ed077359277b7ba Mon Sep 17 00:00:00 2001 From: Rene Pot Date: Thu, 5 Oct 2023 12:31:04 +0200 Subject: [PATCH 1/4] docs: fix link --- docs/config/d2-config-js-reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config/d2-config-js-reference.md b/docs/config/d2-config-js-reference.md index 4b7fbabb..03a76157 100644 --- a/docs/config/d2-config-js-reference.md +++ b/docs/config/d2-config-js-reference.md @@ -28,7 +28,7 @@ The following configuration properties are supported: | **maxDHIS2Version** | _string_ | | The maximum DHIS2 version the App supports. | | **coreApp** | _boolean_ | **false** | **ADVANCED** If true, build an app artifact to be included as a root-level core application | | **standalone** | _boolean_ | **false** | **ADVANCED** If true, do NOT include a static BaseURL in the production app artifact. This includes the `Server` field in the login dialog, which is usually hidden and pre-configured in production. | -| **pwa** | _object_ | | **ADVANCED** Opts into and configures PWA settings for this app. Read more about the options in [the PWA docs](pwa/pwa). | +| **pwa** | _object_ | | **ADVANCED** Opts into and configures PWA settings for this app. Read more about the options in [the PWA docs](../pwa/pwa). | > _Note_: Dynamic defaults above may reference `pkg` (a property of the local `package.json` file) or `config` (another property within `d2.config.js`). From 1aa10fb9c5220ebbc5f25dae4d8b818145a7b8ef Mon Sep 17 00:00:00 2001 From: Rene Pot Date: Thu, 5 Oct 2023 12:51:17 +0200 Subject: [PATCH 2/4] docs: fix link --- docs/config/d2-config-js-reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config/d2-config-js-reference.md b/docs/config/d2-config-js-reference.md index 03a76157..23567b00 100644 --- a/docs/config/d2-config-js-reference.md +++ b/docs/config/d2-config-js-reference.md @@ -28,7 +28,7 @@ The following configuration properties are supported: | **maxDHIS2Version** | _string_ | | The maximum DHIS2 version the App supports. | | **coreApp** | _boolean_ | **false** | **ADVANCED** If true, build an app artifact to be included as a root-level core application | | **standalone** | _boolean_ | **false** | **ADVANCED** If true, do NOT include a static BaseURL in the production app artifact. This includes the `Server` field in the login dialog, which is usually hidden and pre-configured in production. | -| **pwa** | _object_ | | **ADVANCED** Opts into and configures PWA settings for this app. Read more about the options in [the PWA docs](../pwa/pwa). | +| **pwa** | _object_ | | **ADVANCED** Opts into and configures PWA settings for this app. Read more about the options in [the PWA docs](../pwa). | > _Note_: Dynamic defaults above may reference `pkg` (a property of the local `package.json` file) or `config` (another property within `d2.config.js`). From 805c5a56e907e4c9fad10afc75194cb6f4ea49cf Mon Sep 17 00:00:00 2001 From: Rene Pot Date: Thu, 2 Nov 2023 11:29:22 +0100 Subject: [PATCH 3/4] chore: add redirect page to docs build --- docs/index.html | 18 ++++++++++++++++++ package.json | 3 +-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 docs/index.html diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 00000000..d620cb24 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,18 @@ + + + + + Redirecting to Developer Portal + + +

Redirecting to Developer Portal...

+ + + + diff --git a/package.json b/package.json index 47dc55b4..676f18f7 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,7 @@ "pwa-demo": "yarn build:pwa && yarn build:adapter && yarn workspace pwa-app demo", "start:example": "yarn workspace simple-app start --force", "start": "yarn build:adapter && yarn start:example", - "docs:serve": "d2-utils-docsite serve ./docs -o ./dist", - "docs:build": "d2-utils-docsite build ./docs -o ./dist", + "docs:build": "mkdir -p dist && cp docs/index.html dist/", "test:adapter": "yarn workspace @dhis2/app-adapter test", "test:cli": "yarn workspace @dhis2/cli-app-scripts test", "test": "yarn test:adapter && yarn test:cli" From bf93fb3c60478cdd6dd52623135cdbef458c9fc1 Mon Sep 17 00:00:00 2001 From: Rene Pot Date: Thu, 2 Nov 2023 17:15:56 +0100 Subject: [PATCH 4/4] docs: change query selector --- docs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index d620cb24..e205f473 100644 --- a/docs/index.html +++ b/docs/index.html @@ -11,7 +11,7 @@ const hash = window.location.hash.substring(2) const newUrl = `https://developers.dhis2.org/docs/app-platform/${hash}` - document.querySelector('p a').href = newUrl + document.getElementById('url').href = newUrl window.location.href = newUrl