aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2014-10-18 11:19:36 +0100
committerMike McQuaid2014-10-18 11:19:36 +0100
commit93c71bafca01fe14e01843572106eb9dcb909609 (patch)
treea003e17745075b557fb71f81de974ae281475b0c
parent41cc28ca42e1bcaa9716d6c7930ec9c492ffa356 (diff)
downloadbrew-93c71bafca01fe14e01843572106eb9dcb909609.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.