Skip to content

Commit 17818a1

Browse files
committed
Base site
1 parent 6a879b1 commit 17818a1

25 files changed

+4231
-53
lines changed

.gitignore

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile ~/.gitignore_global
6+
7+
# Ignore bundler config
8+
/.bundle
9+
10+
# Ignore the build directory
11+
/build
12+
13+
# Ignore cache
14+
/.sass-cache
15+
/.cache
16+
17+
# Ignore .DS_store file
18+
.DS_Store

Gemfile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# If you do not have OpenSSL installed, change
2+
# the following line to use 'http://'
3+
source 'https://rubygems.org'
4+
5+
# For faster file watcher updates on Windows:
6+
gem 'wdm', '~> 0.1.0', platforms: [:mswin, :mingw]
7+
8+
# Windows does not come with time zone data
9+
gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby]
10+
11+
# Middleman Gems
12+
gem 'middleman', '>= 4.0.0'
13+
gem 'middleman-livereload'
14+
gem 'middleman-syntax'
15+
gem 'redcarpet'

Gemfile.lock

+122
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (5.0.0.1)
5+
concurrent-ruby (~> 1.0, >= 1.0.2)
6+
i18n (~> 0.7)
7+
minitest (~> 5.1)
8+
tzinfo (~> 1.1)
9+
addressable (2.5.0)
10+
public_suffix (~> 2.0, >= 2.0.2)
11+
backports (3.6.8)
12+
coffee-script (2.4.1)
13+
coffee-script-source
14+
execjs
15+
coffee-script-source (1.10.0)
16+
compass-import-once (1.0.5)
17+
sass (>= 3.2, < 3.5)
18+
concurrent-ruby (1.0.2)
19+
contracts (0.13.0)
20+
dotenv (2.1.1)
21+
em-websocket (0.5.1)
22+
eventmachine (>= 0.12.9)
23+
http_parser.rb (~> 0.6.0)
24+
erubis (2.7.0)
25+
eventmachine (1.2.1)
26+
execjs (2.7.0)
27+
fast_blank (1.0.0)
28+
fastimage (2.0.1)
29+
addressable (~> 2)
30+
ffi (1.9.14)
31+
haml (4.0.7)
32+
tilt
33+
hamster (3.0.0)
34+
concurrent-ruby (~> 1.0)
35+
hashie (3.4.6)
36+
http_parser.rb (0.6.0)
37+
i18n (0.7.0)
38+
kramdown (1.12.0)
39+
listen (3.0.8)
40+
rb-fsevent (~> 0.9, >= 0.9.4)
41+
rb-inotify (~> 0.9, >= 0.9.7)
42+
memoist (0.15.0)
43+
middleman (4.1.11)
44+
coffee-script (~> 2.2)
45+
compass-import-once (= 1.0.5)
46+
haml (>= 4.0.5)
47+
kramdown (~> 1.2)
48+
middleman-cli (= 4.1.11)
49+
middleman-core (= 4.1.11)
50+
sass (>= 3.4.0, < 4.0)
51+
middleman-cli (4.1.11)
52+
thor (>= 0.17.0, < 2.0)
53+
middleman-core (4.1.11)
54+
activesupport (>= 4.2, < 5.1)
55+
addressable (~> 2.3)
56+
backports (~> 3.6)
57+
bundler (~> 1.1)
58+
contracts (~> 0.13.0)
59+
dotenv
60+
erubis
61+
execjs (~> 2.0)
62+
fast_blank
63+
fastimage (~> 2.0)
64+
hamster (~> 3.0)
65+
hashie (~> 3.4)
66+
i18n (~> 0.7.0)
67+
listen (~> 3.0.0)
68+
memoist (~> 0.14)
69+
padrino-helpers (~> 0.13.0)
70+
parallel
71+
rack (>= 1.4.5, < 3)
72+
sass (>= 3.4)
73+
servolux
74+
tilt (~> 2.0)
75+
uglifier (~> 3.0)
76+
middleman-livereload (3.4.6)
77+
em-websocket (~> 0.5.1)
78+
middleman-core (>= 3.3)
79+
rack-livereload (~> 0.3.15)
80+
middleman-syntax (3.0.0)
81+
middleman-core (>= 3.2)
82+
rouge (~> 2.0)
83+
minitest (5.9.1)
84+
padrino-helpers (0.13.3.3)
85+
i18n (~> 0.6, >= 0.6.7)
86+
padrino-support (= 0.13.3.3)
87+
tilt (>= 1.4.1, < 3)
88+
padrino-support (0.13.3.3)
89+
activesupport (>= 3.1)
90+
parallel (1.9.0)
91+
public_suffix (2.0.4)
92+
rack (2.0.1)
93+
rack-livereload (0.3.16)
94+
rack
95+
rb-fsevent (0.9.8)
96+
rb-inotify (0.9.7)
97+
ffi (>= 0.5.0)
98+
redcarpet (3.3.4)
99+
rouge (2.0.7)
100+
sass (3.4.22)
101+
servolux (0.12.0)
102+
thor (0.19.1)
103+
thread_safe (0.3.5)
104+
tilt (2.0.5)
105+
tzinfo (1.2.2)
106+
thread_safe (~> 0.1)
107+
uglifier (3.0.3)
108+
execjs (>= 0.3.0, < 3)
109+
110+
PLATFORMS
111+
ruby
112+
113+
DEPENDENCIES
114+
middleman (>= 4.0.0)
115+
middleman-livereload
116+
middleman-syntax
117+
redcarpet
118+
tzinfo-data
119+
wdm (~> 0.1.0)
120+
121+
BUNDLED WITH
122+
1.13.2

