Skip to content

Commit 7e67185

Browse files
committed
2 parents 127dcae + 795d220 commit 7e67185

File tree

228 files changed

+12747
-9974
lines changed

Some content is hidden

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

228 files changed

+12747
-9974
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ indent_style = space
1010
insert_final_newline = true
1111
trim_trailing_whitespace = true
1212

13+
[*.md]
14+
trim_trailing_whitespace = false
15+
1316
[*.py]
1417
indent_size = 4

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ Thumbs.db
3333
.komodotools
3434
*.komodoproject
3535

36+
# Jekyll metadata
37+
docs/.jekyll-metadata
38+
3639
# Folders to ignore
3740
bower_components
3841
node_modules

.hound.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
fail_on_violations: true
2+
3+
scss:
4+
enabled: false
5+
6+
javascript:
7+
enabled: true
8+
config_file: js/.jshintrc
9+
10+
jscs:
11+
enabled: true
12+
config_file: js/.jscsrc

.travis.yml

+15-18
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,35 @@
1+
sudo: required
2+
dist: trusty
13
language: node_js
24
git:
35
depth: 10
46
node_js:
57
- "0.12"
68
before_install:
7-
- travis_retry sudo pip install -r test-infra/requirements.txt
8-
- rvm use 1.9.3 --fuzzy
9-
- export GEMDIR=$(rvm gemdir)
10-
- if [ "$TWBS_TEST" = validate-html ]; then echo "ruby=$(basename $GEMDIR) jekyll=$JEKYLL_VERSION rouge=$ROUGE_VERSION" > pseudo_Gemfile.lock; fi
9+
# Remove ./node_modules/.bin from PATH so node-which doesn't replace Unix which and cause RVM to barf. See https://github.com/travis-ci/travis-ci/issues/5092
10+
- export PATH=$(python -c 'from sys import argv;from collections import OrderedDict as od;print(":".join(od((p,None) for p in argv[1].split(":") if p.startswith("/")).keys()))' "$PATH")
11+
- rvm install 2.2
12+
- rvm use 2.2 --fuzzy
1113
- "export TRAVIS_COMMIT_MSG=\"$(git log --format=%B --no-merges -n 1)\""
1214
- echo "$TRAVIS_COMMIT_MSG" | grep '\[skip validator\]'; export TWBS_DO_VALIDATOR=$?; true
1315
- echo "$TRAVIS_COMMIT_MSG" | grep '\[skip sauce\]'; export TWBS_DO_SAUCE=$?; true
1416
- if [ "$TRAVIS_REPO_SLUG" = twbs-savage/bootstrap ]; then export TWBS_DO_VALIDATOR=0; fi
1517
install:
18+
- bundle install --deployment --jobs=1
19+
- cp grunt/npm-shrinkwrap.json ./
1620
- npm install -g grunt-cli
17-
- ./test-infra/s3_cache.py download npm-modules
18-
- if [ "$TWBS_TEST" = validate-html ] && [ $TWBS_DO_VALIDATOR -ne 0 ]; then ./test-infra/s3_cache.py download rubygems; fi
19-
after_script:
20-
- if [ "$TRAVIS_REPO_SLUG" != twbs-savage/bootstrap ] && [ "$TWBS_TEST" = core ]; then ./test-infra/s3_cache.py upload npm-modules; fi
21-
- if [ "$TRAVIS_REPO_SLUG" != twbs-savage/bootstrap ] && [ "$TWBS_TEST" = validate-html ] && [ $TWBS_DO_VALIDATOR -ne 0 ]; then ./test-infra/s3_cache.py upload rubygems; fi
21+
- npm install
22+
cache:
23+
directories:
24+
- node_modules
25+
- vendor/bundle
2226
env:
2327
global:
24-
- JEKYLL_VERSION="2.5.3"
25-
- ROUGE_VERSION="1.8.0"
28+
- NPM_CONFIG_PROGRESS="false"
2629
- SAUCE_USERNAME="bootstrap"
2730
- secure: "pJkBwnuae9dKU5tEcCqccfS1QQw7/meEcfz63fM7ba7QJNjoA6BaXj08L5Z3Vb5vBmVPwBawxo5Hp0jC0r/Z/O0hGnAmz/Cz09L+cy7dSAZ9x4hvZePSja/UAusaB5ogMoO8l2b773MzgQeSmrLbExr9BWLeqEfjC2hFgdgHLaQ="
28-
- secure: "gqjqISbxBJK6byFbsmr1AyP1qoWH+rap06A2gI7v72+Tn2PU2nYkIMUkCvhZw6K889jv+LhQ/ybcBxDOXHpNCExCnSgB4dcnmYp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RKQOxlUw4on5i0VuNK+QSqxJk0IDaRSZnTCcC8J7083K0YL+FvMdGQwcYwMY9LiwS8aS014IRkSQjsa+mjo3owP+dOU="
35-
- secure: "G4/f4PVyVi9o6UbZMqw9YFmDu7cHqe9iymiXYd1RcnPXwhWAePX12m0PWMhUj5itJ180PTEddVip8PNOgBdqyrDxEPKkcgAW2EElVAPIKJXVfvDW64UjQ0H7NS7XvF7iLQUJp/XfmR7NJ7tT393AQdh8SGmuQpJhgYbwIWbES/k="
3633
matrix:
3734
- TWBS_TEST=core
3835
- TWBS_TEST=validate-html
@@ -42,4 +39,4 @@ matrix:
4239
notifications:
4340
slack: heybb:iz4wwosL0N0EdaX1gvgkU0NH
4441
webhooks:
45-
- http://savage.twbsapps.com/savage/travis
42+
- http://savage1.twbsapps.com/savage/travis

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Bootstrap uses [GitHub's Releases feature](https://github.com/blog/1547-release-your-software) for its changelogs.
2+
3+
See [the Releases section of our GitHub project](https://github.com/twbs/bootstrap/releases) for changelogs for each release version of Bootstrap.
4+
5+
Release announcement posts on [the official Bootstrap blog](http://blog.getbootstrap.com) contain summaries of the most noteworthy changes made in each release.

CONTRIBUTING.md

+31-9
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,31 @@ the preferred channel for [bug reports](#bug-reports), [features requests](#feat
1818
and [submitting pull requests](#pull-requests), but please respect the following
1919
restrictions:
2020

21-
* Please **do not** use the issue tracker for personal support requests. Stack
22-
Overflow ([`twitter-bootstrap-3`](http://stackoverflow.com/questions/tagged/twitter-bootstrap-3) tag) or [IRC](README.md#community) are better places to get help.
21+
* Please **do not** use the issue tracker for personal support requests. Stack
22+
Overflow ([`twitter-bootstrap-3`](https://stackoverflow.com/questions/tagged/twitter-bootstrap-3) tag), [Slack](https://bootstrap-slack.herokuapp.com/) or [IRC](README.md#community) are better places to get help.
2323

2424
* Please **do not** derail or troll issues. Keep the discussion on topic and
2525
respect the opinions of others.
2626

27+
* Please **do not** post comments consisting solely of "+1" or ":thumbsup:".
28+
Use [GitHub's "reactions" feature](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments)
29+
instead. We reserve the right to delete comments which violate this rule.
30+
2731
* Please **do not** open issues or pull requests regarding the code in
2832
[`Normalize`](https://github.com/necolas/normalize.css) (open them in
2933
their respective repositories).
3034

35+
* Please **do not** open issues regarding the official themes offered on <http://themes.getbootstrap.com/>.
36+
Instead, please email any questions or feedback regarding those themes to `themes AT getbootstrap DOT com`.
37+
3138

3239
## Issues and labels
3340

3441
Our bug tracker utilizes several labels to help organize and identify issues. Here's what they represent and how we use them:
3542

3643
- `browser bug` - Issues that are reported to us, but actually are the result of a browser-specific bug. These are diagnosed with reduced test cases and result in an issue opened on that browser's own bug tracker.
3744
- `confirmed` - Issues that have been confirmed with a reduced test case and identify a bug in Bootstrap.
38-
- `css` - Issues stemming from our compiled CSS or source Less files.
45+
- `css` - Issues stemming from our compiled CSS or source Less/Sass files.
3946
- `customizer` - Issues with our web-based Customizer.
4047
- `docs` - Issues for improving or updating our documentation.
4148
- `examples` - Issues involving the example templates included in our docs.
@@ -66,7 +73,7 @@ Guidelines for bug reports:
6673
latest `master` or development branch in the repository.
6774

6875
3. **Isolate the problem** &mdash; ideally create a [reduced test
69-
case](http://css-tricks.com/6263-reduced-test-cases/) and a live example.
76+
case](https://css-tricks.com/reduced-test-cases/) and a live example.
7077
[This JS Bin](http://jsbin.com/lefey/1/edit?html,output) is a helpful template.
7178

7279

@@ -105,7 +112,7 @@ When feasible, we aim to report such upstream bugs to the relevant browser vendo
105112
| Mozilla | Firefox | Gecko | https://bugzilla.mozilla.org/enter_bug.cgi | "Core" is normally the right product option to choose. |
106113
| Apple | Safari | WebKit | https://bugs.webkit.org/enter_bug.cgi?product=WebKit <br> https://bugreport.apple.com | In Apple's bug reporter, choose "Safari" as the product. |
107114
| Google, Opera | Chrome, Chromium, Opera v15+ | Blink | https://code.google.com/p/chromium/issues/list | Click the "New issue" button. |
108-
| Microsoft | Internet Explorer | Trident | https://connect.microsoft.com/IE/feedback/LoadSubmitFeedbackForm | |
115+
| Microsoft | Edge | EdgeHTML | https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/ | |
109116

110117
### Issues bots
111118

@@ -114,7 +121,13 @@ When feasible, we aim to report such upstream bugs to the relevant browser vendo
114121

115122
## Feature requests
116123

117-
Feature requests are welcome. But take a moment to find out whether your idea
124+
Feature requests are welcome, but please note that they **must target
125+
[Bootstrap v4](https://github.com/twbs/bootstrap/tree/v4-dev),** because
126+
Bootstrap v3 is now in maintenance mode and is closed off to new features.
127+
This is so that we can focus our efforts on Bootstrap v4, the future of the
128+
framework.
129+
130+
Before opening a feature request, please take a moment to find out whether your idea
118131
fits with the scope and aims of the project. It's up to *you* to make a strong
119132
case to convince the project's developers of the merits of this feature. Please
120133
provide as much detail and context as possible.
@@ -131,13 +144,21 @@ implementing features, refactoring code, porting to a different language),
131144
otherwise you risk spending a lot of time working on something that the
132145
project's developers might not want to merge into the project.
133146

147+
In particular, **pull requests that add new features to Bootstrap v3 will be
148+
rejected.** Bootstrap v3 is now in maintenance mode and is therefore closed
149+
off to new features, so that we can focus our efforts on Bootstrap v4, the
150+
future of the framework. Pull requests that add new features should target
151+
[Bootstrap v4 (the `v4-dev` git branch)](https://github.com/twbs/bootstrap/tree/v4-dev)
152+
instead, where they will be welcomed and duly considered.
153+
134154
Please adhere to the [coding guidelines](#code-guidelines) used throughout the
135155
project (indentation, accurate comments, etc.) and any other requirements
136156
(such as test coverage).
137157

138158
**Do not edit `bootstrap.css`, `bootstrap-theme.css`, or `bootstrap.js`
139159
directly!** Those files are automatically generated. You should edit the
140-
source files in [`/bootstrap/less/`](https://github.com/twbs/bootstrap/tree/master/less)
160+
source files in [`/bootstrap/less/`](https://github.com/twbs/bootstrap/tree/master/less),
161+
[`/bootstrap/scss/`](https://github.com/twbs/bootstrap/tree/v4-dev/scss) (for Bootstrap v4),
141162
and/or [`/bootstrap/js/`](https://github.com/twbs/bootstrap/tree/master/js) instead.
142163

143164
Similarly, when contributing to Bootstrap's documentation, you should edit the
@@ -149,7 +170,7 @@ documentation source files and is managed separately by the Bootstrap Core Team.
149170
Adhering to the following process is the best way to get your work
150171
included in the project:
151172

152-
1. [Fork](http://help.github.com/fork-a-repo/) the project, clone your fork,
173+
1. [Fork](https://help.github.com/fork-a-repo/) the project, clone your fork,
153174
and configure the remotes:
154175

155176
```bash
@@ -177,7 +198,7 @@ included in the project:
177198

178199
4. Commit your changes in logical chunks. Please adhere to these [git commit
179200
message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
180-
or your code is unlikely be merged into the main project. Use Git's
201+
or your code is unlikely to be merged into the main project. Use Git's
181202
[interactive rebase](https://help.github.com/articles/interactive-rebase)
182203
feature to tidy up your commits before making them public.
183204

@@ -235,6 +256,7 @@ includes code changes) and under the terms of the
235256
- 2 spaces (no tabs)
236257
- strict mode
237258
- "Attractive"
259+
- Don't use [jQuery event alias convenience methods](https://github.com/jquery/jquery/blob/master/src/event/alias.js) (such as `$().focus()`). Instead, use [`$().trigger(eventType, ...)`](http://api.jquery.com/trigger/) or [`$().on(eventType, ...)`](http://api.jquery.com/on/), depending on whether you're firing an event or listening for an event. (For example, `$().trigger('focus')` or `$().on('focus', function (event) { /* handle focus event */ })`) We do this to be compatible with custom builds of jQuery where the event aliases module has been excluded.
238260

239261
### Checking coding style
240262

Gemfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
group :development, :test do
4+
gem 'jekyll', '~> 3.1.2'
5+
gem 'jekyll-sitemap', '~> 0.10.0'
6+
end

Gemfile.lock

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
colorator (0.1)
5+
ffi (1.9.10-x64-mingw32)
6+
jekyll (3.1.2)
7+
colorator (~> 0.1)
8+
jekyll-sass-converter (~> 1.0)
9+
jekyll-watch (~> 1.1)
10+
kramdown (~> 1.3)
11+
liquid (~> 3.0)
12+
mercenary (~> 0.3.3)
13+
rouge (~> 1.7)
14+
safe_yaml (~> 1.0)
15+
jekyll-sass-converter (1.4.0)
16+
sass (~> 3.4)
17+
jekyll-sitemap (0.10.0)
18+
jekyll-watch (1.3.1)
19+
listen (~> 3.0)
20+
kramdown (1.10.0)
21+
liquid (3.0.6)
22+
listen (3.0.6)
23+
rb-fsevent (>= 0.9.3)
24+
rb-inotify (>= 0.9.7)
25+
mercenary (0.3.5)
26+
rb-fsevent (0.9.7)
27+
rb-inotify (0.9.7)
28+
ffi (>= 0.5.0)
29+
rouge (1.10.1)
30+
safe_yaml (1.0.4)
31+
sass (3.4.21)
32+
33+
PLATFORMS
34+
x64-mingw32
35+
36+
DEPENDENCIES
37+
jekyll (~> 3.1.2)
38+
jekyll-sitemap (~> 0.10.0)
39+
40+
BUNDLED WITH
41+
1.11.2

0 commit comments

Comments
 (0)