Giter VIP home page Giter VIP logo

rd2sphinxrst's Introduction

Rd2SphinxRst

Rd2SphinxRst converts Rmarkdown (.Rd) files generated Roxygen2 to Rst files that can be processed by Sphinx to build a documentation webpage.

Usage

The main entry point is the file Rd2SphinxRst.py

For example to run the code to generate Rst files for some Rd files in the folder ~/Desktop/mxnet/man/ according to the toctree configuration specified in ~/Desktop/mxnet/toctree and saved to ~/Desktop/mxnet/doc2/, you use the command:

python Rd2SphinxRst.py ~/Desktop/mxnet/man/ ~/Desktop/mxnet/toctree ~/Desktop/mxnet/doc2/ --url http://github.com/apache/incubator-mxnet/blob/master/

Contents

Rd2SphinxRst.py

The main entry point accepts a path containing Rd files generated by Roxygen2, JSON toctree configuration and a path to save the generated Rst files.

src/man_reader.py

Defines a python object that accepts a path and reads all the Rd files in the path

src/rd_reader.py

Defines a python object to read individual Rd files and other helper methods

src/toctree_reader.py

Reads a JSON configuration file describing the toctree and can write a corresponding Rst file.

src/rst_builder.py

Builds an Rst file from an RDReader.

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.