Skip to content

Commit 0921bfe

Browse files
committed
update docs
1 parent e785399 commit 0921bfe

File tree

2 files changed

+41
-5
lines changed

2 files changed

+41
-5
lines changed

bootstrap/docs/getting-started/introduction/index.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,9 @@ <h2 id="starter-template">Starter template <a class="anchor-link" href="#starter
13281328
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">script</span> <span class="na">src</span><span class="o">=</span><span class="s">&#34;https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/js/coreui.bundle.min.js&#34;</span> <span class="na">integrity</span><span class="o">=</span><span class="s">&#34;sha384-yoEOGIfJg9mO8eOS9dgSYBXwb2hCCE+AMiJYavhAofzm8AoyVE241kjON695K1v5&#34;</span> <span class="na">crossorigin</span><span class="o">=</span><span class="s">&#34;anonymous&#34;</span><span class="p">&gt;&lt;/</span><span class="nt">script</span><span class="p">&gt;</span>
13291329
</span></span><span class="line"><span class="cl">
13301330
</span></span><span class="line"><span class="cl"> <span class="c">&lt;!-- Option 2: CoreUI PRO for Bootstrap Bundle with Popper --&gt;</span>
1331-
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">script</span> <span class="na">src</span><span class="o">=</span><span class="s">&#34;https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/js/coreui.bundle.min.js&#34;</span> <span class="na">integrity</span><span class="o">=</span><span class="s">&#34;sha384-+Ug5YaEFOtOtIaZG8WkBSUnbFWwZrEkpXgJT1icRSEYUg3uBSsWiA8HHIVUvGzKv&#34;</span> <span class="na">crossorigin</span><span class="o">=</span><span class="s">&#34;anonymous&#34;</span><span class="p">&gt;&lt;/</span><span class="nt">script</span><span class="p">&gt;</span>
1331+
</span></span><span class="line"><span class="cl"> <span class="c">&lt;!--
1332+
</span></span></span><span class="line"><span class="cl"><span class="c"> &lt;script src=&#34;https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/js/coreui.bundle.min.js&#34; integrity=&#34;sha384-+Ug5YaEFOtOtIaZG8WkBSUnbFWwZrEkpXgJT1icRSEYUg3uBSsWiA8HHIVUvGzKv&#34; crossorigin=&#34;anonymous&#34;&gt;&lt;/script&gt;
1333+
</span></span></span><span class="line"><span class="cl"><span class="c"> --&gt;</span>
13321334
</span></span><span class="line"><span class="cl">
13331335
</span></span><span class="line"><span class="cl"> <span class="c">&lt;!-- Option 3: Separate Popper and CoreUI/CoreUI PRO for Bootstrap JS --&gt;</span>
13341336
</span></span><span class="line"><span class="cl"> <span class="c">&lt;!--

bootstrap/docs/getting-started/rtl/index.html

