Skip to content

Commit

Permalink
rtlcss magic
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadYounes committed Dec 12, 2020
1 parent 8fa0d30 commit 7521db4
Show file tree
Hide file tree
Showing 111 changed files with 15,841 additions and 436 deletions.
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
**/dist/
**/vendor/
/_gh_pages/
**/*.rtl.css
2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
getbootstrap.com
bootstrap.rtlcss.com
44 changes: 21 additions & 23 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
concurrent-ruby (1.1.4)
em-websocket (0.5.1)
concurrent-ruby (1.1.7)
em-websocket (0.5.2)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
eventmachine (1.2.7-x64-mingw32)
ffi (1.10.0)
ffi (1.10.0-x64-mingw32)
ffi (1.13.1)
ffi (1.13.1-x64-mingw32)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.8.5)
jekyll (3.8.7)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
Expand All @@ -37,30 +37,28 @@ GEM
jekyll (~> 3.3)
jekyll-toc (0.9.1)
nokogiri (~> 1.8)
jekyll-watch (2.1.2)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (1.17.0)
liquid (4.0.1)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
liquid (4.0.3)
listen (3.3.3)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
mini_portile2 (2.4.0)
nokogiri (1.10.1)
nokogiri (1.10.10)
mini_portile2 (~> 2.4.0)
nokogiri (1.10.1-x64-mingw32)
nokogiri (1.10.10-x64-mingw32)
mini_portile2 (~> 2.4.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (3.0.3)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
public_suffix (4.0.6)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
ffi (~> 1.0)
rouge (3.3.0)
ruby_dep (1.5.0)
safe_yaml (1.0.4)
sass (3.7.3)
rouge (3.26.0)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
Expand All @@ -79,4 +77,4 @@ DEPENDENCIES
wdm (~> 0.1.1)

BUNDLED WITH
1.17.3
2.2.0
24 changes: 13 additions & 11 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ destination: ./_gh_pages
host: "localhost"
port: 9001
baseurl: ""
url: "https://getbootstrap.com"
url: "https://bootstrap.rtlcss.com"
encoding: UTF-8
exclude:
- docs/4.3/assets/scss/
Expand All @@ -25,9 +25,9 @@ plugins:
- jekyll-toc

# Social
title: Bootstrap
description: "The most popular HTML, CSS, and JS library in the world."
twitter: getbootstrap
title: Bootstrap 4 RTL
description: "The most popular HTML, CSS, and JS library in the world made right-to-left."
twitter: rtlcss
authors: "Mark Otto, Jacob Thornton, and Bootstrap contributors"
social_image_path: /docs/4.3/assets/brand/bootstrap-social.png
social_logo_path: /docs/4.3/assets/brand/bootstrap-social-logo.png
Expand All @@ -36,25 +36,27 @@ social_logo_path: /docs/4.3/assets/brand/bootstrap-social-logo.png
current_version: 4.3.1
current_ruby_version: 4.3.1
docs_version: 4.3
repo: "https://github.com/twbs/bootstrap"
repo: "https://github.com/RTLCSS/bootstrap"
slack: "https://bootstrap-slack.herokuapp.com"
opencollective: "https://opencollective.com/bootstrap"
blog: "https://blog.getbootstrap.com"
expo: "https://expo.getbootstrap.com"
themes: "https://themes.getbootstrap.com"

download:
source: "https://github.com/twbs/bootstrap/archive/v4.3.1.zip"
dist: "https://github.com/twbs/bootstrap/releases/download/v4.3.1/bootstrap-4.3.1-dist.zip"
source: "https://github.com/RTLCSS/bootstrap/archive/v4.3.1.zip"
dist: "https://github.com/RTLCSS/bootstrap/releases/download/v4.3.1/bootstrap-4.3.1-dist.zip"

cdn:
# See https://www.srihash.org for info on how to generate the hashes
rtlcss: "https://cdn.rtlcss.com/bootstrap/v4.3.1/css/bootstrap.min.css"
rtlcss_hash: "sha384-LobEUEN+vN9RjeqoGV210e9rydU8P3KMTgX9FKxalf0zavDGgINz6K+iXoTLpNFA"
css: "https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
css_hash: "sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
js: "https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
js_hash: "sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
js_bundle: "https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js"
js_bundle_hash: "sha384-xrRywqdh3PHs8keKZN+8zzc5TX0GRTLCcmivcbNJWm2rs5C8PRhcEn3czEjhAO9o"
js: "https://cdn.rtlcss.com/bootstrap/v4.3.1/js/bootstrap.min.js"
js_hash: "sha384-2NsOVs5JcOR/wf4f2u5VYxUT+23fCbG29ajnpPYiyCZWF0dT4Ik3Qewqmf+pwm/d"
js_bundle: "https://cdn.rtlcss.com/bootstrap/v4.3.1/js/bootstrap.bundle.min.js"
js_bundle_hash: "sha384-VS7pavNY4WkolhXzkADTlmdOgy8pVq8Z7LL92gjGAUUTS5PGCAYiRGhnHy52iWaB"
jquery: "https://code.jquery.com/jquery-3.3.1.slim.min.js"
jquery_hash: "sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
popper: "https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
Expand Down
4 changes: 4 additions & 0 deletions build/generate-sri.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ const configFile = path.join(__dirname, '../_config.yml')
// `file` is the path from the root folder
// `configPropertyName` is the _config.yml variable's name of the file
const files = [
{
file: 'dist/css/rtl/bootstrap.min.css',
configPropertyName: 'rtlcss_hash'
},
{
file: 'dist/css/bootstrap.min.css',
configPropertyName: 'css_hash'
Expand Down
15 changes: 15 additions & 0 deletions build/rtl-docs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict'

const glob = require('glob')
const pkg = require('../package.json')
const rtlcss = require('rtlcss')
const fs = require('fs')
const v = pkg.version.match(/\d+\.\d+/)[0]
// options is optional
glob(`site/docs/${v}/examples/**/*.css`, {
ignore: `site/docs/${v}/examples/**/*.rtl.css`
}, (er, files) => {
files.forEach((path) => {
fs.writeFileSync(path.replace('.css', '.rtl.css'), rtlcss.process(fs.readFileSync(path)))
})
})
2 changes: 1 addition & 1 deletion dist/css/bootstrap-grid.min.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/css/bootstrap-reboot.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/bootstrap-reboot.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/bootstrap-reboot.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/bootstrap-reboot.min.css.map

Large diffs are not rendered by default.

62 changes: 32 additions & 30 deletions dist/css/bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/bootstrap.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css.map

Large diffs are not rendered by default.

Loading

0 comments on commit 7521db4

Please sign in to comment.