aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2014-10-18 11:19:36 +0100
committerMike McQuaid2014-10-18 11:19:36 +0100
commite6bc41dee76fe5410b026817a071075d04896177 (patch)
treef53e796bac7a7c13dac724e4e1687f24a135ca22
parent6b2377496daaa38660a9dcb2e1b4300921d06a24 (diff)
downloadhomebrew-e6bc41dee76fe5410b026817a071075d04896177.tar.bz2
Use YARD for API documentation.
Massive TODO. We'll get there eventually...
-rw-r--r--.gitignore1
-rw-r--r--.yardopts4
-rw-r--r--Library/Homebrew/.rdoc_options17
-rw-r--r--Library/Homebrew/API.md4
4 files changed, 9 insertions, 17 deletions
diff --git a/.gitignore b/.gitignore
index 594920004..4c3312af1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
/*
!/.gitignore
+!/.yardopts
!/Library/
!/CODEOFCONDUCT.md
!/CONTRIBUTING.md
diff --git a/.yardopts b/.yardopts
new file mode 100644
index 000000000..6a40e6cac
--- /dev/null
+++ b/.yardopts
@@ -0,0 +1,4 @@
+--title "Homebrew"
+--main Library/Homebrew/API.md
+Library/Homebrew/**/*.rb
+*.md
diff --git a/Library/Homebrew/.rdoc_options b/Library/Homebrew/.rdoc_options
deleted file mode 100644
index b953b9e3b..000000000
--- a/Library/Homebrew/.rdoc_options
+++ /dev/null
@@ -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:
diff --git a/Library/Homebrew/API.md b/Library/Homebrew/API.md
new file mode 100644
index 000000000..f154675e2
--- /dev/null
+++ b/Library/Homebrew/API.md
@@ -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.