Extra sections#299
Open
ramondeklein wants to merge 2 commits into
Open
Conversation
Collaborator
|
Firstly, thanks for the PR @ramondeklein, it may make things easier. Things to improveDocumentationAdd an example under ErrorThis seems to be breaking when used on a field that already has another comment giving this error: This is the example that I tried: # controller.persistentVolumeClaims -- List of persistent volume claims to create.
# For very long comments, break them into multiple lines.
# @default -- the chart will construct this list internally unless specified
# @extra -- Volume Claim Template
# The volume claim template is used to create a `PersistentVolumeClaim` for the Key
# Manager pods. The amount of storage requested is specified in the `.spec.resources.requests.storage`
# field. The default value of '25Mi' should meet the requirements of reasonable production workloads.
#
# KeyManager may require more storage in workloads with a large number of enclaves and master keys.
# You can use the following formula to roughly estimate required storage:
# ```
# ( N_enclaves * 200 ) + ( N_keys * 200 ) + ( 64 * 1024 ) = total number of bytes
# ```
#
# More information about persistent volume claims can be found in
# [PersistentVolumeClaims](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims).
persistentVolumeClaims: [] |
Contributor
|
fantastic idea, I can finish it if you want! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR allows adding extra sections to the documentation to allow adding markdown paragraphs to the documentation. This is often useful to elaborate on a specific setting in more detail. These extra sections are written using a header, so you also link to the section from the short documentation.
An example of such an extra definition is:
The actual field that describes the volume claim template can link to it using
(see also [Volume Claim Templates](#volume-claim-template))in the field description.