Add bblock documentation
v2 cover Add bblock documentation
Hello,
The main purpose of this series is to add some information for the user the use VALE and SPHINXLINT on a subset of the documentation.
---
Changes in v2:
- Fixed various typos reported by Ulrich Ölmann and Antonin Godard
- Split series: bblock documetnation was sent into a separate series
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Julien Stephan (2):
README: add instruction to run Vale on a subset
documentation: Makefile: add SPHINXLINTDOCS to specify subset to sphinx-lint
documentation/Makefile | 23 ++++++++++++----------- documentation/README | 18 +++++++++++++++++- 2 files changed, 29 insertions(+), 12 deletions(-)
---
base-commit: 9563855ccd92e21fb6f8320c96a3a83e115c947e
change-id: 20241031-add-bblock-documentation-4a5f8cf9c6d2
Best regards,
Signature · 1 line
Julien Stephan <[email protected]>
PATCH v2 1/2 README: add instruction to run Vale on a subset
make stylecheck runs Vale on the whole documentation which can be long and reports a lot of errors/warnings. We can run Vale on a subset using the VALEDOCS variable, so update documentation to highlight it.
--- documentation/README | 8 ++++++++ 1 file changed, 8 insertions(+)
documentation/README +8 -0
@@ -142,6 +142,14 @@ To run Vale: $ make stylecheck +Style checking the whole documentation might take some time and generate a +lot of warnings/errors, thus one can run Vale on a subset of files or +directories: + + $ make stylecheck VALEDOCS=<file> + $ make stylecheck VALEDOCS="<file1> <file2>" + $ make stylecheck VALEDOCS=<dir> + Link checking the Yocto Project documentation =============================================
Signature · 1 line
2.47.0
PATCH v2 2/2 documentation: Makefile: add SPHINXLINTDOCS to specify subset to sphinx-lint
In reply to Julien Stephanmake sphinx-lint runs sphinx-lint on the whole documentation which can be long and reports a lot or errors/warnings. Let's add a new SHPINXLINTDOCS variable to allow specifying a subset, just as VALEDOCS does. Keep variable assignment aligned and also use $(SOURCEDIR) by default for SPHINXLINTDOCS and VALEDOCS variables.
Also update the README file and fix a typo in Link checking section title.
--- documentation/Makefile | 23 ++++++++++++----------- documentation/README | 10 +++++++++- 2 files changed, 21 insertions(+), 12 deletions(-)
documentation/Makefile +12 -11
@@ -3,17 +3,18 @@ # You can set these variables from the command line, and also # from the environment for the first two. -SPHINXOPTS ?= -W --keep-going -j auto -SPHINXBUILD ?= sphinx-build +SPHINXOPTS ?= -W --keep-going -j auto +SPHINXBUILD ?= sphinx-build # Release notes are excluded because they contain contributor names and commit messages which can't be modified -VALEOPTS ?= --no-wrap --glob '!migration-guides/release-notes-*.rst' -VALEDOCS ?= . -SOURCEDIR = . -IMAGEDIRS = */svg -BUILDDIR = _build -DESTDIR = final -SVG2PNG = inkscape -SVG2PDF = inkscape +VALEOPTS ?= --no-wrap --glob '!migration-guides/release-notes-*.rst' +SOURCEDIR = . +VALEDOCS ?= $(SOURCEDIR) +SPHINXLINTDOCS ?= $(SOURCEDIR) +IMAGEDIRS = */svg +BUILDDIR = _build +DESTDIR = final +SVG2PNG = inkscape +SVG2PDF = inkscape ifeq ($(shell if which $(SPHINXBUILD) >/dev/null 2>&1; then echo 1; else echo 0; fi),0) $(error "The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed")
@@ -54,7 +55,7 @@ stylecheck: vale $(VALEOPTS) $(VALEDOCS) sphinx-lint: - sphinx-lint $(SOURCEDIR) + sphinx-lint $(SPHINXLINTDOCS) epub: $(PNGs) $(SOURCEDIR)/set_versions.py
documentation/README +9 -1
@@ -150,7 +150,7 @@ directories: $ make stylecheck VALEDOCS="<file1> <file2>" $ make stylecheck VALEDOCS=<dir> -Link checking the Yocto Project documentation +Lint checking the Yocto Project documentation ============================================= To fix errors which are not reported by Sphinx itself,
@@ -164,6 +164,14 @@ To run sphinx-lint: $ make sphinx-lint +Lint checking the whole documentation might take some time and generate a +lot of warnings/errors, thus one can run sphinx-lint on a subset of files +or directories: + + $ make sphinx-lint SPHINXLINTDOCS=<file> + $ make sphinx-lint SPHINXLINTDOCS="<file1> <file2>" + $ make sphinx-lint SPHINXLINTDOCS=<dir> + Sphinx theme and CSS customization ==================================
Signature · 1 line
2.47.0
Hi Julien,
Quoted 17 lines · Julien Stephan
Hello,
The main purpose of this series is to add some information for the user the use VALE and SPHINXLINT on a subset of the documentation.
Signed-off-by Julien Stephan <[email protected]>---
Changes in v2:
- Fixed various typos reported by Ulrich Ölmann and Antonin Godard
- Split series: bblock documetnation was sent into a separate series
- Link to v1: https://lore.kernel.org/r/[email protected]---
Julien Stephan (2):
README: add instruction to run Vale on a subset
documentation:Makefile: add SPHINXLINTDOCS to specify subset to sphinx-lint
Quoted 8 lines
documentation/Makefile | 23 ++++++++++++----------- documentation/README | 18 +++++++++++++++++- 2 files changed, 29 insertions(+), 12 deletions(-)---
base-commit:9563855ccd92e21fb6f8320c96a3a83e115c947e
change-id: 20241031-add-bblock-documentation-4a5f8cf9c6d2Best regards,
Looks good, thanks, this will be useful!
For the series:
Cheers,
Antonin
Signature · 3 lines
Antonin Godard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Hi Antonin,
Quoted 27 lines · Antonin Godard via lists.yoctoproject.org
Hi Julien,
Quoted 24 lines · Julien Stephan
Hello,
The main purpose of this series is to add some information for the user the use VALE and SPHINXLINT on a subset of the documentation.
Signed-off-by Julien Stephan <[email protected]>---
Changes in v2:
- Fixed various typos reported by Ulrich Ölmann and Antonin Godard
- Split series: bblock documetnation was sent into a separate series
- Link to v1: https://lore.kernel.org/r/[email protected]---
Julien Stephan (2):
README: add instruction to run Vale on a subset
documentation:Makefile: add SPHINXLINTDOCS to specify subset to sphinx-lintdocumentation/Makefile | 23 ++++++++++++----------- documentation/README | 18 +++++++++++++++++- 2 files changed, 29 insertions(+), 12 deletions(-)---
base-commit:9563855ccd92e21fb6f8320c96a3a83e115c947e
change-id: 20241031-add-bblock-documentation-4a5f8cf9c6d2
Quoted 9 lines
Quoted 1 line
Best regards,
Looks good, thanks, this will be useful!
For the series:
Reviewed-by Antonin Godard <[email protected]>Tested-by Antonin Godard <[email protected]>
There's a v3 already BTW, so maybe take/review that one instead?
Cheers,
Quentin
Hi Quentin
On Tue Nov 5, 2024 at 2:14 PM CET, Quentin Schulz wrote:
[...]
Quoted 5 lines
There's a v3 already BTW, so maybe take/review that one instead?
Cheers,
Quentin
The original series was split in two, and only the other half was sent as a v3 I believe. Thanks for your vigilance! :)
Cheers,
Antonin
Signature · 3 lines
Antonin Godard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 5 lines · Antonin Godard
Hi Quentin
On Tue Nov 5, 2024 at 2:14 PM CET, Quentin Schulz wrote:
[...]Quoted 1 line
Quoted 8 lines
Quoted 4 lines
There's a v3 already BTW, so maybe take/review that one instead?
Cheers,
QuentinThe original series was split in two, and only the other half was sent as a v3 I believe. Thanks for your vigilance! :)
Oof, two different series with the same title for the cover letter? I wouldn't even have read the v2 at all not knowing it was a different series of patches!
Cheers,
Quentin
Hi Quentin and Antonin,
Oops sorry I splitted the series in two, but I forgot to update the cover letter title of one of them :/
Cheers
Julien
Quoted 22 lines · Quentin Schulz
Quoted 5 lines · Antonin Godard
Hi Quentin
On Tue Nov 5, 2024 at 2:14 PM CET, Quentin Schulz wrote:
[...]Quoted 1 line
Quoted 8 lines
Quoted 4 lines
There's a v3 already BTW, so maybe take/review that one instead?
Cheers,
QuentinThe original series was split in two, and only the other half was sent as a v3 I believe. Thanks for your vigilance! :)
Oof, two different series with the same title for the cover letter? I wouldn't even have read the v2 at all not knowing it was a different series of patches!
Cheers,
Quentin