Skip to contentSkip to conversation

documentation: add documentation of the variable SPDX_NAMESPACE_PREFIX

PATCH In review [email protected] 2 participants 3 messages Feb 14, 2024 – Feb 23, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 documentation: add documentation of the variable SPDX_NAMESPACE_PREFIX

From: BELOUARGA Mohamed <[email protected]>

The documentation of the variable SPDX_NAMESPACE_PREFIX does not exist. This variable is used to change the prefix of some links in SPDX docs.

[ YOCTO #15398 ]

---
 documentation/ref-manual/variables.rst | 5 +++++
 1 file changed, 5 insertions(+)
documentation/ref-manual/variables.rst +5 -0
index 6f7d6ff01e..907575ba82 100644
@@ -7913,6 +7913,11 @@ system and gives an overview of their function and contents.
       image), compared to just using the :ref:`ref-classes-create-spdx` class
       with no option.
 
+   :term:`SPDX_NAMESPACE_PREFIX`
+      This option could be used in order to change the prefix of ``spdxDocument``
+      and the prefix of ``documentNamespace``. It is set by default to: 
+      ``https://spdx.org/spdxdocs`` .
+
    :term:`SPDX_PRETTY`
       This option makes the SPDX output more human-readable, using
       identation and newlines, instead of the default output in a
Signature · 1 line
2.25.1
#1 lore raw

Hi Mohamed,

Quoted 17 lines · On 2/14/24 at 22:52, [email protected] wrote:

From: BELOUARGA Mohamed <[email protected]>

The documentation of the variable SPDX_NAMESPACE_PREFIX does not exist. This variable is used to change the prefix of some links in SPDX docs.

[ YOCTO #15398 ]

---
  documentation/ref-manual/variables.rst | 5 +++++
  1 file changed, 5 insertions(+)
documentation/ref-manual/variables.rst +0 -0
index 6f7d6ff01e..907575ba82 100644

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 7920

Quoted 8 lines
documentation/ref-manual/variables.rst +5 -0
@@ -7913,6 +7913,11 @@ system and gives an overview of their function and contents.
        image), compared to just using the :ref:`ref-classes-create-spdx` class
        with no option.
 
+   :term:`SPDX_NAMESPACE_PREFIX`
+      This option could be used in order to change the prefix of ``spdxDocument``
+      and the prefix of ``documentNamespace``. It is set by default to:
+      ``https://spdx.org/spdxdocs`` .
+

This looks good to me, thanks!
However, I have to wait for your first patch to be merged to merge this one, otherwise the default value is incorrect. Don't hesitate to ping me if necessary.

As a separate patch, you may also mention this variable in the description of the "create-spdx" class (ref-manual/classes.rst). Otherwise, people may overlook this variable, if it's not referred to from any other place.

Thanks again
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

Hi Mohamed,

Quoted 35 lines · Michael Opdenacker

Hi Mohamed,

Quoted 18 lines · On 2/14/24 at 22:52, [email protected] wrote:

From: BELOUARGA Mohamed <[email protected]>

The documentation of the variable SPDX_NAMESPACE_PREFIX does not exist. This variable is used to change the prefix of some links in SPDX docs.

[ YOCTO #15398 ]

---
  documentation/ref-manual/variables.rst | 5 +++++

  1 file changed, 5 insertions(+)
documentation/ref-manual/variables.rst +0 -0
index 6f7d6ff01e..907575ba82 100644
@@ -7913,6 +7913,11 @@ system and gives an overview of their function 

and contents.

Quoted 8 lines

        image), compared to just using the :ref:ref-classes-create-spdx class with no option.
  +   :term:SPDX_NAMESPACE_PREFIX
+      This option could be used in order to change the prefix of ``spdxDocument``
+      and the prefix of ``documentNamespace``. It is set by default to:
+      ``https://spdx.org/spdxdocs`` .
+

This looks good to me, thanks!
However, I have to wait for your first patch to be merged to merge this one, otherwise the default value is incorrect. Don't hesitate to ping me if necessary.

Quoted 1 line

As a separate patch, you may also mention this variable in the description of the "create-spdx" class (ref-manual/classes.rst). Otherwise, people may overlook this variable, if it's not referred to from any other place.

Any news about the first patch? Don't hesitate to get back to me when it is merged.
Another possibility, if the first patch doesn't make it, is to add the change without mentioning the default value. I'll be glad to do it in case you don't have time at the moment.
Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com