Skip to content

Commit eb1dcab

Browse files
authored
docs: Fix rst-style urls in the documentation (#1640)
* docs: Fix rst-style urls in the documentation * feat: Skip test CI if the pull requests is documentation only
1 parent 2f9010a commit eb1dcab

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
python-version: '3.14'
3232
rf-version: '7.*'
3333
runs-on: ${{ matrix.os }}
34+
# Skip for documentation-only builds
35+
if: >
36+
github.event_name != 'pull_request' ||
37+
!contains(github.event.pull_request.labels.*.name, 'docs-only')
3438
3539
steps:
3640
- name: Checkout

src/robocop/linter/rules/comments.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,7 @@ class IgnoredDataRule(Rule):
190190
"""
191191
Ignored data found in the file.
192192
193-
All lines before the first test data section
194-
(`ref <https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#test-data-sections>`_)
193+
All lines before the first test data section ([ref](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#test-data-sections))
195194
are ignored. It's recommended to add a `` *** Comments *** `` section header for lines that should be ignored.
196195
197196
Missing section header:

src/robocop/linter/rules/tags.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ class TagWithOrAndRule(Rule):
5252
robocop check --include tagANDtag2
5353
5454
Robot Framework will only execute tests that contain ``tag`` and ``tag2``. That's why it's best to avoid ``AND``
55-
and ``OR`` in tag names. See
56-
`docs <https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#tag-patterns>`_
55+
and ``OR`` in tag names. See [docs](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#tag-patterns)
5756
for more information.
5857
5958
Tag matching is case-insensitive. If your tag contains ``OR`` or ``AND`` you can use lowercase to match it.
@@ -76,9 +75,9 @@ class TagWithReservedWordRule(Rule):
7675
"""
7776
Tag is prefixed with reserved work ``robot:``.
7877
79-
``robot:`` prefix is used by Robot Framework special tags. More details
80-
`here <https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#reserved-tags>`_.
81-
Special tags currently in use:
78+
``robot:`` prefix is used by Robot Framework special tags. More details in
79+
[RF User Guide](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#reserved-tags).
80+
Special tags that are currently in use:
8281
8382
- robot:exit
8483
- robot:flatten

src/robocop/linter/rules/variables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,9 @@ class OverwritingReservedVariableRule(Rule):
478478
Variable overwrites reserved variable.
479479
480480
Overwriting reserved variables may bring unexpected results.
481-
For example, overwriting variable with name ``${LOG_LEVEL}`` can break Robot Framework logging.
481+
For example, overwriting a variable with the name ``${LOG_LEVEL}`` can break Robot Framework logging.
482482
See the full list of reserved variables at
483-
`Robot Framework User Guide <https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#automatic-variables>`_
483+
[Robot Framework User Guide](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#automatic-variables).
484484
485485
"""
486486

0 commit comments

Comments
 (0)