API reference documentation generator for FreeType.
Project description
FreeType Docwriter
Docwriter is an API documentation generator for the FreeeType Library that extracts and builds Markdown docs from the FreeType header files.
Installation
Run pip install docwriter
. It requires Python 2.7+ or 3.4+ to run.
From repository
-
Clone this repository.
-
Clone the freetype2 repository from here.
-
Convert the
include/
folder to markdown using the freetype-docs repository. -
Copy files from
include_mark/
. -
Run:
python -m docwriter --prefix=ft2 --title=FreeType-2.9.1 --output=./docs/reference \ ./include_mark/freetype/*.h ./include_mark/freetype/config/*.h ./include_mark/freetype/cache/*.h
Usage Information
docwriter [-h] [-t T] -o DIR [-p PRE] [-q | -v] files [files ...]
DocWriter Usage information
positional arguments:
files list of source files to parse, wildcards are allowed
optional arguments:
-h, --help show this help message and exit
-t T, --title T set project title, as in '-t "My Project"'
-o DIR, --output DIR set output directory, as in '-o mydir'
-p PRE, --prefix PRE set documentation prefix, as in '-p ft2'
-q, --quiet run quietly, show only errors
-v, --verbose increase output verbosity
Running Tests
There are two possible test scenarios:
- Running tests on both py27 and py36 (using tox - requires both python versions installed).
- Running tests on the currently installed Python version.
They are detailed below.
Test using Tox
To test on both py27 and py36:
-
Make sure
tox
is installed:pip install tox
-
Ensure both py27 and py36 are installed.
-
Run tests:
tox
Test on single python version
To test on current python version using pytest:
-
Make sure
pytest
is installed:pip install pytest
-
Run tests:
cd tests/ python -m pytest
License
This library is licensed under the FreeType License.
History
This library was originally written by David Turner as docmaker
which collected and presented
documentation in HTML. It has since been modified multiple times, including a major refactor
to allow multiple output formats. The current docwriter
is the biggest rewrite, with lots of
changes, additions etc. that allow it to be more flexible, readable, maintainable and usable.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for docwriter-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6773fb860a6b80c98db1ebece04928f1f492c954c8f11d09a88c67ded893a296 |
|
MD5 | 4fbb2e40cb81cf5b0c1dea0453e90604 |
|
BLAKE2b-256 | 66a086326da12ce9ac337eb1f3f6537c32f201bbbe7db597a3089ac8d4a9b12e |