Skip to content

Commit

Permalink
implementing method for copying the resulting build files (and source…
Browse files Browse the repository at this point in the history
… svg's) to /docs/dist folder allowing them to be used in GitHub page (see devicons#394)
  • Loading branch information
amacado committed Dec 28, 2020
1 parent 878b0b3 commit d309a68
Show file tree
Hide file tree
Showing 574 changed files with 24,228 additions and 7 deletions.
2 changes: 1 addition & 1 deletion devicon.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ var devicon = angular.module('devicon', ['ngSanitize', 'ngAnimate']);

devicon.controller('IconListCtrl', function($scope, $http, $compile) {

var baseUrl = window.location.origin;
var baseUrl = window.location.origin + '/dist';

// Get devicon.json
// Get devicon.json
$http.get(baseUrl + '/devicon.json').success(function(data) {

/*
Expand Down
12 changes: 12 additions & 0 deletions docs/dist/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# About `/dist`

This folder contains copied versions of `fonts`, `stylesheets` and `svg` by the root directory of this repository.
It's copied by execution of the custom gulp command:
```gulp
gulp publishDocs
```

This action is run via a GitHub workflow step in `build_icons.yml`

Those copied results in this `dist` folder are required for showing a public available GitHub page which
is served via the `/docs` directory (where our source is stored outside the `/docs` directory).
Loading

0 comments on commit d309a68

Please sign in to comment.