Skip to content

Commit e3441d8

Browse files
rtlcss magic
1 parent a716fb0 commit e3441d8

File tree

120 files changed

+18630
-2727
lines changed

Some content is hidden

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

120 files changed

+18630
-2727
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

_config.yml

Lines changed: 15 additions & 13 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.5/assets/scss/
@@ -28,9 +28,9 @@ redirect_from:
2828
json: false
2929

3030
# Social
31-
title: Bootstrap
32-
description: "The most popular HTML, CSS, and JS library in the world."
33-
twitter: getbootstrap
31+
title: Bootstrap 4 RTL
32+
description: "The most popular HTML, CSS, and JS library in the world made right-to-left."
33+
twitter: rtlcss
3434
authors: "Mark Otto, Jacob Thornton, and Bootstrap contributors"
3535
social_image_path: /docs/4.5/assets/brand/bootstrap-social.png
3636
social_logo_path: /docs/4.5/assets/brand/bootstrap-social-logo.png
@@ -39,8 +39,8 @@ social_logo_path: /docs/4.5/assets/brand/bootstrap-social-logo.png
3939
current_version: 4.5.3
4040
current_ruby_version: 4.5.3
4141
docs_version: 4.5
42-
github_org: "https://github.com/twbs"
43-
repo: "https://github.com/twbs/bootstrap"
42+
github_org: "https://github.com/RTLCSS"
43+
repo: "https://github.com/RTLCSS/bootstrap"
4444
slack: "https://bootstrap-slack.herokuapp.com"
4545
opencollective: "https://opencollective.com/bootstrap"
4646
blog: "https://blog.getbootstrap.com"
@@ -49,18 +49,20 @@ themes: "https://themes.getbootstrap.com"
4949
icons: "https://icons.getbootstrap.com"
5050

5151
download:
52-
source: "https://github.com/twbs/bootstrap/archive/v4.5.3.zip"
53-
dist: "https://github.com/twbs/bootstrap/releases/download/v4.5.3/bootstrap-4.5.3-dist.zip"
54-
dist_examples: "https://github.com/twbs/bootstrap/releases/download/v4.5.3/bootstrap-4.5.3-examples.zip"
52+
source: "https://github.com/RTLCSS/bootstrap/archive/v4.5.3.zip"
53+
dist: "https://github.com/RTLCSS/bootstrap/releases/download/v4.5.3/bootstrap-4.5.3-dist.zip"
54+
dist_examples: "https://github.com/RTLCSS/bootstrap/releases/download/v4.5.3/bootstrap-4.5.3-examples.zip"
5555

5656
cdn:
5757
# See https://www.srihash.org for info on how to generate the hashes
58+
rtlcss: "https://cdn.rtlcss.com/bootstrap/v4.5.3/css/bootstrap.min.css"
59+
rtlcss_hash: "sha384-JvExCACAZcHNJEc7156QaHXTnQL3hQBixvj5RV5buE7vgnNEzzskDtx9NQ4p6BJe"
5860
css: "https://stackpath.bootstrapcdn.com/bootstrap/4.5.3/css/bootstrap.min.css"
5961
css_hash: "sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2"
60-
js: "https://stackpath.bootstrapcdn.com/bootstrap/4.5.3/js/bootstrap.min.js"
61-
js_hash: "sha384-w1Q4orYjBQndcko6MimVbzY0tgp4pWB4lZ7lr30WKz0vr/aWKhXdBNmNb5D92v7s"
62-
js_bundle: "https://stackpath.bootstrapcdn.com/bootstrap/4.5.3/js/bootstrap.bundle.min.js"
63-
js_bundle_hash: "sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
62+
js: "https://cdn.rtlcss.com/bootstrap/v4.5.3/js/bootstrap.min.js"
63+
js_hash: "sha384-VmD+lKnI0Y4FPvr6hvZRw6xvdt/QZoNHQ4h5k0RL30aGkR9ylHU56BzrE2UoohWK"
64+
js_bundle: "https://cdn.rtlcss.com/bootstrap/v4.5.3/js/bootstrap.bundle.min.js"
65+
js_bundle_hash: "sha384-40ix5a3dj6/qaC7tfz0Yr+p9fqWLzzAXiwxVLt9dw7UjQzGYw6rWRhFAnRapuQyK"
6466
jquery: "https://code.jquery.com/jquery-3.5.1.slim.min.js"
6567
jquery_hash: "sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
6668
popper: "https://cdn.jsdelivr.net/npm/[email protected]/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.

0 commit comments

Comments
 (0)