-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
**/dist/ | ||
**/vendor/ | ||
/_gh_pages/ | ||
**/*.rtl.css |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
getbootstrap.com | ||
bootstrap.rtlcss.com |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.4/assets/scss/ | ||
|
@@ -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.4/assets/brand/bootstrap-social.png | ||
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 | |
current_version: 4.4.1 | ||
current_ruby_version: 4.4.1 | ||
docs_version: 4.4 | ||
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" | ||
|
@@ -45,17 +45,19 @@ themes: "https://themes.getbootstrap.com" | |
icons: "https://icons.getbootstrap.com" | ||
|
||
download: | ||
source: "https://github.com/twbs/bootstrap/archive/v4.4.1.zip" | ||
dist: "https://github.com/twbs/bootstrap/releases/download/v4.4.1/bootstrap-4.4.1-dist.zip" | ||
source: "https://github.com/RTLCSS/bootstrap/archive/v4.4.1.zip" | ||
dist: "https://github.com/RTLCSS/bootstrap/releases/download/v4.4.1/bootstrap-4.4.1-dist.zip" | ||
|
||
cdn: | ||
# See https://www.srihash.org for info on how to generate the hashes | ||
rtlcss: "https://cdn.rtlcss.com/bootstrap/v4.4.1/css/bootstrap.min.css" | ||
rtlcss_hash: "sha384-yQ02IR5BzpO2LZ70lJP2g4opr8tX6KzCmaELFzmNqlwtvTgtDJHQvuc43zCRMf1T" | ||
css: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" | ||
css_hash: "sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" | ||
js: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" | ||
js_hash: "sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" | ||
js_bundle: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js" | ||
js_bundle_hash: "sha384-6khuMg9gaYr5AxOqhkVIODVIvm9ynTT5J4V1cfthmT+emCG6yVmEZsRHdxlotUnm" | ||
js: "https://cdn.rtlcss.com/bootstrap/v4.4.1/js/bootstrap.min.js" | ||
js_hash: "sha384-8RqFNshIrK8FARYG0cBLv7D4Y2hXNUPHVWohv3STbDMZh6BU4LNoAJUA3mjCH6Zx" | ||
js_bundle: "https://cdn.rtlcss.com/bootstrap/v4.4.1/js/bootstrap.bundle.min.js" | ||
js_bundle_hash: "sha384-lK52d4/Xg83h3OaE5PkT1A0Bsgh0q5GEEq71xofmMah9t3CEqFIZiz8eYWmOBAZQ" | ||
jquery: "https://code.jquery.com/jquery-3.4.1.slim.min.js" | ||
jquery_hash: "sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" | ||
popper: "https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.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))) | ||
}) | ||
}) |
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.