Skip to content

Commit 61cb962

Browse files
committed
Initial commit
0 parents  commit 61cb962

Some content is hidden

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

55 files changed

+15540
-0
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

.github/ISSUE_TEMPLATE.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!--
2+
⚠️ READ THIS BEFORE SUBMITTING ⚠️
3+
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.
5+
6+
-> https://spectrum.chat/slate <-
7+
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

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<!--
2+
⚠️ 🚨 ⚠️ STOP AND READ THIS ⚠️ 🚨 ⚠️
3+
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+
-->

.gitignore

+24
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/

.ruby-gemset

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
slate

.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.4.1

.travis.yml

+10
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

CHANGELOG.md

+137
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
# Changelog
2+
3+
## Version 2.2
4+
5+
*January 19, 2018*
6+
7+
- Fixes bugs with some non-roman languages not generating unique headers
8+
- Adds editorconfig, thanks to [Jay Thomas](https://github.com/jaythomas)
9+
- Adds optional `NestingUniqueHeadCounter`, thanks to [Vladimir Morozov](https://github.com/greenhost87)
10+
- 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)!
11+
- Adds links to Spectrum chat for questions in README and ISSUE_TEMPLATE
12+
13+
## Version 2.1
14+
15+
*October 30, 2017*
16+
17+
- Right-to-left text stylesheet option, thanks to [Mohammad Hossein Rabiee](https://github.com/mhrabiee)
18+
- Fix for HTML5 history state bug, thanks to [Zach Toolson](https://github.com/ztoolson)
19+
- 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)
20+
21+
Thanks to everyone who submitted PRs for this version!
22+
23+
## Version 2.0
24+
25+
*July 17, 2017*
26+
27+
- All-new statically generated table of contents
28+
- Should be much faster loading and scrolling for large pages
29+
- Smaller Javascript file sizes
30+
- Avoids the problem with the last link in the ToC not ever highlighting if the section was shorter than the page
31+
- Fixes control-click not opening in a new page
32+
- Automatically updates the HTML title as you scroll
33+
- Updated design
34+
- New default colors!
35+
- New spacings and sizes!
36+
- System-default typefaces, just like GitHub
37+
- Added search input delay on large corpuses to reduce lag
38+
- We even bumped the major version cause hey, why not?
39+
- Various small bug fixes
40+
41+
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.
42+
43+
## Version 1.5
44+
45+
*February 23, 2017*
46+
47+
- Add [multiple tabs per programming language](https://github.com/lord/slate/wiki/Multiple-language-tabs-per-programming-language) feature
48+
- Upgrade Middleman to add Ruby 1.4.0 compatibility
49+
- Switch default code highlighting color scheme to better highlight JSON
50+
- Various small typo and bug fixes
51+
52+
## Version 1.4
53+
54+
*November 24, 2016*
55+
56+
- Upgrade Middleman and Rouge gems, should hopefully solve a number of bugs
57+
- Update some links in README
58+
- Fix broken Vagrant startup script
59+
- Fix some problems with deploy.sh help message
60+
- Fix bug with language tabs not hiding properly if no error
61+
- Add `!default` to SASS variables
62+
- Fix bug with logo margin
63+
- Bump tested Ruby versions in .travis.yml
64+
65+
## Version 1.3.3
66+
67+
*June 11, 2016*
68+
69+
Documentation and example changes.
70+
71+
## Version 1.3.2
72+
73+
*February 3, 2016*
74+
75+
A small bugfix for slightly incorrect background colors on code samples in some cases.
76+
77+
## Version 1.3.1
78+
79+
*January 31, 2016*
80+
81+
A small bugfix for incorrect whitespace in code blocks.
82+
83+
## Version 1.3
84+
85+
*January 27, 2016*
86+
87+
We've upgraded Middleman and a number of other dependencies, which should fix quite a few bugs.
88+
89+
Instead of `rake build` and `rake deploy`, you should now run `bundle exec middleman build --clean` to build your server, and `./deploy.sh` to deploy it to Github Pages.
90+
91+
## Version 1.2
92+
93+
*June 20, 2015*
94+
95+
**Fixes:**
96+
97+
- Remove crash on invalid languages
98+
- Update Tocify to scroll to the highlighted header in the Table of Contents
99+
- Fix variable leak and update search algorithms
100+
- Update Python examples to be valid Python
101+
- Update gems
102+
- More misc. bugfixes of Javascript errors
103+
- Add Dockerfile
104+
- Remove unused gems
105+
- Optimize images, fonts, and generated asset files
106+
- Add chinese font support
107+
- Remove RedCarpet header ID patch
108+
- Update language tabs to not disturb existing query strings
109+
110+
## Version 1.1
111+
112+
*July 27, 2014*
113+
114+
**Fixes:**
115+
116+
- Finally, a fix for the redcarpet upgrade bug
117+
118+
## Version 1.0
119+
120+
*July 2, 2014*
121+
122+
[View Issues](https://github.com/tripit/slate/issues?milestone=1&state=closed)
123+
124+
**Features:**
125+
126+
- Responsive designs for phones and tablets
127+
- Started tagging versions
128+
129+
**Fixes:**
130+
131+
- Fixed 'unrecognized expression' error
132+
- Fixed #undefined hash bug
133+
- Fixed bug where the current language tab would be unselected
134+
- Fixed bug where tocify wouldn't highlight the current section while searching
135+
- Fixed bug where ids of header tags would have special characters that caused problems
136+
- Updated layout so that pages with disabled search wouldn't load search.js
137+
- Cleaned up Javascript

CODE_OF_CONDUCT.md

+46
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 [email protected]. 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

+11
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.6.8'

0 commit comments

Comments
 (0)