Skip to content

Commit 9510716

Browse files
add rtl support
1 parent 8a628b9 commit 9510716

File tree

98 files changed

+12648
-229
lines changed

Some content is hidden

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

98 files changed

+12648
-229
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
- .git/
@@ -43,9 +43,9 @@ plugins:
4343
- jekyll-toc
4444

4545
# Social
46-
title: Bootstrap
47-
description: "The most popular HTML, CSS, and JS library in the world."
48-
twitter: getbootstrap
46+
title: Bootstrap 4 RTL
47+
description: "The most popular HTML, CSS, and JS library in the world made right-to-left."
48+
twitter: rtlcss
4949
authors: "Mark Otto, Jacob Thornton, and Bootstrap contributors"
5050
social_image_path: /assets/brand/bootstrap-social.png
5151
social_logo_path: /assets/brand/bootstrap-social-logo.png
@@ -54,23 +54,25 @@ social_logo_path: /assets/brand/bootstrap-social-logo.png
5454
current_version: 4.0.0
5555
current_ruby_version: 4.0.0
5656
docs_version: 4.0
57-
repo: "https://github.com/twbs/bootstrap"
57+
repo: "https://github.com/RTLCSS/bootstrap"
5858
slack: "https://bootstrap-slack.herokuapp.com"
5959
blog: "https://blog.getbootstrap.com"
6060
expo: "https://expo.getbootstrap.com"
6161
jobs: "https://jobs.getbootstrap.com"
6262
themes: "https://themes.getbootstrap.com"
6363

6464
download:
65-
source: "https://github.com/twbs/bootstrap/archive/v4.0.0.zip"
66-
dist: "https://github.com/twbs/bootstrap/releases/download/v4.0.0/bootstrap-4.0.0-dist.zip"
65+
source: "https://github.com/RTLCSS/bootstrap/archive/v4.0.0.zip"
66+
dist: "https://github.com/RTLCSS/bootstrap/releases/download/v4.0.0/bootstrap-4.0.0-dist.zip"
6767

6868
cdn:
6969
# See https://www.srihash.org for info on how to generate the hashes
70+
rtlcss: "https://cdn.rtlcss.com/bootstrap/v4.0.0/css/bootstrap.min.css"
71+
rtlcss_hash: "sha384-P4uhUIGk/q1gaD/NdgkBIl3a6QywJjlsFJFk7SPRdruoGddvRVSwv5qFnvZ73cpz"
7072
css: "https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
71-
css_hash: "sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
72-
js: "https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
73-
js_hash: "sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
73+
css_hash: "sha384-WOekEFi+C4CJUQcdTKSQhnT55t5NeJtSJWpannIQIu/E1p2wK1mQDZJf7jyGzEbQ"
74+
js: "https://cdn.rtlcss.com/bootstrap/v4.0.0/js/bootstrap.min.js"
75+
js_hash: "sha384-54+cucJ4QbVb99v8dcttx/0JRx4FHMmhOWi4W+xrXpKcsKQodCBwAvu3xxkZAwsH"
7476
jquery: "https://code.jquery.com/jquery-3.2.1.slim.min.js"
7577
jquery_hash: "sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
7678
popper: "https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"

_includes/ads.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<script async src="https://cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=getbootstrapcom" id="_carbonads_js"></script>
1+
<script async src="https://cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=rtlcsscom" id="_carbonads_js"></script>

_includes/docs-navbar.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<li class="nav-item">
1515
<a class="nav-link {% if page.title == "Examples" %}active{% endif %}" href="{{ site.baseurl }}/docs/{{ site.docs_version }}/examples/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Examples');">Examples</a>
1616
</li>
17+
<!--
1718
<li class="nav-item">
1819
<a class="nav-link" href="{{ site.themes }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Themes');" target="_blank" rel="noopener">Themes</a>
1920
</li>
@@ -26,6 +27,7 @@
2627
<li class="nav-item">
2728
<a class="nav-link" href="{{ site.blog }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Blog');" target="_blank" rel="noopener">Blog</a>
2829
</li>
30+
-->
2931
</ul>
3032
</div>
3133

