Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit 7b23d90

Browse files
authored
Merge pull request cloudfoundry#1938 from cloudfoundry/update_docs_middleman
Upgrade middleman et al. for v3 docs
2 parents b18b86d + d9f29ee commit 7b23d90

11 files changed

Lines changed: 121 additions & 142 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ docs/v3/node_modules
4747
docs/v3/node_modules/**/*
4848
docs/v3/source/version
4949
docs/v3/.rakeTasks
50+
docs/v3/.sass-cache
5051

5152
# YARD artifacts
5253
docs/v3/.yardoc

docs/v3/Gemfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
source 'http://rubygems.org'
22

33
gem 'json', '>= 2.3.0'
4-
gem 'middleman', '>= 3.4.1'
5-
gem 'middleman-autoprefixer', '>= 2.6.1'
4+
gem 'middleman', '~> 4.3'
5+
gem 'middleman-syntax', '2.1'
6+
gem 'middleman-autoprefixer', '~> 2.7'
7+
gem 'middleman-sprockets', '~> 4.1'
68
gem 'middleman-gh-pages', '>= 0.0.3'
79
gem 'middleman-livereload', '>= 3.4.6'
8-
gem 'middleman-syntax', '>= 2.0.0'
910
gem 'mini_racer'
10-
gem 'nokogiri'
11+
gem 'nokogiri', '~> 1.10.8'
1112
gem 'rake', '>= 12.3.3'
12-
gem 'redcarpet'
13-
gem 'rouge'
13+
gem 'redcarpet', '~> 3.5.0'
14+
gem 'sass'

docs/v3/Gemfile.lock

