From 35a3db1adfb2c59c46bce81fe57971c74eaf2056 Mon Sep 17 00:00:00 2001 From: Timo Bakx Date: Sat, 7 Dec 2024 16:49:57 +0100 Subject: [PATCH] Added replacement suggestions for forbidden directives Also bumped DOCtor RST workflow to 1.64.0 to allow this --- .doctor-rst.yaml | 3 ++- .github/workflows/ci.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.doctor-rst.yaml b/.doctor-rst.yaml index f78b5c21ec9..f151f91e018 100644 --- a/.doctor-rst.yaml +++ b/.doctor-rst.yaml @@ -23,7 +23,8 @@ rules: forbidden_directives: directives: - '.. index::' - - '.. caution::' + - directive: '.. caution::' + replacements: ['.. warning::', '.. danger::'] indention: ~ lowercase_as_in_use_statements: ~ max_blank_lines: diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4d67a5c084c..d072158138a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -73,7 +73,7 @@ jobs: key: ${{ runner.os }}-doctor-rst-${{ steps.extract_base_branch.outputs.branch }} - name: "Run DOCtor-RST" - uses: docker://oskarstark/doctor-rst:1.63.0 + uses: docker://oskarstark/doctor-rst:1.64.0 with: args: --short --error-format=github --cache-file=/github/workspace/.cache/doctor-rst.cache