Giter Club home page Giter Club logo

doxy2swig's Introduction

doxy2swig (improved)

Doxygen XML to SWIG docstring converter (improved version).

Converts Doxygen generated XML files into a file containing docstrings for use by SWIG.

Usage

  1. Set doxygen to generate XML output by adding GENERATE_XML = YES to the project doxygen configuration file (or create a seperate one for this purpose).

  2. Run doxygen to extract the documentation and output it in XML format.

  3. Use doxy2swig.py to convert the XML documentation to doctrings for SWIG

     doxy2swig.py [options] index.xml output.i
    
     index.xml is your doxygen generated XML file and output.i is where the
     output will be written (the file will be clobbered).
    
    
     Options:
       -h, --help            show this help message and exit
       -f, --function-signature
                             include function signature in the documentation. This
                             is handy when not using swig auto-generated function
                             definitions %feature("autodoc", [0,1])
       -t, --type-info       include type information for arguments in function
                             signatures. This is similar to swig autodoc level 1
       -c, --constructor-list
                             generate a constructor list for class documentation.
                             Useful for target languages where the object
                             construction should be documented in the class
                             documentation.
       -a, --attribute-list  generate an attributes list for class documentation.
                             Useful for target languages where class attributes
                             should be documented in the class documentation.
       -o, --overloaded-functions
                             collect all documentation for overloaded functions.
                             Useful for target languages that have no concept of
                             overloaded functions, but also to avoid having to
                             attach the correct docstring to each function overload
                             manually
       -w W, --width=W       textwidth for wrapping (default: 80). Note that the
                             generated lines may include 2 additional spaces (for
                             markdown).
       -q, --quiet           be quiet and minimize output
    
  4. Include the docstring file generated by doxy2swig.py at the top of your swig file using %include output.i.

Note

To attach docstrings to classes with SWIG for python and using the -builtin option, a version of SWIG >= 3.0.7 is required. Without this, the class documentation including constructor lists (-c) and attribute lists (-a) will not be available from python.

doxy2swig's People

Contributors

m7thon avatar

Watchers

Henry Liu 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.