@@ -120,35 +120,22 @@ private function copyFiles(string $target): void
120120 {
121121 $ dir = $ this ->getDirectory ($ target . '.css ' );
122122
123- \file_put_contents (
124- $ dir . 'bootstrap.min.css ' ,
125- \str_replace (
126- 'url(../fonts/ ' ,
127- 'url(../.fonts/ ' ,
128- \file_get_contents ($ this ->templatePath . 'css/bootstrap.min.css ' )
129- )
130-
131- );
132-
123+ \copy ($ this ->templatePath . 'css/bootstrap.min.css ' , $ dir . 'bootstrap.min.css ' );
133124 \copy ($ this ->templatePath . 'css/nv.d3.min.css ' , $ dir . 'nv.d3.min.css ' );
134125 \copy ($ this ->templatePath . 'css/style.css ' , $ dir . 'style.css ' );
135126 \copy ($ this ->templatePath . 'css/custom.css ' , $ dir . 'custom.css ' );
127+ \copy ($ this ->templatePath . 'css/octicons.css ' , $ dir . 'octicons.css ' );
136128
137- $ dir = $ this ->getDirectory ($ target . '.fonts ' );
138- \copy ($ this ->templatePath . 'fonts/glyphicons-halflings-regular.eot ' , $ dir . 'glyphicons-halflings-regular.eot ' );
139- \copy ($ this ->templatePath . 'fonts/glyphicons-halflings-regular.svg ' , $ dir . 'glyphicons-halflings-regular.svg ' );
140- \copy ($ this ->templatePath . 'fonts/glyphicons-halflings-regular.ttf ' , $ dir . 'glyphicons-halflings-regular.ttf ' );
141- \copy ($ this ->templatePath . 'fonts/glyphicons-halflings-regular.woff ' , $ dir . 'glyphicons-halflings-regular.woff ' );
142- \copy ($ this ->templatePath . 'fonts/glyphicons-halflings-regular.woff2 ' , $ dir . 'glyphicons-halflings-regular.woff2 ' );
129+ $ dir = $ this ->getDirectory ($ target . '.icons ' );
130+ \copy ($ this ->templatePath . 'icons/file-code.svg ' , $ dir . 'file-code.svg ' );
131+ \copy ($ this ->templatePath . 'icons/file-directory.svg ' , $ dir . 'file-directory.svg ' );
143132
144133 $ dir = $ this ->getDirectory ($ target . '.js ' );
145134 \copy ($ this ->templatePath . 'js/bootstrap.min.js ' , $ dir . 'bootstrap.min.js ' );
135+ \copy ($ this ->templatePath . 'js/popper.min.js ' , $ dir . 'popper.min.js ' );
146136 \copy ($ this ->templatePath . 'js/d3.min.js ' , $ dir . 'd3.min.js ' );
147- \copy ($ this ->templatePath . 'js/holder.min.js ' , $ dir . 'holder.min.js ' );
148- \copy ($ this ->templatePath . 'js/html5shiv.min.js ' , $ dir . 'html5shiv.min.js ' );
149137 \copy ($ this ->templatePath . 'js/jquery.min.js ' , $ dir . 'jquery.min.js ' );
150138 \copy ($ this ->templatePath . 'js/nv.d3.min.js ' , $ dir . 'nv.d3.min.js ' );
151- \copy ($ this ->templatePath . 'js/respond.min.js ' , $ dir . 'respond.min.js ' );
152139 \copy ($ this ->templatePath . 'js/file.js ' , $ dir . 'file.js ' );
153140 }
154141
0 commit comments