Skip to content

Commit bb2beb9

Browse files
committed
First commit
0 parents  commit bb2beb9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+15582
-0
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# Top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
indent_style = space
11+
indent_size = 2
12+
trim_trailing_whitespace = true
13+
14+
[*.rb]
15+
charset = utf-8
16+
17+
[*.md]
18+
trim_trailing_whitespace = false

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
*.gem
2+
*.rbc
3+
.bundle
4+
.config
5+
coverage
6+
InstalledFiles
7+
lib/bundler/man
8+
pkg
9+
rdoc
10+
spec/reports
11+
test/tmp
12+
test/version_tmp
13+
tmp
14+
*.DS_STORE
15+
build/
16+
.cache
17+
.vagrant
18+
.sass-cache
19+
20+
# YARD artifacts
21+
.yardoc
22+
_yardoc
23+
doc/
24+
.idea/

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
sudo: false
2+
3+
language: ruby
4+
5+
rvm:
6+
- 2.3.3
7+
- 2.4.0
8+
9+
cache: bundler
10+
script: bundle exec middleman build

Gemfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
ruby '>=2.3.1'
2+
source 'https://rubygems.org'
3+
4+
# Middleman
5+
gem 'middleman', '~>4.2.1'
6+
gem 'middleman-syntax', '~> 3.0.0'
7+
gem 'middleman-autoprefixer', '~> 2.7.0'
8+
gem 'middleman-sprockets', '~> 4.1.0'
9+
gem 'rouge', '~> 2.0.5'
10+
gem 'redcarpet', '~> 3.4.0'
11+
gem 'nokogiri', '~> 1.8.2'

