Skip to content

doc improve datatype subsection#1008

Merged
arogge merged 15 commits intomasterfrom
dev/joergs/master/doc_improve-datatype-addresses-rebase
Nov 30, 2021
Merged

doc improve datatype subsection#1008
arogge merged 15 commits intomasterfrom
dev/joergs/master/doc_improve-datatype-addresses-rebase

Conversation

@joergsteffens
Copy link
Member

@joergsteffens joergsteffens commented Nov 30, 2021

This PR replaces #968.

This PR is an improvement of data-types subsubsection of the documentation.

  • core: define all config directives in CamelCase (this has not been the case for *ACL directives)
  • Stop building the documentation in the script generate-bareos-package-info.py detect problems
  • Update all data-type to uppercase
  • Sort alphabetically all data-type
  • Make indentation (3) uniform everywhere
  • Add description to each data-type
  • Data-types are defined as follows:
.. config:datatype:: AUTH_PROTOCOL_TYPE
 
   :values: value1 | value2
   :multi: no
   :quotes: yes
   :see: :config:datatype:`PROTOCOL_TYPE`

   Multi-line description of AUTH_PROTOCOL_TYPE.

Referencing to datatypes via

:config:datatype:`AUTH_PROTOCOL_TYPE`

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

General
  • PR name is meaningful
  • Purpose of the PR is understood
  • Separate commit for this PR in the CHANGELOG.md, PR number referenced is same
  • Commit descriptions are understandable and well formatted
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR
  • bareos-check-sources --since-merge does not report any problems
  • git status should not report modifications in the source tree after building and testing

- Rename datatype ADDRESS ADDRESSES to address and addresses
- Add more examples
- Fix typos

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
bruno-at-bareos and others added 13 commits November 30, 2021 11:23
- Update all data-type to uppercase
- Update all index to match data-type
- Update index syntax
- Sort alphabetically all data-type
- Make indentation (3) uniform everywhere
- Add description to each data-type and link to other part
- Upgrade subsubsection to subsection (visible in toc)
- Use crosslink to config:option when necessary

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
The Bareos configuration directives are expected to be written in CamelCase.
It turned out, that this is not always the case,
resulting in mismatch of documentation files and broken internal links.

This changes renames some configuration directives into proper CamelCase.
It also tries to convert directives into proper CamelCase,
adds link targets also for :config:option: with 2 components
and produces warnings on dangling links,
Fix broken :config:option: links.
Add Sphinx directives for datatypes:

.. config:datatype:: DATATYPE

and references to it:

:config:datatype:`DATATYPE`
Use :config:datatype: in generated config directives table and descriptions.
The script generate-bareos-package-info.py is used to generate parts of the documentation.
When it exits with error, the build process is stopped.
If Bareos config directices are not in CamelCase,
the script raises an error.
Adapts the systemtest to the fact,
that all ACL config directives are now defined in proper CamelCase.
@joergsteffens joergsteffens force-pushed the dev/joergs/master/doc_improve-datatype-addresses-rebase branch from 4f9b19c to 9182c94 Compare November 30, 2021 10:24
@joergsteffens joergsteffens force-pushed the dev/joergs/master/doc_improve-datatype-addresses-rebase branch from 9182c94 to 6a54860 Compare November 30, 2021 10:27
@joergsteffens joergsteffens mentioned this pull request Nov 30, 2021
12 tasks
@arogge arogge merged commit 14bc335 into master Nov 30, 2021
@arogge arogge deleted the dev/joergs/master/doc_improve-datatype-addresses-rebase branch November 30, 2021 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants