diff options
| author | Robert Göhler <github@ghlr.de> | 2021-06-11 22:28:02 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-11 22:28:02 +0200 | 
| commit | 679a7967f5b4ae41fa92bad5d3efa6e883b33610 (patch) | |
| tree | 95bb90c8a6e71ab79906ac6cee304f631aaacf1c /docs/documentation.rst | |
| parent | b8cc2a3971104ed3b4e9b77bd33a02cccaf6b54a (diff) | |
| parent | 20fae5d25db3989b958d38a83dbca8573ec8a9d2 (diff) | |
| download | vyos-documentation-679a7967f5b4ae41fa92bad5d3efa6e883b33610.tar.gz vyos-documentation-679a7967f5b4ae41fa92bad5d3efa6e883b33610.zip  | |
Merge pull request #546 from rebortg/autosectionlabel
Autosectionlabel
Diffstat (limited to 'docs/documentation.rst')
| -rw-r--r-- | docs/documentation.rst | 53 | 
1 files changed, 53 insertions, 0 deletions
diff --git a/docs/documentation.rst b/docs/documentation.rst index 7b410e95..f869922b 100644 --- a/docs/documentation.rst +++ b/docs/documentation.rst @@ -137,6 +137,59 @@ We use the following syntax for Headlines.    Paragraphs    """""""""" +Cross-References +^^^^^^^^^^^^^^^^ + +A plugin will used to generate a reference lable of each headline. +To reference a page or a section in the documentation use the ``:ref:`` +command. + +For example you want to reference the headline **VLAN** in the +**ethernet.rst** page. The plugin generates label based on headline +and the file path. + +``:ref:`configuration/interfaces/ethernet:vlan`` + +to use a alternative Hyperlink use it this way: + +``:ref:`Check out VLAN<configuration/interfaces/ethernet:vlan>`` + +handle build errors +""""""""""""""""""" + +The plugin will warn on build if a headline has a duplicate name in the  +same document. To prevent this warning you have to put a custom link on +top of the headline. + +.. code-block:: + +   Section A +   ========== + +   Lorem ipsum dolor sit amet, consetetur sadipscing elitr + +   Example +   ------- + +   Lorem ipsum dolor sit amet, consetetur sadipscing elitr + +   Section B +   ========== + +   Lorem ipsum dolor sit amet, consetetur sadipscing elitr +    +   .. _section B example: + +   Example +   ------- + +   Lorem ipsum dolor sit amet, consetetur sadipscing elitr + + + + + +  Address space  ^^^^^^^^^^^^^  | 
