Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
d2f29fd6
Commit
d2f29fd6
authored
10 years ago
by
Thomas McDonald
Browse files
Options
Download
Email Patches
Plain Diff
remove unused font files
parent
720d02c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fonts/glyphicons-halflings-regular.woff2
+0
-0
fonts/glyphicons-halflings-regular.woff2
grunt/bs-glyphicons-data-generator.js
+0
-41
grunt/bs-glyphicons-data-generator.js
with
0 additions
and
41 deletions
+0
-41
fonts/glyphicons-halflings-regular.woff2
deleted
100644 → 0
+
0
-
0
View file @
720d02c5
File deleted
This diff is collapsed.
Click to expand it.
grunt/bs-glyphicons-data-generator.js
deleted
100644 → 0
+
0
-
41
View file @
720d02c5
/*!
* Bootstrap Grunt task for Glyphicons data generation
* http://getbootstrap.com
* Copyright 2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
'
use strict
'
;
var
fs
=
require
(
'
fs
'
);
module
.
exports
=
function
generateGlyphiconsData
(
grunt
)
{
// Pass encoding, utf8, so `readFileSync` will return a string instead of a
// buffer
var
glyphiconsFile
=
fs
.
readFileSync
(
'
less/glyphicons.less
'
,
'
utf8
'
);
var
glyphiconsLines
=
glyphiconsFile
.
split
(
'
\n
'
);
// Use any line that starts with ".glyphicon-" and capture the class name
var
iconClassName
=
/^
\.(
glyphicon-
[
a-zA-Z0-9-
]
+
)
/
;
var
glyphiconsData
=
'
# This file is generated via Grunt task. **Do not edit directly.**
\n
'
+
'
# See the
\'
build-glyphicons-data
\'
task in Gruntfile.js.
\n\n
'
;
var
glyphiconsYml
=
'
docs/_data/glyphicons.yml
'
;
for
(
var
i
=
0
,
len
=
glyphiconsLines
.
length
;
i
<
len
;
i
++
)
{
var
match
=
glyphiconsLines
[
i
].
match
(
iconClassName
);
if
(
match
!==
null
)
{
glyphiconsData
+=
'
-
'
+
match
[
1
]
+
'
\n
'
;
}
}
// Create the `_data` directory if it doesn't already exist
if
(
!
fs
.
existsSync
(
'
docs/_data
'
))
{
fs
.
mkdirSync
(
'
docs/_data
'
);
}
try
{
fs
.
writeFileSync
(
glyphiconsYml
,
glyphiconsData
);
}
catch
(
err
)
{
grunt
.
fail
.
warn
(
err
);
}
grunt
.
log
.
writeln
(
'
File
'
+
glyphiconsYml
.
cyan
+
'
created.
'
);
};
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
Menu
Explore
Projects
Groups
Snippets