Skip to content

Commit c1a38c1

Browse files
committed
Moving to Just the Docs Theme with O'Reilly Colors
This commit adds the Just the Docs theme and O'Reilly colors. The configuration and Sass code is taken from the Atlas Docs for consistency.
1 parent 0da9319 commit c1a38c1

File tree

5 files changed

+103
-0
lines changed

5 files changed

+103
-0
lines changed

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.3.6

Gemfile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
source "https://rubygems.org"
2+
# Hello! This is where you manage which Jekyll version is used to run.
3+
# When you want to use a different version, change it below, save the
4+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
5+
#
6+
# bundle exec jekyll serve
7+
#
8+
# This will help ensure the proper Jekyll version is running.
9+
# Happy Jekylling!
10+
# gem "jekyll", "~> 4.3.3"
11+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
12+
gem "minima", "~> 2.5"
13+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
14+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
15+
gem "github-pages", group: :jekyll_plugins
16+
# If you have any plugins, put them here!
17+
18+
19+
group :jekyll_plugins do
20+
gem "jekyll-feed", "~> 0.12"
21+
gem 'jekyll-asciidoc'
22+
gem "just-the-docs"
23+
end
24+
25+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
26+
# and associated library.
27+
platforms :mingw, :x64_mingw, :mswin, :jruby do
28+
gem "tzinfo", ">= 1", "< 3"
29+
gem "tzinfo-data"
30+
end
31+
32+
# Performance-booster for watching directories on Windows
33+
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
34+
35+
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
36+
# do not have a Java counterpart.
37+
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]

_config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
name: O'Reilly Production
22
markdown: kramdown
33
baseurl: http://oreillymedia.github.io/production-resources/
4+
5+
# Build settings
6+
theme: just-the-docs
7+
color_scheme: orm-colors
8+
search_enabled: true
9+
heading_anchors: true
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$link-color: #d3002d;

_sass/custom/custom.scss

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
.nowrap {
2+
white-space: nowrap;
3+
}
4+
5+
.hide {
6+
display:none;
7+
}
8+
9+
.implementation_notes {
10+
text-align:right;
11+
color: $link-color;
12+
margin-bottom: 0;
13+
padding: 5px 36px 5px 0;
14+
position: relative;
15+
svg {
16+
position: absolute;
17+
right:0;
18+
bottom:1px;
19+
width: 2rem;
20+
height: 2rem;
21+
padding: .5rem;
22+
transform: rotate(90deg);
23+
}
24+
svg.active {
25+
transform: rotate(-90deg);
26+
}
27+
&:hover {
28+
svg {
29+
background-color: #f5f6fa;
30+
}
31+
}
32+
33+
}
34+
.implementation_notes_container td {
35+
border-right: 1px solid $link-color;
36+
}
37+
38+
39+
h4 {
40+
color: $link-color;
41+
}
42+
.main-content h4 {
43+
margin-top: 3em;
44+
}
45+
46+
.eol {
47+
color: #3d3b49;
48+
}
49+
50+
.deprecated {
51+
color: $link-color;
52+
text-decoration: line-through;
53+
}
54+
55+
.main-content dl, dd, dt {
56+
display: block;
57+
text-align: left ! important;
58+
}

0 commit comments

Comments
 (0)