+38-4
Original file line numberDiff line numberDiff line change
@@ -1071,8 +1071,34 @@ <h2 id="required-html">Required HTML <a class="anchor-link" href="#required-html
10711071
<li>Add an appropriate <code>lang</code> attribute, like <code>lang=&quot;ar&quot;</code>, on the <code>&lt;html&gt;</code> element.</li>
10721072
</ol>
10731073
<p>From there, you&rsquo;ll need to include an RTL version of our CSS. For example, here&rsquo;s the stylesheet for our compiled and minified CSS with RTL enabled:</p>
1074-
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">link</span> <span class="na">rel</span><span class="o">=</span><span class="s">&#34;stylesheet&#34;</span> <span class="na">href</span><span class="o">=</span><span class="s">&#34;https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/css/coreui.rtl.min.css&#34;</span> <span class="na">integrity</span><span class="o">=</span><span class="s">&#34;sha384-p5xWx+E6LUOS14PKjUpsRN3Nqr8VkgwOU6aqb5904LfV33ikgoSZnFqkucmc9ejA&#34;</span> <span class="na">crossorigin</span><span class="o">=</span><span class="s">&#34;anonymous&#34;</span><span class="p">&gt;</span>
1075-
</span></span></code></pre></div><h3 id="starter-template">Starter template <a class="anchor-link" href="#starter-template" aria-label="Link to this section: Starter template"></a></h3>
1074+
1075+
1076+
<ul class="nav nav-underline-border docs-code-tabs" role="tablist">
1077+
1078+
<li class="nav-item mb-0" role="presentation">
1079+
<button class="nav-link active" data-coreui-toggle="tab" data-coreui-target="#rtl-css-coreui" type="button" role="tab">CoreUI</button>
1080+
</li>
1081+
1082+
<li class="nav-item mb-0" role="presentation">
1083+
<button class="nav-link " data-coreui-toggle="tab" data-coreui-target="#rtl-css-coreui-pro" type="button" role="tab">CoreUI PRO</button>
1084+
</li>
1085+
1086+
</ul>
1087+
<div class="tab-content docs-code-tab-content">
1088+
1089+
<div class="tab-pane fade show active" id="rtl-css-coreui" role="tabpanel" aria-labelledby="CoreUI-tab" tabindex="0">
1090+
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">link</span> <span class="na">rel</span><span class="o">=</span><span class="s">&#34;stylesheet&#34;</span> <span class="na">href</span><span class="o">=</span><span class="s">&#34;https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/css/coreui.rtl.min.css&#34;</span> <span class="na">integrity</span><span class="o">=</span><span class="s">&#34;sha384-p5xWx+E6LUOS14PKjUpsRN3Nqr8VkgwOU6aqb5904LfV33ikgoSZnFqkucmc9ejA&#34;</span> <span class="na">crossorigin</span><span class="o">=</span><span class="s">&#34;anonymous&#34;</span><span class="p">&gt;</span>
1091+
</span></span></code></pre></div>
1092+
</div>
1093+
1094+
<div class="tab-pane fade " id="rtl-css-coreui-pro" role="tabpanel" aria-labelledby="CoreUI PRO-tab" tabindex="0">
1095+
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">link</span> <span class="na">rel</span><span class="o">=</span><span class="s">&#34;stylesheet&#34;</span> <span class="na">href</span><span class="o">=</span><span class="s">&#34;https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/css/coreui.rtl.min.css&#34;</span> <span class="na">integrity</span><span class="o">=</span><span class="s">&#34;sha384-Ckx+YwzO2ZiMlnEKmz7fXDaJYTIVcg4gjzN2E+KWwVfoaaS8vJDLE3Dt7NJ/p+66&#34;</span> <span class="na">crossorigin</span><span class="o">=</span><span class="s">&#34;anonymous&#34;</span><span class="p">&gt;</span>
1096+
</span></span></code></pre></div>
1097+
</div>
1098+
1099+
</div>
1100+
1101+
<h3 id="starter-template">Starter template <a class="anchor-link" href="#starter-template" aria-label="Link to this section: Starter template"></a></h3>
10761102
<p>You can see the above requirements reflected in this modified RTL starter template.</p>
10771103
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="cp">&lt;!doctype html&gt;</span>
10781104
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">&#34;ar&#34;</span> <span class="na">dir</span><span class="o">=</span><span class="s">&#34;rtl&#34;</span><span class="p">&gt;</span>
@@ -1081,9 +1107,12 @@ <h2 id="required-html">Required HTML <a class="anchor-link" href="#required-html
10811107
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">&#34;utf-8&#34;</span><span class="p">&gt;</span>
10821108
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">meta</span> <span class="na">name</span><span class="o">=</span><span class="s">&#34;viewport&#34;</span> <span class="na">content</span><span class="o">=</span><span class="s">&#34;width=device-width, initial-scale=1&#34;</span><span class="p">&gt;</span>
10831109
</span></span><span class="line"><span class="cl">
1084-
</span></span><span class="line"><span class="cl"> <span class="c">&lt;!-- CoreUI for Bootstrap CSS --&gt;</span>
1110+
</span></span><span class="line"><span class="cl"> <span class="c">&lt;!-- Option 1: CoreUI for Bootstrap CSS --&gt;</span>
10851111
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">link</span> <span class="na">rel</span><span class="o">=</span><span class="s">&#34;stylesheet&#34;</span> <span class="na">href</span><span class="o">=</span><span class="s">&#34;https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/css/coreui.rtl.min.css&#34;</span> <span class="na">integrity</span><span class="o">=</span><span class="s">&#34;sha384-p5xWx+E6LUOS14PKjUpsRN3Nqr8VkgwOU6aqb5904LfV33ikgoSZnFqkucmc9ejA&#34;</span> <span class="na">crossorigin</span><span class="o">=</span><span class="s">&#34;anonymous&#34;</span><span class="p">&gt;</span>
10861112
</span></span><span class="line"><span class="cl">
1113+
</span></span><span class="line"><span class="cl"> <span class="c">&lt;!-- Option 2: CoreUI PRO for Bootstrap CSS --&gt;</span>
1114+
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">link</span> <span class="na">rel</span><span class="o">=</span><span class="s">&#34;stylesheet&#34;</span> <span class="na">href</span><span class="o">=</span><span class="s">&#34;https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/css/coreui.rtl.min.css&#34;</span> <span class="na">integrity</span><span class="o">=</span><span class="s">&#34;sha384-Ckx+YwzO2ZiMlnEKmz7fXDaJYTIVcg4gjzN2E+KWwVfoaaS8vJDLE3Dt7NJ/p+66&#34;</span> <span class="na">crossorigin</span><span class="o">=</span><span class="s">&#34;anonymous&#34;</span><span class="p">&gt;</span>
1115+
</span></span><span class="line"><span class="cl">
10871116
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">title</span><span class="p">&gt;</span>مرحبا بالعالم!<span class="p">&lt;/</span><span class="nt">title</span><span class="p">&gt;</span>
10881117
</span></span><span class="line"><span class="cl"> <span class="p">&lt;/</span><span class="nt">head</span><span class="p">&gt;</span>
10891118
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">body</span><span class="p">&gt;</span>
@@ -1094,7 +1123,12 @@ <h2 id="required-html">Required HTML <a class="anchor-link" href="#required-html
10941123
</span></span><span class="line"><span class="cl"> <span class="c">&lt;!-- Option 1: CoreUI for Bootstrap Bundle with Popper --&gt;</span>
10951124
</span></span><span class="line"><span class="cl"> <span class="p">&lt;</span><span class="nt">script</span> <span class="na">src</span><span class="o">=</span><span class="s">&#34;https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/js/coreui.bundle.min.js&#34;</span> <span class="na">integrity</span><span class="o">=</span><span class="s">&#34;sha384-yoEOGIfJg9mO8eOS9dgSYBXwb2hCCE+AMiJYavhAofzm8AoyVE241kjON695K1v5&#34;</span> <span class="na">crossorigin</span><span class="o">=</span><span class="s">&#34;anonymous&#34;</span><span class="p">&gt;&lt;/</span><span class="nt">script</span><span class="p">&gt;</span>
10961125
</span></span><span class="line"><span class="cl">
1097-
</span></span><span class="line"><span class="cl"> <span class="c">&lt;!-- Option 2: Separate Popper and CoreUI for Bootstrap JS --&gt;</span>
1126+
</span></span><span class="line"><span class="cl"> <span class="c">&lt;!-- Option 2: CoreUI PRO for Bootstrap Bundle with Popper --&gt;</span>
1127+
</span></span><span class="line"><span class="cl"> <span class="c">&lt;!--
1128+
</span></span></span><span class="line"><span class="cl"><span class="c"> &lt;script src=&#34;https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/js/coreui.bundle.min.js&#34; integrity=&#34;sha384-+Ug5YaEFOtOtIaZG8WkBSUnbFWwZrEkpXgJT1icRSEYUg3uBSsWiA8HHIVUvGzKv&#34; crossorigin=&#34;anonymous&#34;&gt;&lt;/script&gt;
1129+
</span></span></span><span class="line"><span class="cl"><span class="c"> --&gt;</span>
1130+
</span></span><span class="line"><span class="cl">
1131+
</span></span><span class="line"><span class="cl"> <span class="c">&lt;!-- Option 3: Separate Popper and CoreUI for Bootstrap JS --&gt;</span>
10981132
</span></span><span class="line"><span class="cl"> <span class="c">&lt;!--
10991133
</span></span></span><span class="line"><span class="cl"><span class="c"> &lt;script src=&#34;https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js&#34; integrity=&#34;sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r&#34; crossorigin=&#34;anonymous&#34;&gt;&lt;/script&gt;
11001134
</span></span></span><span class="line"><span class="cl"><span class="c"> &lt;script src=&#34;https://cdn.jsdelivr.net/npm/@coreui/[email protected]/dist/js/coreui.min.js&#34; integrity=&#34;sha384-kiD3MgQ2eSqSjSfkoKS7/ipCvMvkfmpWHk3WRppeqnYxCVF0wQ+7gHzkXfJyvHbQ&#34; crossorigin=&#34;anonymous&#34;&gt;&lt;/script&gt;

0 commit comments

Comments
 (0)