Merge pull request #482 from daylerees/docs-template

Docs template
This commit is contained in:
Taylor Otwell 2012-04-02 11:10:55 -07:00
commit 21cee3667b
8 changed files with 85 additions and 11 deletions

View File

@ -731,8 +731,9 @@ function _doAnchors_reference_callback($matches) {
if (isset($this->urls[$link_id])) { if (isset($this->urls[$link_id])) {
$url = $this->urls[$link_id]; $url = $this->urls[$link_id];
// dayle convert
$url = URL::to($url);
$url = $this->encodeAttribute($url); $url = $this->encodeAttribute($url);
$result = "<a href=\"$url\""; $result = "<a href=\"$url\"";
if ( isset( $this->titles[$link_id] ) ) { if ( isset( $this->titles[$link_id] ) ) {
$title = $this->titles[$link_id]; $title = $this->titles[$link_id];
@ -754,7 +755,8 @@ function _doAnchors_inline_callback($matches) {
$link_text = $this->runSpanGamut($matches[2]); $link_text = $this->runSpanGamut($matches[2]);
$url = $matches[3] == '' ? $matches[4] : $matches[3]; $url = $matches[3] == '' ? $matches[4] : $matches[3];
$title =& $matches[7]; $title =& $matches[7];
// dayle convert
$url = URL::to($url);
$url = $this->encodeAttribute($url); $url = $this->encodeAttribute($url);
$result = "<a href=\"$url\""; $result = "<a href=\"$url\"";

View File

@ -64,7 +64,7 @@ body
.wrapper .wrapper
{ {
width:760px; width:760px;
margin:2em auto; margin:0 auto 5em auto;
} }
.wrapper>header .wrapper>header
@ -74,6 +74,7 @@ .wrapper>header
background-repeat:no-repeat; background-repeat:no-repeat;
background-position:right; background-position:right;
text-shadow:1px 1px 0px #fff; text-shadow:1px 1px 0px #fff;
padding-top:2.5em;
} }
.wrapper>header h1 .wrapper>header h1
@ -96,6 +97,11 @@ .slogan
font-size:0.8em; font-size:0.8em;
} }
.intro-text
{
width:480px;
}
.main .main
{ {
overflow:hidden; overflow:hidden;
@ -109,20 +115,37 @@ .content
padding-left:1.5em; padding-left:1.5em;
} }
.content blockquote p
{
background-color:#f8f8f8;
padding:0.5em 1em;
border-left:3px solid #E3591E;
text-shadow:1px 1px 0 #fff;
font-style:italic;
margin:3em 0;
}
.content p
{
line-height:1.6em;
margin:1.5em 0;
}
.content>h1 { .content>h1 {
font-size: 18pt; font-size: 18pt;
} }
.content>h2 { .content>h2 {
font-size: 16pt; font-size: 14pt;
margin-top:2.2em;
} }
.content>h3 { .content>h3 {
font-size: 14pt; font-size: 12pt;
} }
.content>h4 { .content>h4 {
font-size: 12pt; font-size: 10pt;
} }
.content>h1:not(:first-child) { .content>h1:not(:first-child) {
@ -163,6 +186,19 @@ .sidebar>ul li:before
margin-right:0.2em; margin-right:0.2em;
} }
.sidebar>ul ul
{
list-style-type:none;
margin:0 0 0 1.5em;
padding:0;
}
.sidebar>ul ul>li:before
{
content:"\2013";
margin-right:0.4em;
}
pre, code pre, code
{ {
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -14,7 +14,7 @@
<h1>Laravel</h1> <h1>Laravel</h1>
<h2>A Framework For Web Artisans</h2> <h2>A Framework For Web Artisans</h2>
<p> <p class="intro-text">
You have successfully installed the Laravel framework. Laravel is a simple framework You have successfully installed the Laravel framework. Laravel is a simple framework
that helps web artisans create beautiful, creative applications using elegant, expressive that helps web artisans create beautiful, creative applications using elegant, expressive
syntax. You'll love using it. syntax. You'll love using it.

44
public/bundles/docs/css/style.css Normal file → Executable file
View File

@ -64,7 +64,7 @@ body
.wrapper .wrapper
{ {
width:760px; width:760px;
margin:2em auto; margin:0 auto 5em auto;
} }
.wrapper>header .wrapper>header
@ -74,6 +74,7 @@ .wrapper>header
background-repeat:no-repeat; background-repeat:no-repeat;
background-position:right; background-position:right;
text-shadow:1px 1px 0px #fff; text-shadow:1px 1px 0px #fff;
padding-top:2.5em;
} }
.wrapper>header h1 .wrapper>header h1
@ -96,6 +97,11 @@ .slogan
font-size:0.8em; font-size:0.8em;
} }
.intro-text
{
width:480px;
}
.main .main
{ {
overflow:hidden; overflow:hidden;
@ -109,20 +115,37 @@ .content
padding-left:1.5em; padding-left:1.5em;
} }
.content blockquote p
{
background-color:#f8f8f8;
padding:0.5em 1em;
border-left:3px solid #E3591E;
text-shadow:1px 1px 0 #fff;
font-style:italic;
margin:3em 0;
}
.content p
{
line-height:1.6em;
margin:1.5em 0;
}
.content>h1 { .content>h1 {
font-size: 18pt; font-size: 18pt;
} }
.content>h2 { .content>h2 {
font-size: 16pt; font-size: 14pt;
margin-top:2.2em;
} }
.content>h3 { .content>h3 {
font-size: 14pt; font-size: 12pt;
} }
.content>h4 { .content>h4 {
font-size: 12pt; font-size: 10pt;
} }
.content>h1:not(:first-child) { .content>h1:not(:first-child) {
@ -163,6 +186,19 @@ .sidebar>ul li:before
margin-right:0.2em; margin-right:0.2em;
} }
.sidebar>ul ul
{
list-style-type:none;
margin:0 0 0 1.5em;
padding:0;
}
.sidebar>ul ul>li:before
{
content:"\2013";
margin-right:0.4em;
}
pre, code pre, code
{ {
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;

BIN
public/bundles/docs/img/logoback.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
public/bundles/docs/js/modernizr-2.5.3.min.js vendored Normal file → Executable file
View File

0
public/bundles/docs/js/prettify.js Normal file → Executable file
View File