MaketRandevu/rsc/scripts/jsdoc/lib/jsdoc
2013-07-02 17:20:39 +00:00
..
opts Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
src Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
tag Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
tutorial Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
util Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
augment.js Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
borrow.js Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
config.js Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
doclet.js Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
fs.js Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
name.js Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
package.js Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
path.js Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
plugins.js Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
readme.js Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
schema.js Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
tag.js Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
template.js Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00
tutorial.js Changed the name of the data folder to rsc (resources) 2013-07-02 17:20:39 +00:00

/*global env: true */

/**
 * Make the contents of a README file available to include in the output.
 * @module jsdoc/readme
 * @author Michael Mathews <micmath@gmail.com>
 * @author Ben Blank <ben.blank@gmail.com>
 */

var fs = require('jsdoc/fs'),
	markdown = require('jsdoc/util/markdown');

/**
 * @class
 * @classdesc Represents a README file.
 * @param {string} path - The filepath to the README.
 */
function ReadMe(path) {
    var content = fs.readFileSync(path, env.opts.encoding),
        parse = markdown.getParser();
    
    this.html = parse(content);
}

module.exports = ReadMe;