Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PurgeCSS to the docs #275

Merged
merged 1 commit into from Jun 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/assets/scss/_ads.scss
Expand Up @@ -33,6 +33,7 @@

.carbon-text {
margin-bottom: .5rem;
text-decoration: none;

@media (min-width: 768px) {
font-size: .875rem;
Expand Down
2 changes: 1 addition & 1 deletion docs/static/assets/css/bootstrap.min.css

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -20,6 +20,7 @@
"start": "npm run docs-serve",
"docs-serve": "hugo server --port 4000 --disableFastRender",
"docs-build": "hugo --cleanDestinationDir",
"docs-purge": "npm run docs-build && npx purgecss --css docs/static/assets/css/bootstrap.min.css --content _site/**/*.html,_site/index.html --output docs/static/assets/css/",
"pages": "node build/build-pages.js",
"icons": "node build/build-svgs.js",
"icons-zip": "cross-env-shell \"shx rm -rf bootstrap-icons-$npm_package_version && shx cp -r icons/ bootstrap-icons-$npm_package_version && zip -r9 bootstrap-icons-$npm_package_version.zip bootstrap-icons-$npm_package_version && shx rm -rf bootstrap-icons-$npm_package_version\"",
Expand All @@ -46,6 +47,7 @@
"linkinator": "^2.1.1",
"npm-run-all": "^4.1.5",
"postcss-cli": "^7.1.1",
"purgecss": "^2.2.1",
"shx": "^0.3.2",
"stylelint": "^13.5.0",
"stylelint-config-twbs-bootstrap": "^2.0.2",
Expand Down