Use YARD for API documentation.

Massive TODO.

We'll get there eventually...
This commit is contained in:
Mike McQuaid 2014-10-18 11:19:36 +01:00
parent 41cc28ca42
commit 93c71bafca
4 changed files with 9 additions and 17 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
/* /*
!/.gitignore !/.gitignore
!/.yardopts
!/Library/ !/Library/
!/CODEOFCONDUCT.md !/CODEOFCONDUCT.md
!/CONTRIBUTING.md !/CONTRIBUTING.md

4
.yardopts Normal file
View File

@ -0,0 +1,4 @@
--title "Homebrew"
--main Library/Homebrew/API.md
Library/Homebrew/**/*.rb
*.md

View File

@ -1,17 +0,0 @@
--- !ruby/object:RDoc::Options
encoding: UTF-8
static_path: []
rdoc_include:
- .
charset: UTF-8
exclude:
hyperlink_all: false
line_numbers: true
main_page:
markup: rdoc
page_dir:
show_hash: false
tab_width: 2
title: Homebrew
visibility: :protected
webcvs:

4
Library/Homebrew/API.md Normal file
View File

@ -0,0 +1,4 @@
# Homebrew Public API
We're (finally) working on a documented public API for Homebrew. It's currently a work in progress; a bunch of public stuff is documented and a bunch of private stuff is undocumented. Sorry about that!
The main class you should look at is {Formula}. Assume everything else is private for now.