Ales Komarek | 7b7636e | 2015-11-27 15:31:43 +0100 | [diff] [blame] | 1 | |
OlgaGusarenko | 2a8701b | 2018-07-31 01:23:21 +0300 | [diff] [blame^] | 2 | ===== |
| 3 | Usage |
| 4 | ===== |
Ales Komarek | 7b7636e | 2015-11-27 15:31:43 +0100 | [diff] [blame] | 5 | |
Sergey Otpuschennikov | 0eae6cc | 2018-07-30 18:53:14 +0400 | [diff] [blame] | 6 | Sphinx is a tool that makes it easy to create intelligent and beautiful documentation, |
| 7 | written by Georg Brandl and licensed under the BSD license. It was originally created |
| 8 | for the new Python documentation, and it has excellent facilities for the documentation |
| 9 | of Python projects. The C/C++ projects are already supported as well, and it is planned |
| 10 | to add special support for other languages as well. |
Ales Komarek | 7b7636e | 2015-11-27 15:31:43 +0100 | [diff] [blame] | 11 | |
| 12 | Sample pillars |
| 13 | ============== |
| 14 | |
Sergey Otpuschennikov | 0eae6cc | 2018-07-30 18:53:14 +0400 | [diff] [blame] | 15 | Sample documentation with local source: |
Ales Komarek | 7b7636e | 2015-11-27 15:31:43 +0100 | [diff] [blame] | 16 | |
| 17 | .. code-block:: yaml |
| 18 | |
| 19 | sphinx: |
| 20 | server: |
| 21 | enabled: true |
| 22 | doc: |
| 23 | board: |
| 24 | builder: 'html' |
Martin Polreich | 9031c25 | 2018-07-18 11:56:01 +0200 | [diff] [blame] | 25 | source: |
Ales Komarek | 7b7636e | 2015-11-27 15:31:43 +0100 | [diff] [blame] | 26 | engine: local |
| 27 | path: '/path/to/sphinx/documentation' |
| 28 | |
Sergey Otpuschennikov | 0eae6cc | 2018-07-30 18:53:14 +0400 | [diff] [blame] | 29 | Sample documentation with Git source: |
Ales Komarek | 7b7636e | 2015-11-27 15:31:43 +0100 | [diff] [blame] | 30 | |
| 31 | .. code-block:: yaml |
| 32 | |
| 33 | sphinx: |
| 34 | server: |
| 35 | enabled: true |
| 36 | doc: |
| 37 | board: |
| 38 | builder: 'html' |
Martin Polreich | 9031c25 | 2018-07-18 11:56:01 +0200 | [diff] [blame] | 39 | source: |
Ales Komarek | 7b7636e | 2015-11-27 15:31:43 +0100 | [diff] [blame] | 40 | engine: git |
| 41 | address: 'git@repo1.domain.com/repo.git' |
| 42 | revision: master |
| 43 | |
Sergey Otpuschennikov | 0eae6cc | 2018-07-30 18:53:14 +0400 | [diff] [blame] | 44 | Sample documentation with Reclass source: |
Ales Komarek | 7b7636e | 2015-11-27 15:31:43 +0100 | [diff] [blame] | 45 | |
| 46 | .. code-block:: yaml |
| 47 | |
| 48 | sphinx: |
| 49 | server: |
| 50 | enabled: true |
| 51 | doc: |
| 52 | board: |
| 53 | builder: 'html' |
Martin Polreich | 9031c25 | 2018-07-18 11:56:01 +0200 | [diff] [blame] | 54 | source: |
Ales Komarek | 7b7636e | 2015-11-27 15:31:43 +0100 | [diff] [blame] | 55 | engine: reclass |
| 56 | |
Sergey Otpuschennikov | 0eae6cc | 2018-07-30 18:53:14 +0400 | [diff] [blame] | 57 | Sample documentation with pillar-schema source: |
| 58 | |
| 59 | .. code-block:: yaml |
| 60 | |
| 61 | sphinx: |
| 62 | server: |
| 63 | enabled: true |
| 64 | doc: |
| 65 | schemas_doc: |
| 66 | author: Author |
| 67 | year: Year |
| 68 | version: Version |
| 69 | builder: 'html' |
| 70 | source: |
| 71 | engine: pillar-schema |
Ales Komarek | 7b7636e | 2015-11-27 15:31:43 +0100 | [diff] [blame] | 72 | |
| 73 | Read more |
| 74 | ========= |
| 75 | |
| 76 | * http://sphinx-doc.org/tutorial.html |
Filip Pytloun | 62bce8a | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 77 | |
| 78 | Documentation and Bugs |
| 79 | ====================== |
| 80 | |
OlgaGusarenko | 2a8701b | 2018-07-31 01:23:21 +0300 | [diff] [blame^] | 81 | * http://salt-formulas.readthedocs.io/ |
| 82 | Learn how to install and update salt-formulas |
Filip Pytloun | 62bce8a | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 83 | |
OlgaGusarenko | 2a8701b | 2018-07-31 01:23:21 +0300 | [diff] [blame^] | 84 | * https://github.com/salt-formulas/salt-formula-sphinx/issues |
| 85 | In the unfortunate event that bugs are discovered, report the issue to the |
| 86 | appropriate issue tracker. Use the Github issue tracker for a specific salt |
| 87 | formula |
Filip Pytloun | 62bce8a | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 88 | |
OlgaGusarenko | 2a8701b | 2018-07-31 01:23:21 +0300 | [diff] [blame^] | 89 | * https://launchpad.net/salt-formulas |
| 90 | For feature requests, bug reports, or blueprints affecting the entire |
| 91 | ecosystem, use the Launchpad salt-formulas project |
Filip Pytloun | 62bce8a | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 92 | |
OlgaGusarenko | 2a8701b | 2018-07-31 01:23:21 +0300 | [diff] [blame^] | 93 | * https://launchpad.net/~salt-formulas-users |
| 94 | Join the salt-formulas-users team and subscribe to mailing list if required |
Filip Pytloun | 62bce8a | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 95 | |
OlgaGusarenko | 2a8701b | 2018-07-31 01:23:21 +0300 | [diff] [blame^] | 96 | * https://github.com/salt-formulas/salt-formula-sphinx |
| 97 | Develop the salt-formulas projects in the master branch and then submit pull |
| 98 | requests against a specific formula |
Filip Pytloun | 62bce8a | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 99 | |
OlgaGusarenko | 2a8701b | 2018-07-31 01:23:21 +0300 | [diff] [blame^] | 100 | * #salt-formulas @ irc.freenode.net |
| 101 | Use this IRC channel in case of any questions or feedback which is always |
| 102 | welcome |
Filip Pytloun | 62bce8a | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 103 | |