Skip to content
Browse files

doc: Add README.markdown as index page to API documentation.

  • Loading branch information...
1 parent ff5dbe3 commit d5947d9d789ea651ba0ee12e52b510a6ff37496e @tobie tobie committed Aug 23, 2009
Showing with 3 additions and 11 deletions.
  1. +2 −1 Rakefile
  2. +0 −6 templates/html/assets/stylesheets/core.css
  3. +1 −4 templates/html/index.erb
View
3 Rakefile
@@ -35,7 +35,8 @@ module PrototypeHelper
PDoc::Runner.new(temp_path, {
:output => DOC_DIR,
- :templates => File.join(TEMPLATES_DIR, "html")
+ :templates => File.join(TEMPLATES_DIR, "html"),
+ :index_page => 'README.markdown'
}).run
rm_rf temp_path
View
6 templates/html/assets/stylesheets/core.css
@@ -291,15 +291,9 @@ pre code {
.page-content .page-introduction {
margin-left: 120px;
- font-size: 15px;
margin-bottom: 25px;
}
- .page-content .page-introduction p {
- margin-top: 0;
- }
-
-
.page-content .section {
width: 955px;
margin: 10px 0 20px;
View
5 templates/html/index.erb
@@ -1,12 +1,9 @@
<% @title = "Home" %>
-<h2 class="page-title">Prototype API</h2>
-
<div class="page-introduction">
- <p>Welcome to the Prototype API Documentation.</p>
+ <%= @index_page_content %>
</div> <!-- .section -->
-
<div class="section section-sections">
<div class="section-title">
<h3>Sections</h3>

0 comments on commit d5947d9

Please sign in to comment.
Something went wrong with that request. Please try again.