diff --git a/.github/workflows/reusable-build-deploy-api-editor-docs.yml b/.github/workflows/reusable-build-deploy-api-editor-docs.yml index 19fd5e5a..1b3079ef 100644 --- a/.github/workflows/reusable-build-deploy-api-editor-docs.yml +++ b/.github/workflows/reusable-build-deploy-api-editor-docs.yml @@ -42,6 +42,7 @@ jobs: uses: ./.github/workflows/reusable-build-editor-application.yml with: artifact-name: editor + documentation-url: https://${{ inputs.build-name }}.facturxdotnet.org/docs api-url: https://${{ inputs.build-name }}.facturxdotnet.org/api version: ${{ needs.compute-version.outputs.version }} diff --git a/.github/workflows/reusable-build-editor-application.yml b/.github/workflows/reusable-build-editor-application.yml index 31c7f52e..b9574c4c 100644 --- a/.github/workflows/reusable-build-editor-application.yml +++ b/.github/workflows/reusable-build-editor-application.yml @@ -13,6 +13,11 @@ on: type: string required: true + documentation-url: + description: The URL at which the FacturX.NET Documentation will be served + type: string + required: true + version: description: The version of the application type: string @@ -50,6 +55,7 @@ jobs: echo " version: '${{ inputs.version }}'," >> src/environments/environment.ts echo " buildDate: new Date('$(date +'%Y-%m-%d')')," >> src/environments/environment.ts echo " apiUrl: '${{ inputs.api-url }}'," >> src/environments/environment.ts + echo " documentationUrl: '${{ inputs.documentation-url }}'," >> src/environments/environment.ts echo "};" >> src/environments/environment.ts echo "Environment is" cat src/environments/environment.ts diff --git a/src/FacturXDotNet.WebEditor/src/app/features/editor/components/editor-menu/editor-about-menu.component.ts b/src/FacturXDotNet.WebEditor/src/app/features/editor/components/editor-menu/editor-about-menu.component.ts index 556ec683..528ca73e 100644 --- a/src/FacturXDotNet.WebEditor/src/app/features/editor/components/editor-menu/editor-about-menu.component.ts +++ b/src/FacturXDotNet.WebEditor/src/app/features/editor/components/editor-menu/editor-about-menu.component.ts @@ -1,6 +1,7 @@ import { Component, input } from '@angular/core'; import { RouterLink } from '@angular/router'; import { NgbDropdown, NgbDropdownItem, NgbDropdownMenu, NgbDropdownToggle } from '@ng-bootstrap/ng-bootstrap'; +import { environment } from '../../../../../environments/environment'; @Component({ selector: 'app-editor-about-menu', @@ -9,6 +10,9 @@ import { NgbDropdown, NgbDropdownItem, NgbDropdownMenu, NgbDropdownToggle } from