Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Move docs to master branch
- build with script/build-docs
- deploy with script/deploy-docs
  • Loading branch information
aanand committed Jan 27, 2014
1 parent 7c9c557 commit f60621e
Show file tree
Hide file tree
Showing 14 changed files with 588 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,4 +1,5 @@
*.egg-info
*.pyc
/dist
/_site
/docs/_site
/docs/.git-gh-pages
1 change: 1 addition & 0 deletions docs/.gitignore-gh-pages
@@ -0,0 +1 @@
/_site
10 changes: 10 additions & 0 deletions docs/Dockerfile
@@ -0,0 +1,10 @@
FROM stackbrew/ubuntu:13.10
RUN apt-get -qq update && apt-get install -y ruby1.8 bundler python
RUN locale-gen en_US.UTF-8
ADD Gemfile /code/
ADD Gemfile.lock /code/
WORKDIR /code
RUN bundle install
ADD . /code
EXPOSE 4000
CMD bundle exec jekyll build
3 changes: 3 additions & 0 deletions docs/Gemfile
@@ -0,0 +1,3 @@
source 'https://rubygems.org'

gem 'github-pages'
62 changes: 62 additions & 0 deletions docs/Gemfile.lock
@@ -0,0 +1,62 @@
GEM
remote: https://rubygems.org/
specs:
RedCloth (4.2.9)
blankslate (2.1.2.4)
classifier (1.3.3)
fast-stemmer (>= 1.0.0)
colorator (0.1)
commander (4.1.5)
highline (~> 1.6.11)
fast-stemmer (1.0.2)
ffi (1.9.3)
github-pages (12)
RedCloth (= 4.2.9)
jekyll (= 1.4.2)
kramdown (= 1.2.0)
liquid (= 2.5.4)
maruku (= 0.7.0)
rdiscount (= 2.1.7)
redcarpet (= 2.3.0)
highline (1.6.20)
jekyll (1.4.2)
classifier (~> 1.3)
colorator (~> 0.1)
commander (~> 4.1.3)
liquid (~> 2.5.2)
listen (~> 1.3)
maruku (~> 0.7.0)
pygments.rb (~> 0.5.0)
redcarpet (~> 2.3.0)
safe_yaml (~> 0.9.7)
toml (~> 0.1.0)
kramdown (1.2.0)
liquid (2.5.4)
listen (1.3.1)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
rb-kqueue (>= 0.2)
maruku (0.7.0)
parslet (1.5.0)
blankslate (~> 2.0)
posix-spawn (0.3.8)
pygments.rb (0.5.4)
posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.1.0)
rb-fsevent (0.9.4)
rb-inotify (0.9.3)
ffi (>= 0.5.0)
rb-kqueue (0.2.0)
ffi (>= 0.5.0)
rdiscount (2.1.7)
redcarpet (2.3.0)
safe_yaml (0.9.7)
toml (0.1.0)
parslet (~> 1.5.0)
yajl-ruby (1.1.0)

PLATFORMS
ruby

DEPENDENCIES
github-pages
1 change: 1 addition & 0 deletions docs/_config.yml
@@ -0,0 +1 @@
markdown: redcarpet
43 changes: 43 additions & 0 deletions docs/_layouts/default.html
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en-gb">
<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=Lilita+One|Lato:300,400' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/fig.css">
</head>
<body>
<div class="github-top top-notice">
<a href="https://github.com/orchardup/fig" class="btn btn-large">View on Github</a>
</div>

<div class="container">
<h1 class="logo">
<img src="img/logo.png">
Fig
</h1>

<iframe src="http://ghbtns.com/github-btn.html?user=orchardup&repo=fig&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://orchardup.github.io/fig/">Tweet</a>

<div class="content">{{ content }}</div>
</div>

<div class="github-bottom">
<a href="https://github.com/orchardup/fig" class="btn btn-large">View on Github</a>
</div>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-43996733-3', 'orchardup.github.io');
ga('send', 'pageview');

</script>
</body>
</html>
7 changes: 7 additions & 0 deletions docs/css/bootstrap.min.css

Large diffs are not rendered by default.

124 changes: 124 additions & 0 deletions docs/css/fig.css
@@ -0,0 +1,124 @@
body {
padding-top: 20px;
padding-bottom: 60px;
font-family: 'Lato', sans-serif;
font-weight: 300;
font-size: 18px;
color: #362;
}

h1, h2, h3, h4, h5, h6 {
font-family: 'Lato', sans-serif;
font-weight: 400;
color: #25594D;
}

h2, h3, h4, h5, h6 {
margin-top: 1.5em;
}

p {
margin: 20px 0;
}

a, a:hover, a:visited {
color: #4D9900;
text-decoration: underline;
}

pre, code {
border: none;
background: #D5E1B4;
}

code, pre code {
color: #484F40;
}

pre {
border-bottom: 2px solid #bec9a1;
font-size: 14px;
}

code {
font-size: 0.84em;
}

pre code {
background: none;
}

img {
max-width: 100%;
}

/* Customize container */
@media (min-width: 768px) {
.container {
max-width: 730px;
}
}

@media (min-width: 481px) {
.github-top {
position: absolute;
top: 0;
right: 0;
}
}

.content h1 {
display: none;
}

.logo {
text-align: center;
font-family: 'Lilita One', sans-serif;
font-size: 80px;
color: #a41211;
margin: 20px 0 40px 0;
}

.logo img {
width: 100px;
vertical-align: -17px;
}

@media (min-width: 481px) {
.logo {
font-size: 96px;
margin-top: 40px;
}
.logo img {
vertical-align: -40px;
width: 150px;
margin-right: 20px;
}
}

.github-top,
.github-bottom {
text-align: center;
}

.github-top {
margin: 30px;
}

.github-bottom {
margin: 60px 0;
}

a.btn {
background: #25594D;
color: white;
text-transform: uppercase;
text-decoration: none;
}

a.btn:hover {
color: white;
}



8 changes: 8 additions & 0 deletions docs/fig.yml
@@ -0,0 +1,8 @@
jekyll:
build: .
ports:
- 4000:4000
volumes:
- .:/code
environment:
- LANG=en_US.UTF-8
Binary file added docs/img/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f60621e

Please sign in to comment.