Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
cab6f7d1
Commit
cab6f7d1
authored
8 years ago
by
Bardi Harborow
Browse files
Options
Download
Email Patches
Plain Diff
More config tweaks.
parent
1ecb74e0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
.babelrc
+2
-2
.babelrc
Gruntfile.js
+1
-10
Gruntfile.js
docs/.htmllintrc
+1
-1
docs/.htmllintrc
docs/_includes/footer.html
+4
-3
docs/_includes/footer.html
docs/_plugins/bridge.rb
+0
-10
docs/_plugins/bridge.rb
grunt/configBridge.json
+0
-10
grunt/configBridge.json
grunt/upload-preview.sh
+1
-2
grunt/upload-preview.sh
with
9 additions
and
38 deletions
+9
-38
js/
.babelrc
→
.babelrc
+
2
-
2
View file @
cab6f7d1
...
...
@@ -3,8 +3,8 @@
[
"es2015",
{
"
modules": fals
e,
"
loose": tru
e
"
loose": tru
e,
"
modules": fals
e
}
]
],
...
...
This diff is collapsed.
Click to expand it.
Gruntfile.js
+
1
-
10
View file @
cab6f7d1
...
...
@@ -16,17 +16,8 @@ module.exports = function (grunt) {
return
string
.
replace
(
/
[
-
\\
^$*+?.()|[
\]
{}
]
/g
,
'
\\
$&
'
)
}
var
path
=
require
(
'
path
'
)
var
isTravis
=
require
(
'
is-travis
'
)
var
configBridge
=
grunt
.
file
.
readJSON
(
'
./grunt/configBridge.json
'
,
{
encoding
:
'
utf8
'
})
Object
.
keys
(
configBridge
.
paths
).
forEach
(
function
(
key
)
{
configBridge
.
paths
[
key
].
forEach
(
function
(
val
,
i
,
arr
)
{
arr
[
i
]
=
path
.
join
(
'
./docs
'
,
val
)
})
})
// Project configuration.
grunt
.
initConfig
({
...
...
@@ -75,7 +66,7 @@ module.exports = function (grunt) {
},
dist
:
{
options
:
{
extends
:
'
../../
js/
.babelrc
'
extends
:
'
../../.babelrc
'
},
files
:
{
'
<%= concat.bootstrap.dest %>
'
:
'
<%= concat.bootstrap.dest %>
'
...
...
This diff is collapsed.
Click to expand it.
docs/.htmllintrc
+
1
-
1
View file @
cab6f7d1
...
...
@@ -5,7 +5,7 @@
"class-style": "dash",
"doctype-first": true,
"doctype-html5": true,
"fig-req-figcaption":
tru
e,
"fig-req-figcaption":
fals
e,
"html-valid-content-model": false,
"id-class-ignore-regex": "(onclick|content|[a-z]+([A-Z][a-z])+)",
"id-class-style": "dash",
...
...
This diff is collapsed.
Click to expand it.
docs/_includes/footer.html
+
4
-
3
View file @
cab6f7d1
...
...
@@ -25,9 +25,10 @@
{% if site.github %}
<script
src=
"{{ site.baseurl }}/assets/js/docs.min.js"
></script>
{% else %}
{% for file in site.data.configBridge.paths.docsJs %}
<script
src=
"{{ site.baseurl }}/{{ file }}"
></script>
{% endfor %}
<script
src=
"{{ site.baseurl }}/assets/js/vendor/anchor.min.js"
></script>
<script
src=
"{{ site.baseurl }}/assets/js/vendor/clipboard.min.js"
></script>
<script
src=
"{{ site.baseurl }}/assets/js/vendor/holder.min.js"
></script>
<script
src=
"{{ site.baseurl }}/assets/js/src/application.js"
></script>
{% endif %}
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
...
...
This diff is collapsed.
Click to expand it.
docs/_plugins/bridge.rb
deleted
100644 → 0
+
0
-
10
View file @
1ecb74e0
require
'yaml'
module
Bridge
class
Generator
<
Jekyll
::
Generator
def
generate
(
site
)
path
=
File
.
join
(
site
.
source
,
"../grunt/configBridge.json"
)
site
.
data
[
"configBridge"
]
=
YAML
.
load_file
(
path
)
end
end
end
This diff is collapsed.
Click to expand it.
grunt/configBridge.json
deleted
100644 → 0
+
0
-
10
View file @
1ecb74e0
{
"paths"
:
{
"docsJs"
:
[
"assets/js/vendor/anchor.min.js"
,
"assets/js/vendor/clipboard.min.js"
,
"assets/js/vendor/holder.min.js"
,
"assets/js/src/application.js"
]
}
}
This diff is collapsed.
Click to expand it.
grunt/upload-preview.sh
+
1
-
2
View file @
cab6f7d1
...
...
@@ -6,8 +6,7 @@ if [ "$TRAVIS_REPO_SLUG" != twbs-savage/bootstrap ]; then exit 0; fi
# Add build metadata to version
sed
-i
"/^current_version:/ s/
\$
/+pr.
${
TRAVIS_COMMIT
}
/"
_config.yml
# Fix URLs since the site's root is now a subdirectory
echo
"baseurl: /c/
${
TRAVIS_COMMIT
}
"
>>
_config.yml
bundle
exec
jekyll build
--destination
"
$TRAVIS_COMMIT
"
bundle
exec
jekyll build
--destination
"
$TRAVIS_COMMIT
"
--baseurl
"/c/
${
TRAVIS_COMMIT
}
"
# Install gcloud & gsutil
GSUTIL_VERSION
=
$(
gsutil version |
cut
-d
' '
-f
3
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment