Skip to content

Commit

Permalink
doc: Add README.markdown as index page to API documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobie committed Aug 23, 2009
1 parent ff5dbe3 commit d5947d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
3 changes: 2 additions & 1 deletion Rakefile
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions templates/html/assets/stylesheets/core.css
Expand Up @@ -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;
Expand Down
5 changes: 1 addition & 4 deletions 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>
Expand Down

0 comments on commit d5947d9

Please sign in to comment.