Skip to content

Commit 9fad124

Browse files
rtlcss magic
1 parent dca1ab7 commit 9fad124

File tree

111 files changed

+16114
-626
lines changed

Some content is hidden

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

111 files changed

+16114
-626
lines changed

.stylelintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
**/dist/
33
**/vendor/
44
/_gh_pages/
5+
**/*.rtl.css

CNAME

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
getbootstrap.com
1+
bootstrap.rtlcss.com

Gemfile.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ GEM
44
addressable (2.7.0)
55
public_suffix (>= 2.0.2, < 5.0)
66
colorator (1.1.0)
7-
concurrent-ruby (1.1.5)
8-
em-websocket (0.5.1)
7+
concurrent-ruby (1.1.7)
8+
em-websocket (0.5.2)
99
eventmachine (>= 0.12.9)
1010
http_parser.rb (~> 0.6.0)
1111
eventmachine (1.2.7)
1212
eventmachine (1.2.7-x64-mingw32)
13-
ffi (1.11.3)
14-
ffi (1.11.3-x64-mingw32)
13+
ffi (1.13.1)
14+
ffi (1.13.1-x64-mingw32)
1515
forwardable-extended (2.6.0)
1616
http_parser.rb (0.6.0)
1717
i18n (0.9.5)
1818
concurrent-ruby (~> 1.0)
19-
jekyll (3.8.6)
19+
jekyll (3.8.7)
2020
addressable (~> 2.4)
2121
colorator (~> 1.0)
2222
em-websocket (~> 0.5)
@@ -34,29 +34,29 @@ GEM
3434
jekyll-sass-converter (1.5.2)
3535
sass (~> 3.4)
3636
jekyll-sitemap (1.4.0)
37-
jekyll (>= 3.7, < 5.0)
37+
jekyll (~> 3.3)
3838
jekyll-toc (0.11.0)
3939
nokogiri (~> 1.9)
4040
jekyll-watch (2.2.1)
4141
listen (~> 3.0)
4242
kramdown (1.17.0)
4343
liquid (4.0.3)
44-
listen (3.2.0)
44+
listen (3.3.3)
4545
rb-fsevent (~> 0.10, >= 0.10.3)
4646
rb-inotify (~> 0.9, >= 0.9.10)
4747
mercenary (0.3.6)
4848
mini_portile2 (2.4.0)
49-
nokogiri (1.10.5)
49+
nokogiri (1.10.10)
5050
mini_portile2 (~> 2.4.0)
51-
nokogiri (1.10.5-x64-mingw32)
51+
nokogiri (1.10.10-x64-mingw32)
5252
mini_portile2 (~> 2.4.0)
5353
pathutil (0.16.2)
5454
forwardable-extended (~> 2.6)
55-
public_suffix (4.0.1)
56-
rb-fsevent (0.10.3)
57-
rb-inotify (0.10.0)
55+
public_suffix (4.0.6)
56+
rb-fsevent (0.10.4)
57+
rb-inotify (0.10.1)
5858
ffi (~> 1.0)
59-
rouge (3.13.0)
59+
rouge (3.26.0)
6060
safe_yaml (1.0.5)
6161
sass (3.7.4)
6262
sass-listen (~> 4.0.0)
@@ -77,4 +77,4 @@ DEPENDENCIES
7777
wdm (~> 0.1.1)
7878

7979
BUNDLED WITH
80-
1.17.3
80+
2.2.0

_config.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ destination: ./_gh_pages
1414
host: "localhost"
1515
port: 9001
1616
baseurl: ""
17-
url: "https://getbootstrap.com"
17+
url: "https://bootstrap.rtlcss.com"
1818
encoding: UTF-8
1919
exclude:
2020
- docs/4.4/assets/scss/
@@ -25,9 +25,9 @@ plugins:
2525
- jekyll-toc
2626

2727
# Social
28-
title: Bootstrap
29-
description: "The most popular HTML, CSS, and JS library in the world."
30-
twitter: getbootstrap
28+
title: Bootstrap 4 RTL
29+
description: "The most popular HTML, CSS, and JS library in the world made right-to-left."
30+
twitter: rtlcss
3131
authors: "Mark Otto, Jacob Thornton, and Bootstrap contributors"
3232
social_image_path: /docs/4.4/assets/brand/bootstrap-social.png
3333
social_logo_path: /docs/4.4/assets/brand/bootstrap-social-logo.png
@@ -36,7 +36,7 @@ social_logo_path: /docs/4.4/assets/brand/bootstrap-social-logo.png
3636
current_version: 4.4.1
3737
current_ruby_version: 4.4.1
3838
docs_version: 4.4
39-
repo: "https://github.com/twbs/bootstrap"
39+
repo: "https://github.com/RTLCSS/bootstrap"
4040
slack: "https://bootstrap-slack.herokuapp.com"
4141
opencollective: "https://opencollective.com/bootstrap"
4242
blog: "https://blog.getbootstrap.com"
@@ -45,17 +45,19 @@ themes: "https://themes.getbootstrap.com"
4545
icons: "https://icons.getbootstrap.com"
4646

4747
download:
48-
source: "https://github.com/twbs/bootstrap/archive/v4.4.1.zip"
49-
dist: "https://github.com/twbs/bootstrap/releases/download/v4.4.1/bootstrap-4.4.1-dist.zip"
48+
source: "https://github.com/RTLCSS/bootstrap/archive/v4.4.1.zip"
49+
dist: "https://github.com/RTLCSS/bootstrap/releases/download/v4.4.1/bootstrap-4.4.1-dist.zip"
5050

5151
cdn:
5252
# See https://www.srihash.org for info on how to generate the hashes
53+
rtlcss: "https://cdn.rtlcss.com/bootstrap/v4.4.1/css/bootstrap.min.css"
54+
rtlcss_hash: "sha384-yQ02IR5BzpO2LZ70lJP2g4opr8tX6KzCmaELFzmNqlwtvTgtDJHQvuc43zCRMf1T"
5355
css: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
5456
css_hash: "sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
55-
js: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
56-
js_hash: "sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
57-
js_bundle: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js"
58-
js_bundle_hash: "sha384-6khuMg9gaYr5AxOqhkVIODVIvm9ynTT5J4V1cfthmT+emCG6yVmEZsRHdxlotUnm"
57+
js: "https://cdn.rtlcss.com/bootstrap/v4.4.1/js/bootstrap.min.js"
58+
js_hash: "sha384-8RqFNshIrK8FARYG0cBLv7D4Y2hXNUPHVWohv3STbDMZh6BU4LNoAJUA3mjCH6Zx"
59+
js_bundle: "https://cdn.rtlcss.com/bootstrap/v4.4.1/js/bootstrap.bundle.min.js"
60+
js_bundle_hash: "sha384-lK52d4/Xg83h3OaE5PkT1A0Bsgh0q5GEEq71xofmMah9t3CEqFIZiz8eYWmOBAZQ"
5961
jquery: "https://code.jquery.com/jquery-3.4.1.slim.min.js"
6062
jquery_hash: "sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
6163
popper: "https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"

build/generate-sri.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ const configFile = path.join(__dirname, '../_config.yml')
2727
// `file` is the path from the root folder
2828
// `configPropertyName` is the _config.yml variable's name of the file
2929
const files = [
30+
{
31+
file: 'dist/css/rtl/bootstrap.min.css',
32+
configPropertyName: 'rtlcss_hash'
33+
},
3034
{
3135
file: 'dist/css/bootstrap.min.css',
3236
configPropertyName: 'css_hash'

build/rtl-docs.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'use strict'
2+
3+
const glob = require('glob')
4+
const pkg = require('../package.json')
5+
const rtlcss = require('rtlcss')
6+
const fs = require('fs')
7+
const v = pkg.version.match(/\d+\.\d+/)[0]
8+
// options is optional
9+
glob(`site/docs/${v}/examples/**/*.css`, {
10+
ignore: `site/docs/${v}/examples/**/*.rtl.css`
11+
}, (er, files) => {
12+
files.forEach((path) => {
13+
fs.writeFileSync(path.replace('.css', '.rtl.css'), rtlcss.process(fs.readFileSync(path)))
14+
})
15+
})

dist/css/bootstrap-grid.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap-reboot.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap-reboot.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap-reboot.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap-reboot.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap.css

Lines changed: 32 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)