Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.31 KB

README.rst

File metadata and controls

51 lines (37 loc) · 1.31 KB

Read the Docs Client

Usage

Embedding Content

To embed content from existing documentation on Read the Docs, use this library with a call similar to this:

<script src="readthedocs-client.js"></script>
<script>
    var embed = new Embed(),
        wrapper = document.getElementById('wrapper');

    embed.section(
        'requests', 'latest', 'index', 'Testimonials',
        function (section) {
            section.insertContent(wrapper);
        }
    ),
</script>

Development

Installing development dependencies:

npm install

This will install needed libraries/applications for development. This library uses Gulp and Browserify to form releases. Releases will be packaged up for use with Bower. Files in @lib/@ are the source files. On @gulp build@, these files are passed through Browserify to create bundles in @dist/@. The bundles in @dist/@ are now usable in browsers and will be the files Bower installs for client use.

To watch files and continually build on changes:

gulp dev

To run the test suite in @tests/@ via Nodeunit:

gulp test