Skip to main content

API reference documentation generator for FreeType.

Project description

[![Build Status](https://travis-ci.com/nikramakrishnan/freetype-docwriter.svg?branch=master)](https://travis-ci.com/nikramakrishnan/freetype-docwriter)
[![Code Health](https://landscape.io/github/nikramakrishnan/freetype-docwriter/master/landscape.svg?style=flat)](https://landscape.io/github/nikramakrishnan/freetype-docwriter/master)

# FreeType Docwriter

Markdown documentation generator for the FreeType library.

## Setup Instructions

1. Clone this repository.
2. Clone the freetype2 repository from [here](http://git.savannah.gnu.org/cgit/freetype/freetype2.git/).
3. Convert the `include/` folder to markdown using the
[freetype-docs](https://github.com/nikramakrishnan/freetype-docs/tree/markdown) repository.
5. Copy files from `include_mark/`.
6. Run:

```bash
python -B docwriter.py --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:

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:
```bash
pip install tox
```

2. Ensure both py27 and py36 are installed.

3. Run tests:
```bash
tox
```

### Test on single python version

To test on current python version using pytest:

1. Make sure `pytest` is installed:
```bash
pip install pytest
```

2. Run tests:
```bash
python -m pytest
```

## License

This library is licensed under the [FreeType License](https://www.freetype.org/license.html).

## 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-0.2.tar.gz (62.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

docwriter-0.2-py2-none-any.whl (27.3 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: docwriter-0.2.tar.gz
  • Upload date:
  • Size: 62.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

File hashes

Hashes for docwriter-0.2.tar.gz
Algorithm Hash digest
SHA256 536a2c85f647043bdde70fffc3bb33f8ff21f32c98e9d325cc59306617743650
MD5 44189ae21909754de839bd4c0d40f659
BLAKE2b-256 b9677c40d43d5f3fa92607856ba0cb1e5431cffddca0f5ae485e94db23e73225

See more details on using hashes here.

File details

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

File metadata

  • Download URL: docwriter-0.2-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

File hashes

Hashes for docwriter-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9bc037b2ef61a6abd5be2d5bf2afdc38dbf33b0c297bf8422907de0c97a8e35d
MD5 565e08851e55b6fcb5cf000c8ce48731
BLAKE2b-256 9725867535ee3d2155d94df5b44640e70487f3cabd34849327b4481af2b3cd78

See more details on using hashes here.

File details

Details for the file docwriter-0.2-py2-none-any.whl.

File metadata

  • Download URL: docwriter-0.2-py2-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.14

File hashes

Hashes for docwriter-0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 d3a8171a9596334209503756cd23519143bcf2261d60575687e0f6f820952914
MD5 2e296705708ba1fb1c6f325b0bc07120
BLAKE2b-256 8ea289695ad0a7a9cbd873eff6405d1ef8587a510890f2349ac2e5776d99780d

See more details on using hashes here.

Supported by

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