Lines changed: 87 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,163 +1,155 @@
11
GEM
22
remote: http://rubygems.org/
33
specs:
4-
activesupport (4.2.11.1)
5-
i18n (~> 0.7)
4+
activesupport (5.2.4.4)
5+
concurrent-ruby (~> 1.0, >= 1.0.2)
6+
i18n (>= 0.7, < 2)
67
minitest (~> 5.1)
7-
thread_safe (~> 0.3, >= 0.3.4)
88
tzinfo (~> 1.1)
9-
autoprefixer-rails (9.7.4)
9+
addressable (2.7.0)
10+
public_suffix (>= 2.0.2, < 5.0)
11+
autoprefixer-rails (9.8.6.5)
1012
execjs
11-
capybara (2.4.4)
12-
mime-types (>= 1.16)
13-
nokogiri (>= 1.3.3)
14-
rack (>= 1.0.0)
15-
rack-test (>= 0.5.4)
16-
xpath (~> 2.0)
17-
chunky_png (1.3.11)
13+
backports (3.18.2)
1814
coffee-script (2.4.1)
1915
coffee-script-source
2016
execjs
2117
coffee-script-source (1.12.2)
22-
compass (1.0.3)
23-
chunky_png (~> 1.2)
24-
compass-core (~> 1.0.2)
25-
compass-import-once (~> 1.0.5)
26-
rb-fsevent (>= 0.9.3)
27-
rb-inotify (>= 0.9)
28-
sass (>= 3.3.13, < 3.5)
29-
compass-core (1.0.3)
30-
multi_json (~> 1.0)
31-
sass (>= 3.3.0, < 3.5)
32-
compass-import-once (1.0.5)
33-
sass (>= 3.2, < 3.5)
34-
em-websocket (0.5.1)
18+
concurrent-ruby (1.1.7)
19+
contracts (0.13.0)
20+
dotenv (2.7.6)
21+
em-websocket (0.5.2)
3522
eventmachine (>= 0.12.9)
3623
http_parser.rb (~> 0.6.0)
3724
erubis (2.7.0)
3825
eventmachine (1.2.7)
3926
execjs (2.7.0)
40-
ffi (1.12.2)
41-
haml (5.1.2)
27+
fast_blank (1.0.0)
28+
fastimage (2.2.0)
29+
ffi (1.13.1)
30+
haml (5.2.0)
4231
temple (>= 0.8.0)
4332
tilt
44-
hike (1.2.3)
45-
hooks (0.4.1)
46-
uber (~> 0.0.14)
33+
hamster (3.0.0)
34+
concurrent-ruby (~> 1.0)
35+
hashie (3.6.0)
4736
http_parser.rb (0.6.0)
48-
i18n (0.7.0)
37+
i18n (0.9.5)
38+
concurrent-ruby (~> 1.0)
4939
json (2.3.1)
50-
kramdown (1.17.0)
40+
kramdown (2.3.0)
41+
rexml
5142
libv8 (8.4.255.0)
5243
listen (3.0.8)
5344
rb-fsevent (~> 0.9, >= 0.9.4)
5445
rb-inotify (~> 0.9, >= 0.9.7)
55-
middleman (3.4.1)
46+
memoist (0.16.2)
47+
middleman (4.3.11)
5648
coffee-script (~> 2.2)
57-
compass (>= 1.0.0, < 2.0.0)
58-
compass-import-once (= 1.0.5)
59-
execjs (~> 2.0)
6049
haml (>= 4.0.5)
61-
kramdown (~> 1.2)
62-
middleman-core (= 3.4.1)
63-
middleman-sprockets (>= 3.1.2)
64-
sass (>= 3.4.0, < 4.0)
65-
uglifier (~> 2.5)
50+
kramdown (>= 2.3.0)
51+
middleman-cli (= 4.3.11)
52+
middleman-core (= 4.3.11)
6653
middleman-autoprefixer (2.10.1)
6754
autoprefixer-rails (~> 9.1)
6855
middleman-core (>= 3.3.3)
69-
middleman-core (3.4.1)
70-
activesupport (~> 4.1)
71-
bundler (~> 1.1)
72-
capybara (~> 2.4.4)
56+
middleman-cli (4.3.11)
57+
thor (>= 0.17.0, < 2.0)
58+
middleman-core (4.3.11)
59+
activesupport (>= 4.2, < 6.0)
60+
addressable (~> 2.3)
61+
backports (~> 3.6)
62+
bundler
63+
contracts (~> 0.13.0)
64+
dotenv
7365
erubis
74-
hooks (~> 0.3)
75-
i18n (~> 0.7.0)
76-
listen (~> 3.0.3)
77-
padrino-helpers (~> 0.12.3)
78-
rack (>= 1.4.5, < 2.0)
79-
thor (>= 0.15.2, < 2.0)
80-
tilt (~> 1.4.1, < 2.0)
66+
execjs (~> 2.0)
67+
fast_blank
68+
fastimage (~> 2.0)
69+
hamster (~> 3.0)
70+
hashie (~> 3.4)
71+
i18n (~> 0.9.0)
72+
listen (~> 3.0.0)
73+
memoist (~> 0.14)
74+
padrino-helpers (~> 0.13.0)
75+
parallel
76+
rack (>= 1.4.5, < 3)
77+
sassc (~> 2.0)
78+
servolux
79+
tilt (~> 2.0.9)
80+
uglifier (~> 3.0)
8181
middleman-gh-pages (0.4.1)
8282
rake (> 0.9.3)
8383
middleman-livereload (3.4.6)
8484
em-websocket (~> 0.5.1)
8585
middleman-core (>= 3.3)
8686
rack-livereload (~> 0.3.15)
87-
middleman-sprockets (3.5.0)
88-
middleman-core (>= 3.3)
89-
sprockets (~> 2.12.1)
90-
sprockets-helpers (~> 1.1.0)
91-
sprockets-sass (~> 1.3.0)
92-
middleman-syntax (2.0.0)
93-
middleman-core (~> 3.2)
87+
middleman-sprockets (4.1.1)
88+
middleman-core (~> 4.0)
89+
sprockets (>= 3.0)
90+
middleman-syntax (2.1.0)
91+
middleman-core (>= 3.2)
9492
rouge (~> 1.0)
95-
mime-types (3.3.1)
96-
mime-types-data (~> 3.2015)
97-
mime-types-data (3.2019.1009)
9893
mini_portile2 (2.4.0)
9994
mini_racer (0.3.1)
10095
libv8 (~> 8.4.255)
101-
minitest (5.14.0)
102-
multi_json (1.14.1)
96+
minitest (5.14.2)
10397
nokogiri (1.10.10)
10498
mini_portile2 (~> 2.4.0)
105-
padrino-helpers (0.12.9)
99+
padrino-helpers (0.13.3.4)
106100
i18n (~> 0.6, >= 0.6.7)
107-
padrino-support (= 0.12.9)
101+
padrino-support (= 0.13.3.4)
108102
tilt (>= 1.4.1, < 3)
109-
padrino-support (0.12.9)
103+
padrino-support (0.13.3.4)
110104
activesupport (>= 3.1)
111-
rack (1.6.13)
105+
parallel (1.19.2)
106+
public_suffix (4.0.6)
107+
rack (2.2.3)
112108
rack-livereload (0.3.17)
113109
rack
114-
rack-test (1.1.0)
115-
rack (>= 1.0, < 3)
116110
rake (13.0.1)
117-
rb-fsevent (0.10.3)
111+
rb-fsevent (0.10.4)
118112
rb-inotify (0.10.1)
119113
ffi (~> 1.0)
120114
redcarpet (3.5.0)
115+
rexml (3.2.4)
121116
rouge (1.11.1)
122-
sass (3.4.25)
123-
sprockets (2.12.5)
124-
hike (~> 1.2)
125-
multi_json (~> 1.0)
126-
rack (~> 1.0)
127-
tilt (~> 1.1, != 1.3.0)
128-
sprockets-helpers (1.1.0)
129-
sprockets (~> 2.0)
130-
sprockets-sass (1.3.1)
131-
sprockets (~> 2.0)
132-
tilt (~> 1.1)
117+
sass (3.7.4)
118+
sass-listen (~> 4.0.0)
119+
sass-listen (4.0.0)
120+
rb-fsevent (~> 0.9, >= 0.9.4)
121+
rb-inotify (~> 0.9, >= 0.9.7)
122+
sassc (2.4.0)
123+
ffi (~> 1.9)
124+
servolux (0.13.0)
125+
sprockets (3.7.2)
126+
concurrent-ruby (~> 1.0)
127+
rack (> 1, < 3)
133128
temple (0.8.2)
134129
thor (1.0.1)
135130
thread_safe (0.3.6)
136-
tilt (1.4.1)
137-
tzinfo (1.2.6)
131+
tilt (2.0.10)
132+
tzinfo (1.2.7)
138133
thread_safe (~> 0.1)
139-
uber (0.0.15)
140-
uglifier (2.7.2)
141-
execjs (>= 0.3.0)
142-
json (>= 1.8.0)
143-
xpath (2.1.0)
144-
nokogiri (~> 1.3)
134+
uglifier (3.2.0)
135+
execjs (>= 0.3.0, < 3)
145136

