FreeType Docwriter
Docwriter is an API documentation generator for the FreeType 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.
-
Run:
python -m docwriter \ --prefix=ft2 \ --title=FreeType-2.9.1 \ --output=$./docs/reference \ ./include/freetype/*.h \ ./include/freetype/config/*.h \ ./include/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
toxis installed:pip install tox
-
Ensure both py27 and py36 are available.
-
Run tests:
tox
Test on single python version
To test on current python version using pytest:
-
Make sure
pytestis 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.
Release files for docwriter 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| docwriter-1.1.tar.gz | 67.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| docwriter-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 95.0 kB
Release files / docwriter-1.1.tar.gz
| Download URL | docwriter-1.1.tar.gz |
|---|---|
| Size | 67.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
380b026b9466b457d5eedc546b64513ec4e03930199f7337ede123ef0e2b3062
|
|
BLAKE2b-256 checksum How to use checksums |
33e8df5eda305ae8ae4cccfbda69a0121c234027986cb7cccfe9be7641cd6e58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
|
Release files / docwriter-1.1-py3-none-any.whl
| Download URL | docwriter-1.1-py3-none-any.whl |
|---|---|
| Size | 27.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb81a66af244bbb423cdbd1dddf91b8e545b56affbbcc8ef43d266d4a79a5bfa
|
|
BLAKE2b-256 checksum How to use checksums |
102f2eeeb18c0eff85e5ac71e7c908df775f4f85ad7d28b3750fe2ea5ddf43af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
|