[libcamera-devel,2/5] Documentation: environment-variables: Use standard rST link syntax
diff mbox series

Message ID 20210317192831.359014-3-nfraprado@collabora.com
State Accepted
Headers show
Series
  • Minor improvements to the documentation
Related show

Commit Message

Nícolas F. R. A. Prado March 17, 2021, 7:28 p.m. UTC
The usage of # in embedded URIs for references to sections in
reStructuredText is HTML specific. Use the standard rST reference to
targets instead, to be compatible with other formats as well, should
this documentation ever be exported to PDF, for example.

See [1] for an equivalent commit in the Linux Kernel documentation.

[1] https://lore.kernel.org/linux-doc/20201228144537.135353-1-nfraprado@protonmail.com/

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
 Documentation/environment_variables.rst | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Comments

Sebastian Fricke March 18, 2021, 4:59 a.m. UTC | #1
Hey Nícolas,

On 17.03.2021 16:28, Nícolas F. R. A. Prado wrote:
>The usage of # in embedded URIs for references to sections in
>reStructuredText is HTML specific. Use the standard rST reference to
>targets instead, to be compatible with other formats as well, should
>this documentation ever be exported to PDF, for example.

Thanks, good to know I will keep that in mind for future rST work.
Reviewed-by: Sebastian Fricke <sebastian.fricke@posteo.net>

Greetings,
Sebastian

>
>See [1] for an equivalent commit in the Linux Kernel documentation.
>
>[1] https://lore.kernel.org/linux-doc/20201228144537.135353-1-nfraprado@protonmail.com/
>
>Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
>---
> Documentation/environment_variables.rst | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
>diff --git a/Documentation/environment_variables.rst b/Documentation/environment_variables.rst
>index e482c98e5f30..d392fd26b87a 100644
>--- a/Documentation/environment_variables.rst
>+++ b/Documentation/environment_variables.rst
>@@ -15,17 +15,17 @@ LIBCAMERA_LOG_FILE
>    Example value: ``/home/{user}/camera_log.log``
>
> LIBCAMERA_LOG_LEVELS
>-   Configure the verbosity of log messages for different categories (`more <#log-levels>`__).
>+   Configure the verbosity of log messages for different categories (`more <Log levels_>`__).
>
>    Example value: ``*:DEBUG``
>
> LIBCAMERA_IPA_CONFIG_PATH
>-   Define custom search locations for IPA configurations (`more <#ipa-configuration>`__).
>+   Define custom search locations for IPA configurations (`more <IPA configuration_>`__).
>
>    Example value: ``${HOME}/.libcamera/share/ipa:/opt/libcamera/vendor/share/ipa``
>
> LIBCAMERA_IPA_MODULE_PATH
>-   Define custom search locations for IPA modules (`more <#ipa-module>`__).
>+   Define custom search locations for IPA modules (`more <IPA module_>`__).
>
>    Example value: ``${HOME}/.libcamera/lib:/opt/libcamera/vendor/lib``
>
>@@ -42,10 +42,10 @@ libcamera.
> The ``LIBCAMERA_LOG_LEVELS`` variable accepts a comma-separated list of
> 'category:level' pairs.
>
>-The `level <#log-levels>`__ part is mandatory and can either be specified by
>+The `level <Log levels_>`__ part is mandatory and can either be specified by
> name or by numerical index associated with each level.
>
>-The optional `category <#log-categories>`__ is a string matching the categories
>+The optional `category <Log categories_>`__ is a string matching the categories
> defined by each file in the source base using the logging infrastructure. It
> can include a wildcard ('*') character at the end to match multiple categories.
>
>@@ -53,7 +53,7 @@ For more information refer to the `API documentation <http://libcamera.org/api-h
>
> Examples:
>
>-Enable full debug output to a separate file, for every `category <#log-categories>`__
>+Enable full debug output to a separate file, for every `category <Log categories_>`__
> within a local environment:
>
> .. code:: bash
>-- 
>2.30.2
>
>_______________________________________________
>libcamera-devel mailing list
>libcamera-devel@lists.libcamera.org
>https://lists.libcamera.org/listinfo/libcamera-devel
Laurent Pinchart March 18, 2021, 11:55 p.m. UTC | #2
Hi Nicolas,

Thank you for the patch.

