diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-11-07 08:05:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-07 08:05:17 +0100 |
| commit | 54105994432eb905269d71e9e52dd408604aeb80 (patch) | |
| tree | 8b25adc2586f2932507a105f775602b93c2257d9 | |
| parent | 4a55a4e0a406a06726673c3eef9e0cb523bf3ce6 (diff) | |
Update the documentation section
Also move it directly after the intro.
| -rw-r--r-- | README.rst | 48 |
1 files changed, 26 insertions, 22 deletions
@@ -88,6 +88,32 @@ Here are some other features: - **Internals that (mostly) mirror the C implementation** While being simpler to understand. + +Documentation +------------- + +Kconfiglib comes with extensive documentation in the form of docstrings. To view it, run e.g. +the following command: + +.. code:: sh + + $ pydoc kconfiglib + +For HTML output, add ``-w``: + +.. code:: sh + + $ pydoc -w kconfiglib + +A good starting point is to read the module docstring (which you could also just read directly +at the beginning of `kconfiglib.py <kconfiglib.py>`_). It gives an introduction to symbol +values, the menu tree, and expressions. + +After reading the module docstring, a good next step is to read the ``Kconfig`` class +documentation, and then the documentation for the ``Symbol``, ``Choice``, and ``MenuNode`` +classes. + +Please tell me if something is unclear to you or can be explained better. Installation @@ -144,28 +170,6 @@ The entire library is contained in `kconfiglib.py <https://github.com/ulfalizer/Kconfiglib/blob/master/kconfiglib.py>`_. Just drop it somewhere. -Documentation -------------- - -The (extensive) documentation is generated by running the following command in the same -directory as `kconfiglib.py <https://github.com/ulfalizer/Kconfiglib/blob/master/kconfiglib.py>`_: - -.. code:: sh - - $ pydoc kconfiglib - -For HTML output, use - -.. code:: sh - - $ pydoc -w kconfiglib - -You could also browse the docstrings directly in -`kconfiglib.py <https://github.com/ulfalizer/Kconfiglib/blob/master/kconfiglib.py>`_. - -Please tell me if something is unclear to you or can be explained better. The Kconfig -language has some dark corners. - Examples -------- |
