diff --git a/.github/workflows/validate-and-process.yml b/.github/workflows/validate-and-process.yml index 2261606..725e5bb 100644 --- a/.github/workflows/validate-and-process.yml +++ b/.github/workflows/validate-and-process.yml @@ -151,7 +151,7 @@ jobs: cat << EOF > config.js window.bblocksRegisters = ['${{ format('https://{0}.github.io/{1}/{2}', github.repository_owner, github.event.repository.name, inputs.register_file) }}']; window.bblocksViewer = { - title: $(jq '.name // "${{ github.event.repository.name }}" ' < "${{ inputs.register_file }}"), + title: $(jq '.name // "${{ github.event.repository.name }}"' < "${{ inputs.register_file }}"), }; EOF - name: Setup Pages diff --git a/ogc/bblocks/postprocess.py b/ogc/bblocks/postprocess.py index af6b6c7..c058824 100644 --- a/ogc/bblocks/postprocess.py +++ b/ogc/bblocks/postprocess.py @@ -289,8 +289,8 @@ def do_postprocess(bblock: BuildingBlock, light: bool = False) -> bool: full_validation_report_url = None if not steps or 'tests' in steps: print(f"Writing full validation report to {test_outputs_path / 'report.html'}", file=sys.stderr) - if test_outputs_base_url: - full_validation_report_url = test_outputs_base_url + 'report.html' + if base_url: + full_validation_report_url = f"{base_url}{os.path.relpath(Path(test_outputs_path).resolve(), cwd)}/report.html" report_to_html(json_reports=validation_reports, report_fn=test_outputs_path / 'report.html') if output_file and (not steps or 'register' in steps):