2018-08-25 09:36:32 +03:00
|
|
|
After saying `make refdoc' or `make refdoc-venv' the `site/' directory
|
2020-03-21 17:47:17 +03:00
|
|
|
contains the FreeType API reference. You need Python >= 3.5 and pip to make
|
|
|
|
this target.
|
2018-08-25 09:36:32 +03:00
|
|
|
|
|
|
|
There are two ways to generate the documentation:
|
|
|
|
|
|
|
|
1. Using `make refdoc':
|
|
|
|
|
|
|
|
- Ensure `python' and `pip' are available.
|
|
|
|
- Install pip package `docwriter' with `pip install --user docwriter'.
|
|
|
|
- Make target with `make refdoc'.
|
|
|
|
- This target can be run offline once required packages are installed.
|
|
|
|
|
|
|
|
2. Using `make refdoc-venv' (requires internet access):
|
|
|
|
|
2020-03-21 17:47:17 +03:00
|
|
|
- Ensure `python', `pip' and Python package `virtualenv' are available.
|
2018-08-25 09:36:32 +03:00
|
|
|
- Make target with `make refdoc-venv'.
|
|
|
|
- This may or may not require internet access every time depending on
|
|
|
|
pip and system caching.
|
2005-12-23 16:32:06 +03:00
|
|
|
|
2005-12-23 18:10:54 +03:00
|
|
|
This also works with Jam: Just type `jam refdoc' in the main directory.
|
2005-12-23 16:32:06 +03:00
|
|
|
|
2018-08-25 09:36:32 +03:00
|
|
|
Some troubleshooting tips:
|
|
|
|
|
|
|
|
* Regularly run `pip install --upgrade docwriter' to check for updates which
|
|
|
|
may include bug fixes.
|
|
|
|
|
2020-03-21 17:47:17 +03:00
|
|
|
* `Docwriter' does not support Python 2. Ensure that Python >= 3.5 is
|
|
|
|
installed and available as `python3'/`python'.
|
2018-08-25 09:36:32 +03:00
|
|
|
|
2020-03-21 17:47:17 +03:00
|
|
|
* Ensure that `docwriter' is installed in the same Python target that
|
|
|
|
`make refdoc' uses (python3/python).
|
2018-08-25 09:36:32 +03:00
|
|
|
|
|
|
|
* If none of this works, send a mail to `freetype-devel@nongnu.org' or file
|
|
|
|
an issue at `https://github.com/freetype/docwriter/issues'.
|