diff --git a/.env.example b/.env.example index c866074f..fa4cd098 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,7 @@ # URL to main fix landing page (if empty, it will get the url is currently on) VITE_FIX_LANDING_PAGE_URL=https://example.org +# URL to fix document (if empty, it will get the url is currently on) +VITE_FIX_DOCS_URL=https://example.org # API URL server to use (if empty, it will get the url is currently on) VITE_SERVER=https://example.org # WS URL server for events (if empty, it will get the url is currently on) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 12f2c91c..e97f624f 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -20,6 +20,7 @@ jobs: - name: Create env file run: | echo "VITE_FIX_LANDING_PAGE_URL=${{ vars.FIX_LANDING_PAGE_URL }}" > .env.production + echo "VITE_FIX_DOCS_URL=${{ vars.VITE_FIX_DOCS_URL }}" > .env.production echo "VITE_VIDEOS_ASSETS_URL=${{ vars.VIDEOS_ASSETS_URL }}" >> .env.production echo "VITE_IMAGES_ASSETS_URL=${{ vars.IMAGES_ASSETS_URL }}" >> .env.production echo "VITE_USE_PROXY=false" >> .env.production diff --git a/.github/workflows/publish-pr.yml b/.github/workflows/publish-pr.yml index 575b3668..ce75bc07 100644 --- a/.github/workflows/publish-pr.yml +++ b/.github/workflows/publish-pr.yml @@ -20,6 +20,7 @@ jobs: - name: Create env file run: | echo "VITE_FIX_LANDING_PAGE_URL=${{ vars.FIX_LANDING_PAGE_URL }}" > .env.production + echo "VITE_FIX_DOCS_URL=${{ vars.VITE_FIX_DOCS_URL }}" > .env.production echo "VITE_VIDEOS_ASSETS_URL=${{ vars.VIDEOS_ASSETS_URL }}" >> .env.production echo "VITE_IMAGES_ASSETS_URL=${{ vars.IMAGES_ASSETS_URL }}" >> .env.production echo "VITE_USE_PROXY=false" >> .env.production diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 41a4a48d..ec369011 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,6 +15,7 @@ jobs: - name: Create env file run: | echo "VITE_FIX_LANDING_PAGE_URL=${{ vars.FIX_LANDING_PAGE_URL }}" > .env.production + echo "VITE_FIX_DOCS_URL=${{ vars.VITE_FIX_DOCS_URL }}" > .env.production echo "VITE_VIDEOS_ASSETS_URL=${{ vars.VIDEOS_ASSETS_URL }}" >> .env.production echo "VITE_IMAGES_ASSETS_URL=${{ vars.IMAGES_ASSETS_URL }}" >> .env.production echo "VITE_USE_PROXY=false" >> .env.production diff --git a/README.md b/README.md index d7efdd3c..d46eb257 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ This project requires [NodeJS](https://nodejs.org) version 18 (>= v18.17.1) and | Variable | Type | Description | Default value | | ----------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- | | `VITE_FIX_LANDING_PAGE_URL` | `string` | URL of main landing page | `location.origin` | +| `VITE_FIX_DOCS_URL` | `string` | URL of fix document | `location.origin` | | `VITE_SERVER` | `string` | Server address for API calls (ignored in test environments or when `VITE_USE_PROXY=true`) | `location.origin` | | `VITE_WS_SERVER` | `string` | WS server address for events (ignored in test environments or when `VITE_USE_PROXY=true`) | `location.origin.replace('http', 'ws')` | | `VITE_VIDEOS_ASSETS_URL` | `string` | URL to CDN containing videos assets | `location.origin` | diff --git a/index.html b/index.html index 3232c9ab..7571cc85 100644 --- a/index.html +++ b/index.html @@ -1,33 +1,69 @@ - + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - +