Skip to content

Commit fe21a52

Browse files
committed
properly validate docs during PRs by enabling mkdocs strict mode and updating some plugin
On-behalf-of: @SAP [email protected]
1 parent c88a2b8 commit fe21a52

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.github/workflows/docs-gen-and-push.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Generate and push docs
1+
name: Documentation
22

33
on:
44
# So we can trigger manually if needed
@@ -24,7 +24,7 @@ concurrency:
2424

2525
jobs:
2626
generate-and-push:
27-
name: Generate and push docs
27+
name: Generate and push
2828
runs-on: ubuntu-latest
2929
steps:
3030
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
@@ -42,4 +42,10 @@ jobs:
4242
python-version: '3.10'
4343
cache: 'pip'
4444

45+
# mike does not support giving CLI flags for mkdocs, but we also do not
46+
# want to permanently enable strict mode, so here we enable it just for this
47+
# task
48+
- run: |
49+
echo "strict: true" >> docs/mkdocs.yml
50+
4551
- run: make generate-api-docs deploy-docs

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
mike==2.1.3
22
mkdocs==1.5.3
33
mkdocs-awesome-pages-plugin==2.9.2
4-
mkdocs-macros-plugin==1.0.5
4+
mkdocs-macros-plugin==1.3.7
55
mkdocs-material==9.5.17
66
mkdocs-material-extensions==1.3.1
77
mkdocs-static-i18n==1.2.2

docs/scripts/deploy-docs.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
set -o errexit
18-
set -o nounset
19-
set -o pipefail
20-
set -o xtrace
17+
set -euo pipefail
2118

2219
REPO_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)
2320
cd "$REPO_ROOT/docs"

0 commit comments

Comments
 (0)