On Wed, Mar 17, 2021 at 04:28:28PM -0300, Nícolas F. R. A. Prado wrote:
> The usage of # in embedded URIs for references to sections in
> reStructuredText is HTML specific. Use the standard rST reference to
> targets instead, to be compatible with other formats as well, should
> this documentation ever be exported to PDF, for example.
> 
> See [1] for an equivalent commit in the Linux Kernel documentation.
> 
> [1] https://lore.kernel.org/linux-doc/20201228144537.135353-1-nfraprado@protonmail.com/
> 
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  Documentation/environment_variables.rst | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/Documentation/environment_variables.rst b/Documentation/environment_variables.rst
> index e482c98e5f30..d392fd26b87a 100644
> --- a/Documentation/environment_variables.rst
> +++ b/Documentation/environment_variables.rst
> @@ -15,17 +15,17 @@ LIBCAMERA_LOG_FILE
>     Example value: ``/home/{user}/camera_log.log``
>  
>  LIBCAMERA_LOG_LEVELS
> -   Configure the verbosity of log messages for different categories (`more <#log-levels>`__).
> +   Configure the verbosity of log messages for different categories (`more <Log levels_>`__).
>  
>     Example value: ``*:DEBUG``
>  
>  LIBCAMERA_IPA_CONFIG_PATH
> -   Define custom search locations for IPA configurations (`more <#ipa-configuration>`__).
> +   Define custom search locations for IPA configurations (`more <IPA configuration_>`__).
>  
>     Example value: ``${HOME}/.libcamera/share/ipa:/opt/libcamera/vendor/share/ipa``
>  
>  LIBCAMERA_IPA_MODULE_PATH
> -   Define custom search locations for IPA modules (`more <#ipa-module>`__).
> +   Define custom search locations for IPA modules (`more <IPA module_>`__).
>  
>     Example value: ``${HOME}/.libcamera/lib:/opt/libcamera/vendor/lib``
>  
> @@ -42,10 +42,10 @@ libcamera.
>  The ``LIBCAMERA_LOG_LEVELS`` variable accepts a comma-separated list of
>  'category:level' pairs.
>  
> -The `level <#log-levels>`__ part is mandatory and can either be specified by
> +The `level <Log levels_>`__ part is mandatory and can either be specified by
>  name or by numerical index associated with each level.
>  
> -The optional `category <#log-categories>`__ is a string matching the categories
> +The optional `category <Log categories_>`__ is a string matching the categories
>  defined by each file in the source base using the logging infrastructure. It
>  can include a wildcard ('*') character at the end to match multiple categories.
>  
> @@ -53,7 +53,7 @@ For more information refer to the `API documentation <http://libcamera.org/api-h
>  
>  Examples:
>  
> -Enable full debug output to a separate file, for every `category <#log-categories>`__
> +Enable full debug output to a separate file, for every `category <Log categories_>`__
>  within a local environment:
>  
>  .. code:: bash

Patch
diff mbox series

diff --git a/Documentation/environment_variables.rst b/Documentation/environment_variables.rst
index e482c98e5f30..d392fd26b87a 100644
--- a/Documentation/environment_variables.rst
+++ b/Documentation/environment_variables.rst
@@ -15,17 +15,17 @@  LIBCAMERA_LOG_FILE
    Example value: ``/home/{user}/camera_log.log``
 
 LIBCAMERA_LOG_LEVELS
-   Configure the verbosity of log messages for different categories (`more <#log-levels>`__).
+   Configure the verbosity of log messages for different categories (`more <Log levels_>`__).
 
    Example value: ``*:DEBUG``
 
 LIBCAMERA_IPA_CONFIG_PATH
-   Define custom search locations for IPA configurations (`more <#ipa-configuration>`__).
+   Define custom search locations for IPA configurations (`more <IPA configuration_>`__).
 
    Example value: ``${HOME}/.libcamera/share/ipa:/opt/libcamera/vendor/share/ipa``
 
 LIBCAMERA_IPA_MODULE_PATH
-   Define custom search locations for IPA modules (`more <#ipa-module>`__).
+   Define custom search locations for IPA modules (`more <IPA module_>`__).
 
    Example value: ``${HOME}/.libcamera/lib:/opt/libcamera/vendor/lib``
 
@@ -42,10 +42,10 @@  libcamera.
 The ``LIBCAMERA_LOG_LEVELS`` variable accepts a comma-separated list of
 'category:level' pairs.
 
-The `level <#log-levels>`__ part is mandatory and can either be specified by
+The `level <Log levels_>`__ part is mandatory and can either be specified by
 name or by numerical index associated with each level.
 
-The optional `category <#log-categories>`__ is a string matching the categories
+The optional `category <Log categories_>`__ is a string matching the categories
 defined by each file in the source base using the logging infrastructure. It
 can include a wildcard ('*') character at the end to match multiple categories.
 
@@ -53,7 +53,7 @@  For more information refer to the `API documentation <http://libcamera.org/api-h
 
 Examples:
 
-Enable full debug output to a separate file, for every `category <#log-categories>`__
+Enable full debug output to a separate file, for every `category <Log categories_>`__
 within a local environment:
 
 .. code:: bash