Coder Social home page Coder Social logo

freetype-docs's Introduction

freetype-docs

Documentation unification and Markdown conversion for FreeType

Introduction

The purpose of this module is to:

  • convert the 'heavy' comment documentation format to a 'lighter' version.
  • convert comment blocks to FreeType flavored Markdown (feature draft)

See EXAMPLES.md for examples.

Usage

This module is currently under development.

  • To change comment formatting:
python docconverter.py file1 [file2 ...]
  • To convert to markdown syntax:
python markify.py file1 [file2 ...]

Using the following options:

  • -h : print usage information
  • -o : set output directory, as in '-o mydir'

Info: If -o parameter is not specified, output will flush to terminal.

Note: Markify will only accept the 'light' comment format. It is recommended to run docconverter before markify.

Important: Emphasis (bold and italics) conversion is currently disabled. This has been done to support the current docmaker.

Examples

  • Change comment formatting
    To change comment formatting of all header files and flush to ./include_mod:
python docconverter.py -o ./include_mod ./include/*.h ./include/freetype/*.h ./include/freetype/internal/*.h ./include/freetype/internal/services/*.h ./include/freetype/config/*.h
  • Convert to markdown
    To convert markdown in all header files and flush to ./include_mark:
python markify.py -o ./include_mark ./include_mod/*.h ./include_mod/freetype/*.h ./include_mod/freetype/internal/*.h ./include_mod/freetype/internal/services/*.h ./include_mod/freetype/config/*.h

Note: Output directory ./include_mod and ./include_mark should exist. Any directories inside will be created automatically.

Development

This is in initial stages, and there may be many changes left.

What it does:

  • Converts 'heavy' comments to 'light' comments
  • Preserves (does not change) 'special' comment blocks like include/freetype/freetype.h#L384
  • Shows output on the terminal
  • Converts field entries to new format
  • Converts bold and italics to markdown syntax (currently disabled)
  • Write output to file

What it doesn't do:

  • Teleport to Andromeda

License

This module is a part of FreeType Google Summer of Code 2018. All files and code are licensed under the FreeType License.

freetype-docs's People

Contributors

nikramakrishnan avatar

Stargazers

 avatar

Watchers

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