Skip to content

Commit

Permalink
Update docs to append version string to CSS, JS.
Browse files Browse the repository at this point in the history
  • Loading branch information
ve3 committed Jun 11, 2024
1 parent bfd040c commit 28eed81
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ To get started, check out <https://getbootstrap.com/>!
This repository is a fork of original Bootstrap but keep only version 3. This is to make it use new functions and syntax and work with modern web browsers.
There is no new or extra features than original Bootstrap 3 and no new feature request here.

[See demo](https://rundiz.github.io/bootstrap3/)
[See a demo](https://rundiz.github.io/bootstrap3/)


## Table of contents
Expand All @@ -36,7 +36,7 @@ This repo. use [CSS relative color syntax](https://caniuse.com/css-relative-colo

Several quick start options are available:

* [Download the latest release](https://github.com/rundiz/bootstrap3/archive/v3.4.1.zip).
* [Download the latest release](https://github.com/rundiz/bootstrap3/releases/latest).
* Clone the repo: `git clone https://github.com/rundiz/bootstrap3.git`.

Read the [Getting started page](https://getbootstrap.com/docs/3.4/getting-started/) for information on the framework contents, templates and examples, and more.
Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ plugins:
# Custom vars
title: Bootstrap
description: "The world's most popular mobile-first and responsive front-end framework."
current_version: 3.4.1
current_version: 3.4.1.0
docs_version: 3.4
repo: https://github.com/twbs/bootstrap
sass_repo: https://github.com/twbs/bootstrap-sass
Expand Down
6 changes: 3 additions & 3 deletions docs/_includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@
<script>window.jQuery || document.write('<script src="{{ site.baseurl }}/assets/js/vendor/jquery.min.js"><\/script>')</script>

{% if site.github %}
<script src="{{ site.baseurl }}/dist/js/bootstrap.min.js"></script>
<script src="{{ site.baseurl }}/dist/js/bootstrap.min.js?v={{ site.current_version }}"></script>
{% else %}
<script src="{{ site.baseurl }}/dist/js/bootstrap.js"></script>
<script src="{{ site.baseurl }}/dist/js/bootstrap.js?v={{ site.current_version }}"></script>
{% endif %}

{% if page.layout == "default" %}
<script src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script>
{% endif %}

{% if site.github %}
<script src="{{ site.baseurl }}/assets/js/docs.min.js"></script>
<script src="{{ site.baseurl }}/assets/js/docs.min.js?v={{ site.current_version }}"></script>
{% else %}
{% for file in site.data.configBridge.paths.docsJs %}
<script src="{{ file | replace_first: '..', site.baseurl }}"></script>
Expand Down
12 changes: 6 additions & 6 deletions docs/_includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@

<!-- Bootstrap core CSS -->
{% if site.github %}
<link href="{{ site.baseurl }}/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="{{ site.baseurl }}/dist/css/bootstrap.min.css?v={{ site.current_version }}" rel="stylesheet">
{% else %}
<link href="{{ site.baseurl }}/dist/css/bootstrap.css" rel="stylesheet">
<link href="{{ site.baseurl }}/dist/css/bootstrap.css?v={{ site.current_version }}" rel="stylesheet">
{% endif %}

{% if page.slug == "css" or page.slug == "components" or page.slug == "js" %}
<!-- Optional Bootstrap Theme -->
{% if site.github %}
<link href="data:text/css;charset=utf-8," data-href="{{ site.baseurl }}/dist/css/bootstrap-theme.min.css" rel="stylesheet" id="bs-theme-stylesheet">
<link href="data:text/css;charset=utf-8," data-href="{{ site.baseurl }}/dist/css/bootstrap-theme.min.css?v={{ site.current_version }}" rel="stylesheet" id="bs-theme-stylesheet">
{% else %}
<link href="data:text/css;charset=utf-8," data-href="{{ site.baseurl }}/dist/css/bootstrap-theme.css" rel="stylesheet" id="bs-theme-stylesheet">
<link href="data:text/css;charset=utf-8," data-href="{{ site.baseurl }}/dist/css/bootstrap-theme.css?v={{ site.current_version }}" rel="stylesheet" id="bs-theme-stylesheet">
{% endif %}
{% endif %}

Expand All @@ -36,9 +36,9 @@

<!-- Documentation extras -->
{% if site.github %}
<link href="{{ site.baseurl }}/assets/css/docs.min.css" rel="stylesheet">
<link href="{{ site.baseurl }}/assets/css/docs.min.css?v={{ site.current_version }}" rel="stylesheet">
{% else %}
<link href="{{ site.baseurl }}/assets/css/docs.css" rel="stylesheet">
<link href="{{ site.baseurl }}/assets/css/docs.css?v={{ site.current_version }}" rel="stylesheet">
{% endif %}
<!--[if lt IE 9]><script src="{{ site.baseurl }}/assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

Expand Down

0 comments on commit 28eed81

Please sign in to comment.