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

This commit is contained in:
Tobie Langel 2009-08-23 04:16:23 +02:00
parent ff5dbe343f
commit d5947d9d78
3 changed files with 3 additions and 11 deletions

View File

@ -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 File

@ -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 File

@ -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>