0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00
Bootstrap/grunt
Chris Rebert ead5ed6d73 Fix docs asset file paths in /grunt/configBridge.json (#20178)
Previously, when running the docs locally, the site, rooted at:
    http://localhost:9001/
would reference docs assets using relative URLs such as:
    /../assets/js/vendor/anchor.min.js
which is equivalent to:
    http://localhost:9001/../assets/js/vendor/anchor.min.js
which is nonsense, since the root directory has no parent directory.
Apparently browsers silently ignore this extra '..', hence why this wasn't noticed until now.
But if you adjust Jekyll's `baseurl` setting, this mistake causes incorrect URLs to get generated.

This commit corrects the problem by removing the extra '../' from the paths.

These paths are also referenced in the Gruntfile, where the fix actually allows us to simplify the code.
Previously, in the Gruntfile, we were doing, e.g.:
    path.join('./docs/assets', '../assets/js/vendor/anchor.min.js')
which calculates to:
    ./docs/assets/../assets/js/vendor/anchor.min.js
which can be simplified to:
    ./docs/assets/js/vendor/anchor.min.js
So we can remove the '/assets' suffix from the left argument
and the '../' prefix from the right argument
and still obtain the same result.
2016-06-26 16:42:13 -07:00
..
bs-sass-compile specify expanded output style for generated css with libsass 2015-08-09 23:16:43 -07:00
change-version.js Add "The Bootstrap Authors" to copyright notices (#19936) 2016-05-20 09:04:31 -07:00
configBridge.json Fix docs asset file paths in /grunt/configBridge.json (#20178) 2016-06-26 16:42:13 -07:00
npm-shrinkwrap.json Replace grunt-postcss with postcss-cli (#20140) 2016-06-20 16:18:21 -07:00
postcss.js Replace grunt-postcss with postcss-cli (#20140) 2016-06-20 16:18:21 -07:00
sauce_browsers.yml Add Android to Sauce testing 2016-03-15 23:05:02 -07:00