Sha256: 9ca3970667abf38f59afdc5f1a76bd1a18364cf3b24c9b2d7eb63cae8551fcf3
Contents?: true
Size: 812 Bytes
Versions: 2
Compression:
Stored size: 812 Bytes
Contents
#!/usr/bin/env ratch # generate rdocs # Generate Rdoc documentation. Settings are # the same as the rdoc command's options. main :rdoc do # Load rdoc configuration. config = configuration['rdoc'] config = { 'template' => 'html', 'op' => 'doc/rdoc', 'merge' => true, 'inline-source' => true, 'exclude' => %w{InstalledFiles Manifest Project dev util}, 'include' => %w{[A-Z]* lib} }.update(config) output = config['output'] || config['op'] # Check for 'doc' directory. # (Helps to ensure we're in the right place.) dir!(File.dirname(output)) # Prepare command arguments. vector = config.command_vector('include') # Remove old rdocs, if any. rm_r(output) if File.exist?(output) # Document. rdoc(*vector) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ratch-0.1 | data/mint/ratch/rdoc |
ratch-0.2.1 | data/ratch/rubyproject/rdoc |