Skip to content

Commit 5bc3c5f

Browse files
rtlcss magic
1 parent 3b55873 commit 5bc3c5f

File tree

123 files changed

+12633
-288
lines changed

Some content is hidden

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

123 files changed

+12633
-288
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: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ destination: ./_gh_pages
1414
host: 0.0.0.0
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.1/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.1/assets/brand/bootstrap-social.png
3333
social_logo_path: /docs/4.1/assets/brand/bootstrap-social-logo.png
@@ -36,23 +36,25 @@ social_logo_path: /docs/4.1/assets/brand/bootstrap-social-logo.png
3636
current_version: 4.1.3
3737
current_ruby_version: 4.1.3
3838
docs_version: 4.1
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
jobs: "https://jobs.getbootstrap.com"
4444
themes: "https://themes.getbootstrap.com"
4545

4646
download:
47-
source: "https://github.com/twbs/bootstrap/archive/v4.1.3.zip"
48-
dist: "https://github.com/twbs/bootstrap/releases/download/v4.1.3/bootstrap-4.1.3-dist.zip"
47+
source: "https://github.com/RTLCSS/bootstrap/archive/v4.1.3-rtl.zip"
48+
dist: "https://github.com/RTLCSS/bootstrap/releases/download/v4.1.3-rtl/bootstrap-4.1.3-rtl-dist.zip"
4949

5050
cdn:
5151
# See https://www.srihash.org for info on how to generate the hashes
52+
rtlcss: "https://cdn.rtlcss.com/bootstrap/v4.0.0/css/bootstrap.min.css"
53+
rtlcss_hash: "sha384-Jt6Tol1A2P9JBesGeCxNrxkmRFSjWCBW1Af7CSQSKsfMVQCqnUVWhZzG0puJMCK6"
5254
css: "https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
53-
css_hash: "sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
54-
js: "https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
55-
js_hash: "sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
55+
css_hash: "sha384-eatdQjoSSDDY8D6MCFB4jDDukNmLwA38cusk4vSVSKGHcgItDhv1hZ8cRlx8JSOb"
56+
js: "https://cdn.rtlcss.com/bootstrap/4.1.3/js/bootstrap.min.js"
57+
js_hash: "sha384-C/pvytx0t5v9BEbkMlBAGSPnI1TQU1IrTJ6DJbC8GBHqdMnChcb6U4xg4uRkIQCV"
5658
jquery: "https://code.jquery.com/jquery-3.3.1.slim.min.js"
5759
jquery_hash: "sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
5860
popper: "https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"

build/.htmllintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@
3939
"tag-name-match": true,
4040
"tag-self-close": false,
4141
"text-ignore-regex": false,
42-
"title-max-len": 70,
42+
"title-max-len": 100,
4343
"title-no-dup": true
4444
}

build/generate-sri.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ const configFile = path.join(__dirname, '../_config.yml')
2525
// `file` is the path from the root folder
2626
// `configPropertyName` is the _config.yml variable's name of the file
2727
const files = [
28+
{
29+
file: 'dist/css/rtl/bootstrap.min.css',
30+
configPropertyName: 'rtlcss_hash'
31+
},
2832
{
2933
file: 'dist/css/bootstrap.min.css',
3034
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-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.

0 commit comments

Comments
 (0)