Skip to content
Browse files

Add footer and README

as well as some css tweaks, doc updates and a gitignore
  • Loading branch information...
1 parent e6d06be commit cfa07d9b66052ab2f99090c8782d1ff9941bc29e Simon Metson committed Feb 17, 2012
Showing with 43 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +2 −0 README.md
  3. +39 −3 _design/docs/_attachments/index.html
  4. +1 −1 _docs/index.json
View
1 .gitignore
@@ -0,0 +1 @@
+*.swp
View
2 README.md
@@ -0,0 +1,2 @@
+# Docs
+Docs is a couchapp used to view markdown documents. Documents with a "content" field are emitted in a view and that field is rendered in the page using pagedown.
View
42 _design/docs/_attachments/index.html
@@ -1,13 +1,41 @@
<html>
<head>
<title>Docs</title>
+
<style>
+ html, body {
+ height: 100%;
+ }
body{
padding: 0px;
margin: 0px;
font-family:Baskerville, Georgia,Utopia,Palatino,'Palatino Linotype',serif;
}
- #nav,#loader{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}
+ footer {
+ padding: 18px;
+ background: #333;
+ border-top: 1px solid #eee;
+ color: #eee;
+ margin-left:251px;
+ margin-bottom: 0px;
+ text-align: center;
+ font-weight: 100;
+ }
+ footer a{
+ color: #ddd;
+ font-weight: 400;
+ height: 63px;
+ }
+ .wrapper {
+ min-height: 100%;
+ height: auto !important;
+ height: 100%;
+ margin: 0 auto -55px;
+ }
+ .push {
+ height: 55px;
+ }
+ #nav,footer{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}
a{color:#369}
#header{
border-bottom:1px solid #ccc;
@@ -82,7 +110,11 @@
background:#ddd;background:rgba(0,0,0,0.05)
}
- #content{margin:0 0 0 290px;padding:0px 0 20px;min-height:100px;max-width:688px;}
+ #content{
+ margin: 0px 290px;
+ padding: 25px 0px 120px;
+ max-width:688px;
+ }
#content h1,#content h2,#content h3,#content h4,#content h5,#content h6{
font-weight:normal;
color:#333;
@@ -135,7 +167,11 @@
</head>
<body>
<div id="nav"></div>
- <div id="content"></div>
+ <div class="wrapper">
+ <div id="content"></div>
+ <div class="push"><!--//--></div>
+ </div>
+ <footer>Fork Docs on <a href="https://github.com/drsm79/docs">github</a></footer>
</body>
</html>
View
2 _docs/index.json
@@ -1 +1 @@
-{"_id":"index", "content":"#Welcome!\nThe content of this document is Markdown stored as json in CouchDB. The markdown is then rendered in the browser using [pagedown](http://code.google.com/p/pagedown/). The table of contents on the left is generated from the h1, h2 and h3 elements in the resulting HTML.\n## What now?\nRead some [lorem impsum](?doc=ipsum)"}
+{"_id":"index", "content":"#Welcome!\nThe content of this document is Markdown stored as json in CouchDB. The markdown is then rendered in the browser using [pagedown](http://code.google.com/p/pagedown/). The table of contents on the left is generated from the h1, h2 and h3 elements in the resulting HTML.The CSS is somewhat inspired/cloned from http://documentup.com/ - imitation is the sincerest form of flattery.\n## What now?\nRead some [lorem impsum](?doc=ipsum)"}

0 comments on commit cfa07d9

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