Skip to content

Commit c86b0d1

Browse files
committed
Merge remote-tracking branch 'upstream/master' into pull-upstream
2 parents e8b6c6f + de49684 commit c86b0d1

34 files changed

Lines changed: 9824 additions & 10557 deletions

.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

.github/ISSUE_TEMPLATE.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1-
If this is a question or feature request, make sure to:
1+
<!--
2+
⚠️ READ THIS BEFORE SUBMITTING ⚠️
23
3-
- [ ] The title starts with `Question:` or `Feature:`.
4+
Thanks for submitting a bug to Slate! If you've got a question about how to implement some feature, are encountering some unusual behavior in your fork of Slate, or if you want to chat, please start a new thread in our Spectrum community here! I monitor it for new threads, and it makes it easy for knowledgeable members of the community to help solve problems.
45
5-
If this is an bug report, not a question, make sure to:
6+
-> https://spectrum.chat/slate <-
67
7-
- [ ] I'm not running Windows (which is unsupported), or if I am, I can confirm this issue appears on another platform, or Vagrant.
8-
- [ ] This issue appears in the latest `dev` branch.
9-
- [ ] I've included my browser and Ruby version in this issue.
8+
If you've found a bug with Slate upstream that you're still encountering even in a lightly modified Slate, you're in the right place! Please fill out the form below with the issue you're having and we'll take a look. :)
9+
-->
10+
11+
Operating system: ✍️ TODO
12+
Last upstream commit (run `git log --author="Robert Lord" | head -n 1`): ✍️ TODO
13+
Browser version(s): ✍️ TODO
14+
Ruby version (run `ruby -v`): ✍️ TODO
15+
16+
---
17+
18+
✍️ TODO write your issue here

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
!!!!! STOP AND READ !!!!!
1+
<!--
2+
⚠️ 🚨 ⚠️ STOP AND READ THIS ⚠️ 🚨 ⚠️
23
3-
If the dropdown above says "base fork: lord/master", you are submitting your change to ALL USERS OF SLATE, not just your company. This is probably not what you want. Click "base fork" to change it to the right place.
4-
5-
If you're actually trying to submit a change to upstream Slate, please submit to our dev branch, PRs sent to the master branch are generally rejected.
4+
👆👆 see that 'base fork' dropdown above? You should change it! The default value of "lord/slate" submits your change to ALL USERS OF SLATE, not just your company. This is PROBABLY NOT WHAT YOU WANT.
5+
-->

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ sudo: false
33
language: ruby
44

55
rvm:
6-
- 2.2.5
76
- 2.3.3
87
- 2.4.0
98

CHANGELOG.md

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,71 @@
11
# Changelog
22

