Skip to content

Commit 7c17152

Browse files
rtlcss magic
1 parent 9e4e947 commit 7c17152

File tree

116 files changed

+16494
-1117
lines changed

Some content is hidden

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

116 files changed

+16494
-1117
lines changed

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: 14 additions & 12 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.2/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.2/assets/brand/bootstrap-social.png
3333
social_logo_path: /docs/4.2/assets/brand/bootstrap-social-logo.png
@@ -36,28 +36,30 @@ social_logo_path: /docs/4.2/assets/brand/bootstrap-social-logo.png
3636
current_version: 4.2.1
3737
current_ruby_version: 4.2.1
3838
docs_version: 4.2
39-
repo: "https://github.com/twbs/bootstrap"
39+
repo: "https://github.com/RTLCSS/bootstrap"
4040
slack: "https://bootstrap-slack.herokuapp.com"
4141
blog: "https://blog.getbootstrap.com"
4242
expo: "https://expo.getbootstrap.com"
4343
themes: "https://themes.getbootstrap.com"
4444

4545
download:
46-
source: "https://github.com/twbs/bootstrap/archive/v4.2.1.zip"
47-
dist: "https://github.com/twbs/bootstrap/releases/download/v4.2.1/bootstrap-4.2.1-dist.zip"
46+
source: "https://github.com/RTLCSS/bootstrap/archive/v4.2.1-rtl.zip"
47+
dist: "https://github.com/RTLCSS/bootstrap/releases/download/v4.2.1/bootstrap-4.2.1-rtl-dist.zip"
4848

4949
cdn:
5050
# See https://www.srihash.org for info on how to generate the hashes
51+
rtlcss: "https://cdn.rtlcss.com/bootstrap/v4.2.1/css/bootstrap.min.css"
52+
rtlcss_hash: "sha384-e5tIhlZ9ly8vSIUeIcj8ckNflsYhGEhlJlbDcLfkzHxX+Bx3ehDFVioJ7DfVnKwG"
5153
css: "https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css"
52-
css_hash: "sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS"
53-
js: "https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"
54-
js_hash: "sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k"
54+
css_hash: "sha384-L0DiNNnNJrUnBrGUgmdEXzB39Flbm3TrVfgtE5NTFUQ5TPt3VQZY+z7NK2mV8huK"
55+
js: "https://cdn.rtlcss.com/bootstrap/v4.2.1/js/bootstrap.min.js"
56+
js_hash: "sha384-zPDcNrK4lvT0zP7YysuEEbT8mpa6wp+3KM4FyKEZKh5PihNS/O4jSZqBWLsa/BiM"
5557
js_bundle: "https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.bundle.min.js"
56-
js_bundle_hash: "sha384-zDnhMsjVZfS3hiP7oCBRmfjkQC4fzxVxFhBx8Hkz2aZX8gEvA/jsP3eXRCvzTofP"
58+
js_bundle_hash: "sha384-ft0689s8NWRj3fj7Q6XrsfAv5lWhBWuuw9zmNtV+LfztZu4KfCuEpjbv9xqyHI8/"
5759
jquery: "https://code.jquery.com/jquery-3.3.1.slim.min.js"
5860
jquery_hash: "sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
5961
popper: "https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"
60-
popper_hash: "sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut"
62+
popper_hash: "sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
6163

6264
toc:
6365
min_level: 2

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: 3 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: 31 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)