@@ -36,9 +38,9 @@
3638
</a>
3739
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="bd-versions">
3840
<a class="dropdown-item active" href="{{ site.baseurl }}/docs/{{ site.docs_version }}/">Latest (4.x)</a>
39-
<a class="dropdown-item" href="https://v4-alpha.getbootstrap.com/">v4 Alpha 6</a>
40-
<a class="dropdown-item" href="https://getbootstrap.com/docs/3.3/">v3.3.7</a>
41-
<a class="dropdown-item" href="https://getbootstrap.com/2.3.2/">v2.3.2</a>
41+
<!-- <a class="dropdown-item" href="https://v4-alpha.getbootstrap.com/">v4 Alpha 6</a> -->
42+
<a class="dropdown-item" href="http://bootstrap.rtlcss.com/docs/3.3/">v3.3.7</a>
43+
<!-- <a class="dropdown-item" href="https://getbootstrap.com/2.3.2/">v2.3.2</a> -->
4244
</div>
4345
</li>
4446

@@ -52,11 +54,11 @@
5254
{%- include icons/twitter.svg class="navbar-nav-svg" -%}
5355
</a>
5456
</li>
55-
<li class="nav-item">
57+
<!-- <li class="nav-item">
5658
<a class="nav-link p-2" href="{{ site.slack }}" target="_blank" rel="noopener" aria-label="Slack">
5759
{%- include icons/slack.svg class="navbar-nav-svg" -%}
5860
</a>
59-
</li>
61+
</li> -->
6062
</ul>
6163

6264
<a class="btn btn-bd-download d-none d-lg-inline-block mb-3 mb-md-0 ml-md-3" href="{{ site.download.source }}">Download</a>

_includes/footer.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<li><a href="{{ site.baseurl }}/docs/{{ site.docs_version }}/examples/">Examples</a></li>
77
<li><a href="{{ site.baseurl }}/docs/{{ site.docs_version }}/about/overview/">About</a></li>
88
</ul>
9-
<p>Designed and built with all the love in the world by <a href="https://twitter.com/mdo" target="_blank" rel="noopener">@mdo</a> and <a href="https://twitter.com/fat" target="_blank" rel="noopener">@fat</a>. Maintained by the <a href="https://github.com/orgs/twbs/people">core team</a> with the help of <a href="https://github.com/twbs/bootstrap/graphs/contributors">our contributors</a>.</p>
9+
<p>This documentation is an adaptation made by <a href="https://github.com/MohammadYounes" target="_blank" rel="noopener">Mohammad Younes</a></p>
10+
<p>Original version designed and built with all the love in the world by <a href="https://twitter.com/mdo" target="_blank" rel="noopener">@mdo</a> and <a href="https://twitter.com/fat" target="_blank" rel="noopener">@fat</a>. Maintained by the <a href="https://github.com/orgs/twbs/people">core team</a> with the help of <a href="https://github.com/twbs/bootstrap/graphs/contributors">our contributors</a>.</p>
1011
<p>Currently v{{ site.current_version }}. Code licensed <a href="https://github.com/twbs/bootstrap/blob/master/LICENSE" target="_blank" rel="license noopener">MIT</a>, docs <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank" rel="license noopener">CC BY 3.0</a>.</p>
1112
</div>
1213
</footer>

_includes/header.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
<!-- Bootstrap core CSS -->
1616
{% if site.github %}
17-
<link href="{{ site.baseurl }}/dist/css/bootstrap.min.css" rel="stylesheet" integrity="{{ site.cdn.css_hash }}" crossorigin="anonymous">
17+
<link href="{{ site.baseurl }}/dist/css/rtl/bootstrap.min.css" rel="stylesheet" integrity="{{ site.cdn.rtlcss_hash }}" crossorigin="anonymous">
1818
{% else %}
19-
<link href="{{ site.baseurl }}/dist/css/bootstrap.css" rel="stylesheet">
19+
<link href="{{ site.baseurl }}/dist/css/rtl/bootstrap.css" rel="stylesheet">
2020
{% endif %}
2121

2222
<!-- Documentation extras -->
@@ -34,6 +34,6 @@
3434
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
3535
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
3636
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
37-
ga('create', 'UA-146052-10', 'getbootstrap.com');
37+
ga('create', 'UA-80003507-1', 'rtlcss.com');
3838
ga('send', 'pageview');
3939
</script>

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!doctype html>
2-
<html lang="en">
2+
<html lang="en" dir="rtl">
33
<head>
44
{% include header.html %}
55
</head>

_layouts/docs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!doctype html>
2-
<html lang="en">
2+
<html lang="en" dir="rtl">
33
<head>
44
{% include header.html %}
55
</head>

_layouts/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!doctype html>
2-
<html lang="en">
2+
<html lang="en" dir="rtl">
33
<head>
44
{% include header.html %}
55
</head>

_layouts/redirect.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!doctype html>
2-
<html lang="en">
2+
<html lang="en" dir="rtl">
33
<head>
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

0 commit comments

Comments
 (0)