Endpoint reload cleanly to prevent duplicate registration #2376
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check docs | |
on: [pull_request] | |
jobs: | |
build-technical-documentation: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out code" | |
uses: "actions/checkout@v4" | |
- name: "Build technical documentation" | |
run: > | |
docker run | |
--volume "${PWD}/docs/sources:/hugo/content/docs/alloy/latest" | |
--env HUGO_REFLINKSERRORLEVEL=ERROR | |
--rm grafana/docs-base:latest | |
/bin/bash -c 'echo -e "---\\nredirectURL: /docs/alloy/latest/\\ntype: redirect\\nversioned: true\\n---\\n" > /hugo/content/docs/alloy/_index.md && make hugo' |