Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 4 additions & 43 deletions .github/workflows/publish_npm_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ on:
- 'v*.*.*'

permissions:
contents: write
pages: write
id-token: write
contents: read

jobs:
publish:
Expand Down Expand Up @@ -153,43 +151,6 @@ jobs:
git commit -m "docs: snapshot ${DOCS_VERSION} release docs"
git push origin HEAD:main

build_docs:
runs-on: ubuntu-latest
name: Build release docs
needs:
- publish
- snapshot_docs
if: always() && needs.publish.result == 'success' && (needs.snapshot_docs.result == 'success' || needs.snapshot_docs.result == 'skipped')
steps:
- uses: actions/checkout@v6
with:
ref: main

- name: Setup node
uses: actions/setup-node@v6
with:
node-version: '20.19'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build docs site
run: npm run docs:build

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/build

deploy_docs:
runs-on: ubuntu-latest
name: Deploy release docs
needs: build_docs
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
# Docs deployments must come from main because the github-pages environment
# is protected against tag refs. When a release needs a new versioned docs
# snapshot, this workflow pushes it to main and deploy-docs.yml publishes it.
9 changes: 0 additions & 9 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,6 @@ module.exports = function (grunt) {
'**/*'
],
dest: 'docs/static/dist/'
},
{
expand: true,
cwd: 'node_modules/@fortawesome/fontawesome-free/',
src: [
'css/all.min.css',
'webfonts/*'
],
dest: 'docs/static/vendor/fontawesome/'
}
]
}
Expand Down
1 change: 1 addition & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const config = {

stylesheets: [
'https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css',
'https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@7.2.0/css/all.min.css',
withBaseUrl('dist/css/bootstrap-select.min.css')
],

Expand Down
2 changes: 0 additions & 2 deletions docs/src/components/LiveExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ function LiveExampleInner ({ html, className = '', style }) {
return;
}

destroyInstances();

// Keep the marker class in place so a remount can't strand the examples
// as plain selects before the assets finish loading.
instances = Array.from(exampleRef.current.querySelectorAll('select.selectpicker')).map(function (select) {
Expand Down
1 change: 0 additions & 1 deletion docs/src/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('../../../node_modules/@fortawesome/fontawesome-free/css/all.min.css');

:root {
--ifm-color-primary: #181618;
Expand Down
2 changes: 1 addition & 1 deletion docs/static/examples/tags-editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>bootstrap-select tags editor example</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="../vendor/fontawesome/css/all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@7.2.0/css/all.min.css">
<link rel="stylesheet" href="../dist/css/bootstrap-select.min.css">
</head>
<body class="p-4">
Expand Down
Loading