Sha256: 80fa297a3191e0d34bd45d7aa253ca5948c9c99191b5badf590fa8c3d50e2c13
Contents?: true
Size: 827 Bytes
Versions: 1
Compression:
Stored size: 827 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['op'] = config.delete('output') if config['output'] config = { 'template' => 'html', 'op' => 'doc/rdoc', 'merge' => true, 'inline-source' => true, 'exclude' => %w{MANIFEST}, 'include' => %w{[A-Z]* lib ext} }.update(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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ratch-0.2.2 | data/ratch/rubyproject/rdoc |