Skip to main content

API reference documentation generator for FreeType.

Project description

Build Status PyPI version

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

  1. Clone this repository.

  2. Clone the freetype2 repository from here.

  3. 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:

  1. Running tests on both py27 and py36 (using tox - requires both python versions installed).
  2. Running tests on the currently installed Python version.

They are detailed below.

Test using Tox

To test on both py27 and py36:

  1. Make sure tox is installed:

    pip install tox
    
  2. Ensure both py27 and py36 are available.

  3. Run tests:

    tox
    

Test on single python version

To test on current python version using pytest:

  1. Make sure pytest is installed:

    pip install pytest
    
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docwriter-1.1.tar.gz (67.7 kB view details)

Uploaded Source

Built Distribution

docwriter-1.1-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file docwriter-1.1.tar.gz.

File metadata

  • Download URL: docwriter-1.1.tar.gz
  • Upload date:
  • Size: 67.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for docwriter-1.1.tar.gz
Algorithm Hash digest
SHA256 380b026b9466b457d5eedc546b64513ec4e03930199f7337ede123ef0e2b3062
MD5 c01b7a0d0244c0ac07eae4ce21183410
BLAKE2b-256 33e8df5eda305ae8ae4cccfbda69a0121c234027986cb7cccfe9be7641cd6e58

See more details on using hashes here.

File details

Details for the file docwriter-1.1-py3-none-any.whl.

File metadata

  • Download URL: docwriter-1.1-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for docwriter-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb81a66af244bbb423cdbd1dddf91b8e545b56affbbcc8ef43d266d4a79a5bfa
MD5 a11748b2432ada44c880c55e21b2bf4f
BLAKE2b-256 102f2eeeb18c0eff85e5ac71e7c908df775f4f85ad7d28b3750fe2ea5ddf43af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page