GithubHelp home page GithubHelp logo

x0bandeira / sdoc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rails/sdoc

0.0 1.0 0.0 680 KB

Standalone sdoc generator

Home Page: http://railsapi.com

License: Other

Ruby 45.69% JavaScript 54.31%

sdoc's Introduction

SDoc

Powering http://api.rubyonrails.org/ and http://railsapi.com/

What is sdoc?

RDoc generator to build searchable HTML documentation for Ruby code.

  • sdoc - command line tool to run rdoc with generator=shtml (searchable HTML)
  • sdoc-merge - comand line tool to merge multiple sdoc folders into a single documentation site

Getting Started

  # Install the gem
  gem install sdoc

  # Generate documentation for 'projectdir'
  sdoc projectdir

sdoc

sdoc is simply a wrapper for the rdoc command line tool. See sdoc --help for more details. --fmt is set to shtml by default. The default template -T is shtml, but you can also use the direct template.

Example:

sdoc -o doc/rails -T direct rails

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

Rake Task

# 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

Who?

sdoc's People

Contributors

adamlogic avatar aleksi avatar daz avatar drbrain avatar fxn avatar juandebravo avatar krisb avatar ndbroadbent avatar nerdmaster avatar nordringrayhide avatar pda avatar sunaku avatar toy avatar ttilley avatar vijaydev avatar voloko avatar wooandoo avatar x0bandeira avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.