3-
## Version 1.5.0
3+
## Version 2.3.1
4+
5+
*July 5, 2018*
6+
7+
- Update `sprockets` in `Gemfile.lock` to fix security warnings
8+
9+
## Version 2.3
10+
11+
*July 5, 2018*
12+
13+
- Allows strikethrough in markdown by default.
14+
- Upgrades jQuery to 3.2.1, thanks to [Tomi Takussaari](https://github.com/TomiTakussaari)
15+
- Fixes invalid HTML in `layout.erb`, thanks to [Eric Scouten](https://github.com/scouten) for pointing out
16+
- Hopefully fixes Vagrant memory issues, thanks to [Petter Blomberg](https://github.com/p-blomberg) for the suggestion
17+
- Cleans HTML in headers before setting `document.title`, thanks to [Dan Levy](https://github.com/justsml)
18+
- Allows trailing whitespace in markdown files, thanks to [Samuel Cousin](https://github.com/kuzyn)
19+
- Fixes pushState/replaceState problems with scrolling not changing the document hash, thanks to [Andrey Fedorov](https://github.com/anfedorov)
20+
- Removes some outdated examples, thanks [@al-tr](https://github.com/al-tr), [Jerome Dahdah](https://github.com/jdahdah), and [Ricardo Castro](https://github.com/mccricardo)
21+
- Fixes `nav-padding` bug, thanks [Jerome Dahdah](https://github.com/jdahdah)
22+
- Code style fixes thanks to [Sebastian Zaremba](https://github.com/vassyz)
23+
- Nokogiri version bump thanks to [Grey Baker](https://github.com/greysteil)
24+
- Fix to default `index.md` text thanks to [Nick Busey](https://github.com/NickBusey)
25+
26+
Thanks to everyone who contributed to this release!
27+
28+
## Version 2.2
29+
30+
*January 19, 2018*
31+
32+
- Fixes bugs with some non-roman languages not generating unique headers
33+
- Adds editorconfig, thanks to [Jay Thomas](https://github.com/jaythomas)
34+
- Adds optional `NestingUniqueHeadCounter`, thanks to [Vladimir Morozov](https://github.com/greenhost87)
35+
- Small fixes to typos and language, thx [Emir Ribić](https://github.com/ribice), [Gregor Martynus](https://github.com/gr2m), and [Martius](https://github.com/martiuslim)!
36+
- Adds links to Spectrum chat for questions in README and ISSUE_TEMPLATE
37+
38+
## Version 2.1
39+
40+
*October 30, 2017*
41+
42+
- Right-to-left text stylesheet option, thanks to [Mohammad Hossein Rabiee](https://github.com/mhrabiee)
43+
- Fix for HTML5 history state bug, thanks to [Zach Toolson](https://github.com/ztoolson)
44+
- Small styling changes, typo fixes, small bug fixes from [Marian Friedmann](https://github.com/rnarian), [Ben Wilhelm](https://github.com/benwilhelm), [Fouad Matin](https://github.com/fouad), [Nicolas Bonduel](https://github.com/NicolasBonduel), [Christian Oliff](https://github.com/coliff)
45+
46+
Thanks to everyone who submitted PRs for this version!
47+
48+
## Version 2.0
49+
50+
*July 17, 2017*
51+
52+
- All-new statically generated table of contents
53+
- Should be much faster loading and scrolling for large pages
54+
- Smaller Javascript file sizes
55+
- Avoids the problem with the last link in the ToC not ever highlighting if the section was shorter than the page
56+
- Fixes control-click not opening in a new page
57+
- Automatically updates the HTML title as you scroll
58+
- Updated design
59+
- New default colors!
60+
- New spacings and sizes!
61+
- System-default typefaces, just like GitHub
62+
- Added search input delay on large corpuses to reduce lag
63+
- We even bumped the major version cause hey, why not?
64+
- Various small bug fixes
65+
66+
Thanks to everyone who helped debug or wrote code for this version! It was a serious community effort, and I couldn't have done it alone.
67+
68+
## Version 1.5
469

570
*February 23, 2017*
671

@@ -9,7 +74,7 @@
974
- Switch default code highlighting color scheme to better highlight JSON
1075
- Various small typo and bug fixes
1176

12-
## Version 1.4.0
77+
## Version 1.4
1378

1479
*November 24, 2016*
1580

CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at hello@lord.io. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
ruby '>=2.3.1'
12
source 'https://rubygems.org'
23

34
# Middleman
45
gem 'middleman', '~>4.2.1'
56
gem 'middleman-syntax', '~> 3.0.0'
67
gem 'middleman-autoprefixer', '~> 2.7.0'
7-
gem "middleman-sprockets", "~> 4.1.0"
8+
gem 'middleman-sprockets', '~> 4.1.0'
89
gem 'rouge', '~> 2.0.5'
910
gem 'redcarpet', '~> 3.4.0'
11+
gem 'nokogiri', '~> 1.8.2'

Gemfile.lock

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ GEM
1717
coffee-script-source (1.12.2)
1818
compass-import-once (1.0.5)
1919
sass (>= 3.2, < 3.5)
20-
concurrent-ruby (1.0.4)
20+
concurrent-ruby (1.0.5)
2121
contracts (0.13.0)
2222
dotenv (2.2.0)
2323
erubis (2.7.0)
@@ -79,7 +79,10 @@ GEM
7979
middleman-syntax (3.0.0)
8080
middleman-core (>= 3.2)
8181
rouge (~> 2.0)
82+
mini_portile2 (2.3.0)
8283
minitest (5.10.1)
84+
nokogiri (1.8.2)
85+
mini_portile2 (~> 2.3.0)
8386
padrino-helpers (0.13.3.3)
8487
i18n (~> 0.6, >= 0.6.7)
8588
padrino-support (= 0.13.3.3)
@@ -88,15 +91,15 @@ GEM
8891
activesupport (>= 3.1)
8992
parallel (1.10.0)
9093
public_suffix (2.0.5)
91-
rack (2.0.1)
94+
rack (2.0.5)
9295
rb-fsevent (0.9.8)
9396
rb-inotify (0.9.8)
9497
ffi (>= 0.5.0)
9598
redcarpet (3.4.0)
9699
rouge (2.0.7)
97100
sass (3.4.23)
98101
servolux (0.12.0)
99-
sprockets (3.7.1)
102+
sprockets (3.7.2)
100103
concurrent-ruby (~> 1.0)
101104
rack (> 1, < 3)
102105
thor (0.19.4)
@@ -115,8 +118,12 @@ DEPENDENCIES
115118
middleman-autoprefixer (~> 2.7.0)
116119
middleman-sprockets (~> 4.1.0)
117120
middleman-syntax (~> 3.0.0)
121+
nokogiri (~> 1.8.2)
118122
redcarpet (~> 3.4.0)
119123
rouge (~> 2.0.5)
120124

125+
RUBY VERSION
126+
ruby 2.3.3p222
127+
121128
BUNDLED WITH
122-
1.14.3
129+
1.15.4

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ The docs themselves are available at https://cloud-ca.github.io/api-docs
88

99
You're going to need:
1010

11-
- **Linux or OS X** — Windows may work, but is unsupported.
12-
- **Ruby, version 2.2.5 or newer**
11+
- **Linux or macOS** — Windows may work, but is unsupported.
12+
- **Ruby, version 2.3.1 or newer**
1313
- **Bundler** — If Ruby is already installed, but the `bundle` command doesn't work, just run `gem install bundler` in a terminal.
1414

1515
### Getting Set Up
@@ -51,4 +51,4 @@ TODO: update with instructions on deploying the docs with jenkins
5151
3. `git merge master`
5252
4. `./deploy.sh`
5353

54-
The docs should go live once GitHub processes the new `gh-pages` branch contents.
54+
The docs should go live once GitHub processes the new `gh-pages` branch contents.

Vagrantfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
Vagrant.configure(2) do |config|
22
config.vm.box = "ubuntu/trusty64"
33
config.vm.network :forwarded_port, guest: 4567, host: 4567
4+
config.vm.provider "virtualbox" do |vb|
5+
vb.memory = "2048"
6+
end
47

58
config.vm.provision "bootstrap",
69
type: "shell",
710
inline: <<-SHELL
11+
sudo apt-add-repository ppa:brightbox/ruby-ng
812
sudo apt-get update
9-
sudo apt-get install -yq ruby2.0 ruby2.0-dev pkg-config build-essential nodejs git libxml2-dev libxslt-dev
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
1015
sudo apt-get autoremove -yq
11-
gem2.0 install --no-ri --no-rdoc bundler
16+
gem2.4 install --no-ri --no-rdoc bundler
1217
SHELL
1318

1419
# add the local user git config to the vm
@@ -34,6 +39,6 @@ Vagrant.configure(2) do |config|
3439
echo "Starting up middleman at http://localhost:4567"
3540
echo "If it does not come up, check the ~/middleman.log file for any error messages"
3641
cd /vagrant
37-
bundle exec middleman server --force-polling --latency=1 &> ~/middleman.log &
42+
bundle exec middleman server --watcher-force-polling --watcher-latency=1 &> ~/middleman.log &
3843
SHELL
3944
end

0 commit comments

Comments
 (0)