Skip to contentSkip to conversation

Add bblock documentation

PATCH Superseded Julien Stephan 3 participants 8 messages Nov 4, 2024 – Nov 5, 2024

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

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]>
#1 lore raw

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
index c888b666a8632a1d6f576c68e4f9ca966d79f134..8ac8d5236793774586abddfd89cf1b3daa680edc 100644
@@ -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
#2 lore raw

PATCH v2 2/2 documentation: Makefile: add SPHINXLINTDOCS to specify subset to sphinx-lint

In reply to Julien Stephan

make 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
index 189bd1dfac69d3b3185aa3a2ff7c212084ae280b..0bd9db5eaeb9122f9f396cda61631c403a1325a0 100644
@@ -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
index 8ac8d5236793774586abddfd89cf1b3daa680edc..8a47fd4a3fd07d41d61a7d681d82bd13ac74527d 100644
@@ -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
Reviewed-by Tested-by on the v2 series
#3 lore raw
In reply to Julien Stephan

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.

---
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-4a5f8cf9c6d2

Best 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
#4 lore raw

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.

---
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

Quoted 9 lines
Quoted 1 line

Best regards,

Looks good, thanks, this will be useful!

For the series:

There's a v3 already BTW, so maybe take/review that one instead?

Cheers,
Quentin

#5 lore raw

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
#6 lore raw
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,
Quentin

The 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

#7 lore raw

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,
Quentin

The 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