This the source of LVGL's documentation avaialble on https://docs.lvgl.io
The documentation is craeted with Sphinx and RTD theme and with the use of several extensions. See below.
There are the following branches:
master
Collection of the built docuementation for each versionlatest
Documentation for themaster
branch of lvgl. It contains the last features available for testing.dev
Documentation for thedev
branch of lvgl. These features are not stabel and might change.release/vX
Documentation for therelease/vX
branch of lvgl (X
stands for major relases of lvgl). These are the last relased stable versions.
On every release (first and third Tuesday of every month)
- Rebuild and publish
latest
- Merge
latest
torelease/vX
- Merge
latest
todev
- Merge
dev
tolatest
- Rebuild and publish all 3 branches
As you read the documentation you might see some typos or unclear sentences.
For typos and straightforward fixes, you can simply edit the file on GitHub. There is an Edit on Github
link on the top right-hand corner of all pages.
Click it to see the file on GitHub, hit the Edit button, and add you fixes as described in Pull request - From GitHub section.
Note that the documentation is also formatted in Markdown.
The documentation is rebuild on every release of lvgl (first and third Tuesday of every month).
The following directions are given for Ubuntu, but should also be useful as a general guide. They assume that https://github.com/lvgl/lvgl is cloned in a folder named lvgl
, and https://github.com/lvgl/docs is beside it in another folder named docs
. The paths are not important (both folders can be located anywhere) but you may have to adjust these instructions slightly.
To rebuild the API documentation, you need Doxygen.
$ ls .
docs lvgl
$ sudo apt install doxygen
$ cd lvgl/scripts
$ doxygen Doxyfile
The documentation is compiled into HTML or another form using Sphinx. In order to get started Sphinx and some other components need to be installed on your system.
Install dependencies:
$ pip install -U sphinx recommonmark commonmark breathe sphinx-rtd-theme sphinx-markdown-tables sphinx-sitemap
Get the docs
and lvgl
repositories
$ git clone https://github.com/lvgl/docs.git --recurse-submodules
$ git clone https://github.com/lvgl/lvgl.git
$ ls .
docs lvgl
Enter to the docs
folder and change branch:
$ cd docs
$ git checkout latest --
$ git submodule update --init
Update the API reference of the docs
from lvgl
(optional):
$ rm xml/*
$ cd ../lvgl/scripts
$ doxygen -u
$ cd ../../docs
$ cp -a ../lvgl/docs/api_doc/xml/* xml/
Built HTML
$ make html
The HTML pages are in the html
.