config.rb

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
###
2+
# Page options, layouts, aliases and proxies
3+
###
4+
5+
# Per-page layout changes:
6+
#
7+
# With no layout
8+
page '/*.xml', layout: false
9+
page '/*.json', layout: false
10+
page '/*.txt', layout: false
11+
12+
# With alternative layout
13+
# page "/path/to/file.html", layout: :otherlayout
14+
15+
# Proxy pages (http://middlemanapp.com/basics/dynamic-pages/)
16+
# proxy "/this-page-has-no-template.html", "/template-file.html", locals: {
17+
# which_fake_page: "Rendering a fake page with a local variable" }
18+
19+
# General configuration
20+
21+
# Reload the browser automatically whenever files change
22+
configure :development do
23+
activate :livereload
24+
end
25+
26+
###
27+
# Helpers
28+
###
29+
30+
# Methods defined in the helpers block are available in templates
31+
# helpers do
32+
# def some_helper
33+
# "Helping"
34+
# end
35+
# end
36+
37+
# Build-specific configuration
38+
configure :build do
39+
# Minify CSS on build
40+
# activate :minify_css
41+
42+
# Minify Javascript on build
43+
# activate :minify_javascript
44+
end
45+
46+
activate :syntax
47+
48+
set :markdown_engine, :redcarpet
49+
set :markdown, fenced_code_blocks: true, smartypants: true

config.ru

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
require 'middleman-core/load_paths'
2+
::Middleman.setup_load_paths
3+
4+
require 'middleman-core'
5+
require 'middleman-core/rack'
6+
7+
require 'fileutils'
8+
FileUtils.mkdir('log') unless File.exist?('log')
9+
::Middleman::Logger.singleton("log/#{ENV['RACK_ENV']}.log")
10+
11+
app = ::Middleman::Application.new
12+
13+
run ::Middleman::Rack.new(app).to_app

guides/getting_started/producing.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Getting started
2+
3+
## Producing JSON API documents
4+
5+
### Defining serializable resources
6+
7+
### Rendering documents
8+

guides/introduction.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Introduction
2+
3+
- produce *and* consume
4+
- intuitive DSLs

index.md

-16
This file was deleted.

peeks/serializable.rb

-33
This file was deleted.

source/_footer.erb

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<div class="footer">
2+
<div class="container">
3+
<div class="row">
4+
<div class="col-sm-3 m-b">
5+
<ul class="list-unstyled list-spaced">
6+
<li><h6 class="text-uppercase">Project</h6></li>
7+
<li><a href="https://github.com/jsonapi-rb" target="_blank">GitHub</a></li>
8+
<li><a href="https://rubygems.org/gems/jsonapi-rb" target="_blank">Rubygems</a></li>
9+
</ul>
10+
</div>
11+
<div class="col-sm-3 m-b">
12+
<ul class="list-unstyled list-spaced">
13+
<li><h6 class="text-uppercase">Community</h6></li>
14+
<li><a href="https://gitter.im/jsonapi-rb" target="_blank">Chat</a></li>
15+
<li><a href="https://stackoverflow.com/questions/tagged/jsonapi-rb" target="_blank">StackOverflow</a></li>
16+
</ul>
17+
</div>
18+
<div class="col-sm-6">
19+
<h6 class="text-uppercase">About</h6>
20+
<p>
21+
jsonapi-rb is a <a href="http://jsonapi.org">JSON API</a> framework for ruby &mdash; &copy; 2016-<%= Time.now.year %> <a href="http://lucashosseini.com" target="_blank">Lucas Hosseini</a>.<br>
22+
Released under the <a href="https://opensource.org/licenses/MIT" target="_blank">MIT License</a>.
23+
</p>
24+
</div>
25+
</div>
26+
</div>
27+
</div>

source/_navbar.erb

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<nav class="navbar navbar-default navbar-static-top navbar-padded text-uppercase app-navbar">
2+
<div class="container">
3+
<div class="navbar-header">
4+
<button type="button" class="navbar-toggle collapsed p-x-0" data-toggle="collapse" data-target="#navbar-collapse">
5+
<span class="sr-only">Toggle navigation</span>
6+
<span class="icon-bar"></span>
7+
<span class="icon-bar"></span>
8+
<span class="icon-bar"></span>
9+
</button>
10+
<a class="navbar-brand" href="/">
11+
<span>jsonapi-rb</span>
12+
</a>
13+
</div>
14+
<div class="navbar-collapse collapse" id="navbar-collapse">
15+
<ul class="nav navbar-nav navbar-right">
16+
<li>
17+
<a href="/guides">Guides</a>
18+
</li>
19+
<li>
20+
<a href="https://github.com/jsonapi-rb" target="_blank">Source Code</a>
21+
</li>
22+
</ul>
23+
</div><!--/.nav-collapse -->
24+
</div>
25+
</nav>

source/guides/index.html.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: Guides
3+
---
4+
Soon

source/images/middleman-logo.svg

+1
Loading

0 commit comments

Comments
 (0)