-
-
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 #31 from plone/vale-enhance
Upgrade and pin Vale to v3
- Loading branch information
Showing
16 changed files
with
104 additions
and
37 deletions.
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,49 @@ | ||
name: Build documentation, check links, spelling, grammar, and style | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'docs/**' | ||
# Build pull requests | ||
pull_request: | ||
paths: | ||
- 'docs/**' | ||
- 'styles/**' | ||
- '.github/workflows/rtd-pr-preview.yml' | ||
- '.github/workflows/test.yml' | ||
- '.readthedocs.yaml' | ||
- '.vale.ini' | ||
- 'requirements-docs.txt' | ||
|
||
jobs: | ||
docs: | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.12'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
cache-dependency-path: 'requirements-docs.txt' | ||
|
||
- name: Create Python virtual environment | ||
run: pip install virtualenv | ||
|
||
- name: pip install requirements | ||
run: pip install -r requirements-docs.txt | ||
|
||
- name: Check for broken links | ||
run: make linkcheckbroken | ||
|
||
- name: Build HTML documentation | ||
run: make html | ||
|
||
- name: Run vale | ||
run: make vale VALEOPTS="--minAlertLevel='warning'" |
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
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
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
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
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
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
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
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,3 @@ | ||
Upgrade and pin Vale to v3. @stevepiercy | ||
- Follow some of Vale's suggestions and fix errors and warnings. @stevepiercy | ||
- Add GitHub Workflow to build docs and run checks on links, spelling, grammar, and style. @stevepiercy |
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
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,18 +1,18 @@ | ||
# requirements-docs.txt | ||
graphviz | ||
linkify-it-py | ||
myst-parser | ||
plone-sphinx-theme | ||
sphinx-autobuild | ||
sphinx-copybutton | ||
sphinx-design | ||
sphinx-examples | ||
sphinx-notfound-page | ||
sphinx-reredirects | ||
sphinx-sitemap | ||
sphinxcontrib.httpdomain | ||
sphinxcontrib.httpexample | ||
# sphinxcontrib-mermaid # See https://github.com/mgaitan/sphinxcontrib-mermaid/issues/137 | ||
sphinxcontrib-video | ||
sphinxext-opengraph | ||
vale==2.30.0 | ||
graphviz==0.20.3 | ||
linkify-it-py==2.0.3 | ||
myst-parser==3.0.1 | ||
Sphinx==7.4.7 | ||
sphinx-autobuild==2024.4.16 | ||
sphinx-copybutton==0.5.2 | ||
sphinx-examples==0.0.5 | ||
sphinx-notfound-page==1.0.0 | ||
sphinx-reredirects==0.1.3 | ||
sphinx-sitemap==2.6.0 | ||
sphinx_design==0.5.0 | ||
sphinxcontrib-httpdomain==1.8.1 | ||
sphinxcontrib-httpexample==1.1 | ||
# sphinxcontrib-mermaid==0.9.2 # See https://github.com/mgaitan/sphinxcontrib-mermaid/issues/137 | ||
sphinxcontrib-video==0.2.0 | ||
sphinxext-opengraph==0.9.1 | ||
vale==3.7.1 |
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,5 +1,5 @@ | ||
# requirements-initial.txt | ||
# From https://dist.plone.org/release/6-latest/constraints.txt | ||
pip==24.0 | ||
setuptools==69.5.1 | ||
wheel==0.43.0 | ||
pip==24.2 | ||
setuptools==74.0.0 | ||
wheel==0.44.0 |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.