From 686f83ae8eee4d9c2e0e144d6ac90a8b616b7f7e Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 2 Apr 2012 09:47:30 -0500 Subject: [PATCH] working on offline docs. --- application/routes.php | 2 +- bundles/docs/public/css/style.css | 60 +- bundles/docs/views/home.blade.php | 12 +- bundles/docs/views/menu.blade.php | 5 +- public/bundles/docs/css/style.css | 255 +++ public/bundles/docs/img/logoback.png | Bin 0 -> 8476 bytes public/bundles/docs/js/modernizr-2.5.3.min.js | 4 + public/bundles/docs/js/prettify.js | 1477 +++++++++++++++++ storage/views/.gitignore | 2 + 9 files changed, 1790 insertions(+), 27 deletions(-) create mode 100644 public/bundles/docs/css/style.css create mode 100644 public/bundles/docs/img/logoback.png create mode 100644 public/bundles/docs/js/modernizr-2.5.3.min.js create mode 100644 public/bundles/docs/js/prettify.js diff --git a/application/routes.php b/application/routes.php index 72c5362a..91d17aa9 100644 --- a/application/routes.php +++ b/application/routes.php @@ -35,7 +35,7 @@ Route::get('/', function() { - return Redirect::to('docs'); + return View::make('home.index'); }); /* diff --git a/bundles/docs/public/css/style.css b/bundles/docs/public/css/style.css index 8dc76e05..2263f33d 100644 --- a/bundles/docs/public/css/style.css +++ b/bundles/docs/public/css/style.css @@ -55,9 +55,10 @@ td { vertical-align: top; } body { - font-family: 'Droid Sans', sans-serif; - font-size:11pt; + font-family:'Ubuntu', sans-serif; + font-size:10pt; color:#555; + line-height: 25px; } .wrapper @@ -77,14 +78,17 @@ .wrapper>header .wrapper>header h1 { - color:#222; - margin:0; + font-size: 28pt; + font-family: 'Ubuntu'; + margin: 0 0 10px 0; + letter-spacing: 2px; } .wrapper>header h2 { margin:0; color:#888; + letter-spacing: 2px; } .slogan @@ -97,13 +101,6 @@ .main overflow:hidden; } -.sidebar -{ - width:180px; - float:left; - font-size:0.9em; -} - .content { width:540px; @@ -112,6 +109,26 @@ .content padding-left:1.5em; } +.content>h1 { + font-size: 18pt; +} + +.content>h2 { + font-size: 16pt; +} + +.content>h3 { + font-size: 14pt; +} + +.content>h4 { + font-size: 12pt; +} + +.content>h1:not(:first-child) { + margin-top: 30px; +} + a, a:visited { color:#2972A3; @@ -124,21 +141,22 @@ a:hover text-decoration:underline; } -.menu +.sidebar { - list-style-type:none; - margin:0; - padding:0; + width:180px; + float:left; + font-size:0.9em; } -.menu ul +.sidebar ul { list-style-type:none; padding-left:1em; margin:0; + padding: 0; } -.menu ul li:before +.sidebar ul li:before { content:"\2013"; text-decoration:none; @@ -176,27 +194,34 @@ code .com { color: #93a1a1; } + .lit { color: #195f91; } + .pun, .opn, .clo { color: #93a1a1; } + .fun { color: #dc322f; } + .str, .atv { color: #D14; } + .kwd, .linenums .tag { color: #1e347b; } + .typ, .atn, .dec, .var { color: teal; } + .pln { color: #48484c; } @@ -212,7 +237,6 @@ .prettyprint ol color:#ccc; } - /* end ------------------------ */ @media print { diff --git a/bundles/docs/views/home.blade.php b/bundles/docs/views/home.blade.php index 1a0cfca2..86670159 100644 --- a/bundles/docs/views/home.blade.php +++ b/bundles/docs/views/home.blade.php @@ -1,26 +1,28 @@ @layout('docs::template') @section('content') -

Learn the terrain.

+

Learn the terrain.

- You've landed yourself on our default home page. The route that - is generating this page lives at: + You've landed yourself on our default home page. The route that + is generating this page lives in the main routes file. You can + find it here:

APP_PATH/routes.php
+

And the view sitting before you can be found at:

APP_PATH/views/home/index.php
-

Create something beautiful.

+

Create something beautiful.

Now that you're up and running, it's time to start creating! diff --git a/bundles/docs/views/menu.blade.php b/bundles/docs/views/menu.blade.php index d2359218..164556da 100644 --- a/bundles/docs/views/menu.blade.php +++ b/bundles/docs/views/menu.blade.php @@ -1,5 +1,5 @@ -

Documentation

-