Project

wpdoc

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
rdoc html with javascript search index.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 1.1.3
= 2.4.3
 Project Readme

WPDoc¶ ↑

What’s in?¶ ↑

  • shtml - RDoc’s generator to build searchable documentation

  • sdoc-merge - comand line tool to build merge multiple sdoc documentations packages into a single one

  • sdoc - command line tool to run rdoc with generator=shtml

Getting Started¶ ↑

sudo gem install sdoc
sdoc -N projectdir

Command line sdoc¶ ↑

sdoc is simply a wrapper to rdoc command line tool. see sdoc --help for more details. --fmt is set to shtml by default. Default template -T is shtml. You can also use ‘direct’ template. Example: sdoc -o doc/rails -T direct rails

Rake¶ ↑

# Rakefile
require 'sdoc' # and use your RDoc task the same way you used it before

Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = 'doc/rdoc'
  rdoc.options << '--fmt' << 'shtml' # explictly set shtml generator
  rdoc.template = 'direct' # lighter template used on railsapi.com
  ...
end

sdoc-merge¶ ↑

Usage: sdoc-merge [options] directories
    -n, --names [NAMES]              Names of merged repositories. Comma separated
    -o, --op [DIRECTORY]             Set the output directory
    -t, --title [TITLE]              Set the title of merged file

Example: sdoc-merge --title "Ruby v1.9, Rails v2.3.2.1" --op merged --names "Ruby,Rails" ruby-v1.9 rails-v2.3.2.1