Gemfile.lock

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (5.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+
autoprefixer-rails (6.6.1)
12+
execjs
13+
backports (3.6.8)
14+
coffee-script (2.4.1)
15+
coffee-script-source
16+
execjs
17+
coffee-script-source (1.12.2)
18+
compass-import-once (1.0.5)
19+
sass (>= 3.2, < 3.5)
20+
concurrent-ruby (1.0.5)
21+
contracts (0.13.0)
22+
dotenv (2.2.0)
23+
erubis (2.7.0)
24+
execjs (2.7.0)
25+
fast_blank (1.0.0)
26+
fastimage (2.0.1)
27+
addressable (~> 2)
28+
ffi (1.9.17)
29+
haml (4.0.7)
30+
tilt
31+
hamster (3.0.0)
32+
concurrent-ruby (~> 1.0)
33+
hashie (3.5.1)
34+
i18n (0.7.0)
35+
kramdown (1.13.2)
36+
listen (3.0.8)
37+
rb-fsevent (~> 0.9, >= 0.9.4)
38+
rb-inotify (~> 0.9, >= 0.9.7)
39+
memoist (0.15.0)
40+
middleman (4.2.1)
41+
coffee-script (~> 2.2)
42+
compass-import-once (= 1.0.5)
43+
haml (>= 4.0.5)
44+
kramdown (~> 1.2)
45+
middleman-cli (= 4.2.1)
46+
middleman-core (= 4.2.1)
47+
sass (>= 3.4.0, < 4.0)
48+
middleman-autoprefixer (2.7.1)
49+
autoprefixer-rails (>= 6.5.2, < 7.0.0)
50+
middleman-core (>= 3.3.3)
51+
middleman-cli (4.2.1)
52+
thor (>= 0.17.0, < 2.0)
53+
middleman-core (4.2.1)
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-sprockets (4.1.0)
77+
middleman-core (~> 4.0)
78+
sprockets (>= 3.0)
79+
middleman-syntax (3.0.0)
80+
middleman-core (>= 3.2)
81+
rouge (~> 2.0)
82+
mini_portile2 (2.3.0)
83+
minitest (5.10.1)
84+
nokogiri (1.8.2)
85+
mini_portile2 (~> 2.3.0)
86+
padrino-helpers (0.13.3.3)
87+
i18n (~> 0.6, >= 0.6.7)
88+
padrino-support (= 0.13.3.3)
89+
tilt (>= 1.4.1, < 3)
90+
padrino-support (0.13.3.3)
91+
activesupport (>= 3.1)
92+
parallel (1.10.0)
93+
public_suffix (2.0.5)
94+
rack (2.0.5)
95+
rb-fsevent (0.9.8)
96+
rb-inotify (0.9.8)
97+
ffi (>= 0.5.0)
98+
redcarpet (3.4.0)
99+
rouge (2.0.7)
100+
sass (3.4.23)
101+
servolux (0.12.0)
102+
sprockets (3.7.2)
103+
concurrent-ruby (~> 1.0)
104+
rack (> 1, < 3)
105+
thor (0.19.4)
106+
thread_safe (0.3.5)
107+
tilt (2.0.6)
108+
tzinfo (1.2.2)
109+
thread_safe (~> 0.1)
110+
uglifier (3.0.4)
111+
execjs (>= 0.3.0, < 3)
112+
113+
PLATFORMS
114+
ruby
115+
116+
DEPENDENCIES
117+
middleman (~> 4.2.1)
118+
middleman-autoprefixer (~> 2.7.0)
119+
middleman-sprockets (~> 4.1.0)
120+
middleman-syntax (~> 3.0.0)
121+
nokogiri (~> 1.8.2)
122+
redcarpet (~> 3.4.0)
123+
rouge (~> 2.0.5)
124+
125+
RUBY VERSION
126+
ruby 2.3.3p222
127+
128+
BUNDLED WITH
129+
1.15.4

LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2008-2013 Concur Technologies, Inc.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License"); you may
4+
not use this file except in compliance with the License. You may obtain
5+
a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11+
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12+
License for the specific language governing permissions and limitations
13+
under the License.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
### WooCommerce Memberships REST API documentation

Vagrantfile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Vagrant.configure(2) do |config|
2+
config.vm.box = "ubuntu/trusty64"
3+
config.vm.network :forwarded_port, guest: 4567, host: 4567
4+
config.vm.provider "virtualbox" do |vb|
5+
vb.memory = "2048"
6+
end
7+
8+
config.vm.provision "bootstrap",
9+
type: "shell",
10+
inline: <<-SHELL
11+
sudo apt-add-repository ppa:brightbox/ruby-ng
12+
sudo apt-get update
13+
sudo apt-get install -yq ruby2.4 ruby2.4-dev
14+
sudo apt-get install -yq pkg-config build-essential nodejs git libxml2-dev libxslt-dev
15+
sudo apt-get autoremove -yq
16+
gem2.4 install --no-ri --no-rdoc bundler
17+
SHELL
18+
19+
# add the local user git config to the vm
20+
config.vm.provision "file", source: "~/.gitconfig", destination: ".gitconfig"
21+
22+
config.vm.provision "install",
23+
type: "shell",
24+
privileged: false,
25+
inline: <<-SHELL
26+
echo "=============================================="
27+
echo "Installing app dependencies"
28+
cd /vagrant
29+
bundle config build.nokogiri --use-system-libraries
30+
bundle install
31+
SHELL
32+
33+
config.vm.provision "run",
34+
type: "shell",
35+
privileged: false,
36+
run: "always",
37+
inline: <<-SHELL
38+
echo "=============================================="
39+
echo "Starting up middleman at http://localhost:4567"
40+
echo "If it does not come up, check the ~/middleman.log file for any error messages"
41+
cd /vagrant
42+
bundle exec middleman server --watcher-force-polling --watcher-latency=1 &> ~/middleman.log &
43+
SHELL
44+
end

config.rb

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Unique header generation
2+
require './lib/unique_head.rb'
3+
4+
# Markdown
5+
set :markdown_engine, :redcarpet
6+
set :markdown,
7+
fenced_code_blocks: true,
8+
smartypants: true,
9+
disable_indented_code_blocks: true,
10+
prettify: true,
11+
strikethrough: true,
12+
tables: true,
13+
with_toc_data: true,
14+
no_intra_emphasis: true,
15+
renderer: UniqueHeadCounter
16+
17+
# Assets
18+
set :css_dir, 'stylesheets'
19+
set :js_dir, 'javascripts'
20+
set :images_dir, 'images'
21+
set :fonts_dir, 'fonts'
22+
23+
# Activate the syntax highlighter
24+
activate :syntax
25+
ready do
26+
require './lib/multilang.rb'
27+
end
28+
29+
activate :sprockets
30+
31+
activate :autoprefixer do |config|
32+
config.browsers = ['last 2 version', 'Firefox ESR']
33+
config.cascade = false
34+
config.inline = true
35+
end
36+
37+
# Github pages require relative links
38+
activate :relative_assets
39+
set :relative_links, true
40+
41+
# Build Configuration
42+
configure :build do
43+
# If you're having trouble with Middleman hanging, commenting
44+
# out the following two lines has been known to help
45+
activate :minify_css
46+
activate :minify_javascript
47+
# activate :relative_assets
48+
# activate :asset_hash
49+
# activate :gzip
50+
end
51+
52+
# Deploy Configuration
53+
# If you want Middleman to listen on a different port, you can set that below
54+
set :port, 4567
55+
56+
helpers do
57+
require './lib/toc_data.rb'
58+
end

0 commit comments

Comments
 (0)