Giter VIP home page Giter VIP logo

docwriter's Introduction

Build Status Code Health PyPI version

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

  1. Clone this repository.

  2. Clone the freetype2 repository from here.

  3. Convert the include/ folder to markdown using the freetype-docs repository.

  4. Copy files from include_mark/.

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

  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 installed.

  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.

docwriter's People

Contributors

nikramakrishnan avatar

Watchers

James Cloos avatar Tunap Paul avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.