-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from crichez/repo/antsibull-docs-init
Build and lint the docsite on new pull-requests
- Loading branch information
Showing
3 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: build-docs | ||
on: | ||
workflow_dispatch: | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-docs: | ||
permissions: | ||
contents: read | ||
uses: ansible-community/github-docs-build/.github/workflows/_shared-docs-build-pr.yml@main | ||
with: | ||
init-lenient: false | ||
init-fail-on-error: true | ||
|
||
lint-docs: | ||
name: Lint Docs | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Install antsibull-docs | ||
run: pip install antsibull-docs | ||
- name: Lint Docs | ||
run: | | ||
antsibull-docs lint-collection-docs \ | ||
--plugin-docs \ | ||
--validate-collection-refs=all \ | ||
--disallow-unknown-collection-refs . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.vscode | ||
.vscode | ||
changelogs/.plugin-cache.yaml |
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