Skip to main content

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.

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)

Source distribution for docwriter 1.1
File Size Uploaded
docwriter-1.1.tar.gz 67.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for docwriter 1.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3

2 release files

1.2.1

2 release files

1.2

2 release files

1.1.1

2 release files

This release

1.1 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

0.3.1

2 release files

0.3

2 release files

0.2

3 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page