146137
PLATFORMS
147138
ruby
148139

149140
DEPENDENCIES
150141
json (>= 2.3.0)
151-
middleman (>= 3.4.1)
152-
middleman-autoprefixer (>= 2.6.1)
142+
middleman (~> 4.3)
143+
middleman-autoprefixer (~> 2.7)
153144
middleman-gh-pages (>= 0.0.3)
154145
middleman-livereload (>= 3.4.6)
155-
middleman-syntax (>= 2.0.0)
146+
middleman-sprockets (~> 4.1)
147+
middleman-syntax (= 2.1)
156148
mini_racer
157-
nokogiri
149+
nokogiri (~> 1.10.8)
158150
rake (>= 12.3.3)
159-
redcarpet
160-
rouge
151+
redcarpet (~> 3.5.0)
152+
sass
161153

162154
BUNDLED WITH
163155
1.17.3

docs/v3/config.rb

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,25 @@
1515
set :images_dir, 'images'
1616
set :fonts_dir, 'fonts'
1717

18+
ignore 'includes/api_resources/examples/*.json'
19+
1820
# Activate the syntax highlighter
1921
activate :syntax
2022

23+
activate :sprockets
24+
25+
activate :autoprefixer do |config|
26+
config.browsers = ['last 2 version', 'Firefox ESR']
27+
config.cascade = false
28+
config.inline = true
29+
end
30+
2131
# Github pages require relative links
2232
activate :relative_assets
2333
set :relative_links, true
2434

2535
# Build Configuration
2636
configure :build do
27-
activate :autoprefixer do |config|
28-
config.browsers = ['last 2 version', 'Firefox ESR']
29-
config.cascade = false
30-
config.inline = true
31-
end
32-
3337
activate :minify_css
3438
activate :minify_javascript
3539
# activate :relative_assets

docs/v3/source/includes/api_resources/_security_groups.erb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@
4141
}
4242
<% end %>
4343

44-
<% content_for :paginated_security_group, File.read(__dir__ + '/examples/security_group_paginated.json') %>
44+
<% content_for :paginated_security_group, File.read('source/includes/api_resources/examples/security_group_paginated.json') %>
4545

46-
<% content_for :paginated_running_space_security_group, File.read(__dir__ + '/examples/space_running_security_group_paginated.json') %>
46+
<% content_for :paginated_running_space_security_group, File.read('source/includes/api_resources/examples/space_running_security_group_paginated.json') %>
4747

48-
<% content_for :paginated_staging_space_security_group, File.read(__dir__ + '/examples/space_staging_security_group_paginated.json') %>
48+
<% content_for :paginated_staging_space_security_group, File.read('source/includes/api_resources/examples/space_staging_security_group_paginated.json') %>
4949

50-
<% content_for :running_security_group_spaces, File.read(__dir__ + '/examples/running_security_group_spaces.json') %>
50+
<% content_for :running_security_group_spaces, File.read('source/includes/api_resources/examples/running_security_group_spaces.json') %>
5151

52-
<% content_for :staging_security_group_spaces, File.read(__dir__ + '/examples/staging_security_group_spaces.json') %>
52+
<% content_for :staging_security_group_spaces, File.read('source/includes/api_resources/examples/staging_security_group_spaces.json') %>
File renamed without changes.

docs/v3/source/layouts/layout.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ table_of_contents = extract_table_of_contents(html)
3333

3434
<%= stylesheet_link_tag :screen, media: :screen %>
3535
<%= stylesheet_link_tag :print, media: :print %>
36+
<style>
37+
<%= Rouge::Themes::Base16::Monokai.render(:scope => '.highlight') %>
38+
</style>
3639
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
3740

3841
<%= javascript_include_tag "all" %>
File renamed without changes.

docs/v3/source/stylesheets/_syntax.scss.erb

Lines changed: 0 additions & 27 deletions
This file was deleted.

docs/v3/source/stylesheets/print.css.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
@charset "utf-8";
22
@import 'normalize';
3-
@import 'compass';
43
@import 'variables';
54
@import 'icon-font';
65

0 commit comments

Comments
 (0)