aboutsummaryrefslogtreecommitdiff
path: root/site/assets/js
AgeCommit message (Collapse)AuthorFilesLines
2024-03-26Fix typo in `site/assets/js/snippets.js` comments (#39840)Julien Déramond1-1/+1
2024-03-19docs: move algolia config to hugo configXhmikosR1-3/+6
2024-03-19docs: use defer when possible for JSXhmikosR1-1/+1
2024-03-19docs: improve stackblitz.jsXhmikosR1-11/+10
* tweak indentation * stop extending the sdk object * conditionally add `index.js`
2024-03-19docs: bundle assets with HugoXhmikosR8-196/+296
Also: * load any docs' third-party dependencies from node_modules (except for examples) * exclude docsearch from layouts that don't use it * preconnect to algolia only when not examples layout * switch to `RelPermalink` * refactor JS assets into partials
2024-02-05Bump copyright year to 2024Julien Déramond3-3/+3
2023-05-31Update code-examples.js (#38675)XhmikosR1-6/+7
2023-04-26Add new docsref page, fix docs border-radius issues (#38491)Mark Otto1-2/+3
* Add new docsref page, fix docs border-radius issues * Remove commented out code * Update docsref.md * Fix no-code example, fix mobile styles * Updates from review * Fix block margin, remove margin-right from pre on mobile since no clipboard icons, adjust masthead snippet * Fix errant styles for border-radius on homepage --------- Co-authored-by: XhmikosR <[email protected]>
2023-03-30Fix clipboard code (#38380)Patrick H. Lauke1-1/+1
2023-03-27Add js-docs shortcode to ensure consistency between doc and js code (#38316)Hannah Issermann1-3/+11
Co-authored-by: XhmikosR <[email protected]>
2023-03-27docs: remove trailing newline when copying snippets (#38321)XhmikosR1-2/+4
2023-02-11Remove `debug` references from DocSearch v2 (#38032)Julien Déramond1-3/+1
2023-01-02fix live toast demo (#37590)AucT1-8/+8
* fix live toast demo * Fix live toast demo * Update snippets.js * Update toasts.md * Update snippets.js * Code review comments addressed Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2023-01-01Docs: remove remnants of Twitter / bump dates (#37779)Patrick H. Lauke3-6/+3
2022-12-18docs: move color-mode script (#37658)XhmikosR1-62/+0
* docs: move color-mode script * Move color-modes.js in static folder * Async load color-modes.js * Switch to DOMContentLoaded * Revert async loading
2022-12-01code-examples.js: switch to `firstElementChild` (#37570)XhmikosR1-1/+1
This ensures that we will get the first element child and not text
2022-11-28Docs: rewrite/reorganise carousel docs page (#37354)Patrick H. Lauke1-0/+9
* Instantiate/initialize all non-autoplaying carousels in docs pages * Rewrite/reorganise carousel docs page * start with static/non-autoplaying examples * explicitly mention that carousels currently need to be manually initialized * split out and explain autoplaying and the weird "autoplay after first interaction" behaviour, as well as the pause on hover/focus * Add callout about autoplaying and accessibility * Don't have the dark variant example autoplay * Add "autoplaying" to cspell custom dictionary * Tweal wording, move Page Visibility API to autoplay section * Tweak explanation for methods, add line break in js code for consistency with last code block on the page * Tweak method descriptions * Tweak headings (plural "carousels") * Move some paragraphs out of intro and into basic example, reword the nested and accessibility paragraph * Tweak warning about `.active` slide * Tweak callout wording * Further prose tweaks move the sentence about not double-initialising autoplaying carousels to the callout right at the top instead of talking about `data-bs...` attributes, talk about the "option" instead, as authors may be setting these not via data attributes, but at instatiation time with options in the constructor remove the incorrect statement about pausing when keyboard focus is in the carousel * Instantiate/initialize all non-autoplaying carousels in docs pages * Rewrite/reorganise carousel docs page * start with static/non-autoplaying examples * explicitly mention that carousels currently need to be manually initialized * split out and explain autoplaying and the weird "autoplay after first interaction" behaviour, as well as the pause on hover/focus * Add callout about autoplaying and accessibility * Don't have the dark variant example autoplay * Add "autoplaying" to cspell custom dictionary * Tweal wording, move Page Visibility API to autoplay section * Tweak explanation for methods, add line break in js code for consistency with last code block on the page * Tweak method descriptions * Tweak headings (plural "carousels") * Move some paragraphs out of intro and into basic example, reword the nested and accessibility paragraph * Tweak warning about `.active` slide * Tweak callout wording * Further prose tweaks move the sentence about not double-initialising autoplaying carousels to the callout right at the top instead of talking about `data-bs...` attributes, talk about the "option" instead, as authors may be setting these not via data attributes, but at instatiation time with options in the constructor remove the incorrect statement about pausing when keyboard focus is in the carousel * Fix relative link * Update site/assets/js/snippets.js Co-authored-by: GeoSot <[email protected]> * Fix snippet.js * Tweak content organisation just a bit Co-authored-by: GeoSot <[email protected]> Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2022-11-28Add dark mode support (#35857)Mark Otto1-0/+62
* Add dark mode to docs * Minor fix: missing space indentation * Minor fix: revert utilities/z-index added-in modification * Remove prev: and next: from doc because extracted to another PR * Use .bg-body-tertiary in all Utilities > Overflow examples * fix example * Fix up spacing examples * Update box-shadow Sass variables and utilities to auto-adjust to color modes * Remove unused docs class * Refactor form styles to use CSS variable for background images on .form-check and .form-switch * Fix docs selector * Rename shortcut for clarity * Heading consistency * Reintroduce missing 4th grid item in Utilities > Spacing example * Fix bundlewatch * .bd-callout* rendering is OK so removing comments in the code * Update scss/_utilities.scss Co-authored-by: Julien Déramond <[email protected]> * Fix gutters example styling * Fix text colors on background utils docs * redesign and fix up position marker example, which doesn't show nicely in darkmode but at least isn't broken * fix some color utils examples * Deprecate mixin notice * Deprecate notice for list-group-item-variant() mixin * Revamp new link CSS vars * Use map-keys in some each Sass files * Remove list-group-item-variant mixin ref in sass loop desc * Display CSS vars scoped to our built-in dark mode * Revert previous commit * Fix list group variant link * Fix typo * Remove imports of alert/list-group mixins in scss/_mixins.scss * Small formatting + comments removal in scss/_content.scss * Fix alert links colors * fix dropdown border-radius mixin * fix link color and underline again, this time using CSS var override for color var and fallback value for the underline * fix colors on docs navbar for dark mode * remove two changes * missing ref * another link underline fix, just use sass vars for link decoration for now * missing color bg docs, plus move dropdown override to scss * more changes from review * fix some examples, drop unused docs navbar styles, update docs navbar color mode to use mixin * Few fixes around type - Restored CSS variable for color on headings, this time with a fallback value - In conjunction, restored and wrapped the default CSS var with a null value check - Split headings and paragraphs docs in Reboot, elaborated on them * Restyle custom details > summary element in docs * Rewrite some migration docs * fix form checks * Fix up some navbar styling, tweak docs callout * Fix select images, mostly for validation styling * Clean up some migration notes, document some new form control CSS vars, mention new variables-dark in sass docs * Update site/content/docs/5.2/components/scrollspy.md Co-authored-by: Julien Déramond <[email protected]> * Apply suggestions from code review Co-authored-by: Julien Déramond <[email protected]> * mention form control css vars in migration guide * Tweak grid and flex docs background examples * clarify some docs * fix some more things Co-authored-by: Julien Déramond <[email protected]> Co-authored-by: Julien Déramond <[email protected]>
2022-07-17Fix typos in `snippets.js` (#36758)Marc Wrobel1-4/+4
2022-07-06Docs: add indeterminate disabled checkbox example (#36674)Julien Déramond1-1/+3
2022-06-25Docs: update clipboard.js to v2.0.11Julien Déramond1-2/+2
2022-06-15Add example of dark navbar and offcanvas to docs (#36510)Mark Otto1-4/+6
2022-05-26Fix StackBlitz examples by embedding snippets.js when needed (#36352)Julien Déramond1-8/+38
* Fix StackBlitz examples by embedding snippets.js when needed * Fix Popovers * Fix tooltips * Fix Toasts * Add comment sections * Fix Alerts * Indeterminate heckboxes + classes handling * Nothing to do for links * Fix modals * Nothing to do for Offcanvas * Remove correctly .bd-example * Add body .p-3 for all StackBlitz examples
2022-05-24CSS: doc fixes (#36425)Louis-Maxime Piton1-1/+1
* Remove unused attributes * Use utilities rather than using new CSS * Removed unused class * Change StackBlitz icon `aria-label` + small inconsistency
2022-05-06docs: add proper markup on modal's page tooltips ands popoversGeoSot1-15/+3
2022-05-06v5.2.0: Migrate to DocSearch 3 (#36176)Mark Otto1-28/+17
* Migrate to DocSearch v3 Fixes #33338 * initialize `siteDocsVersion` const after the proper check * Update site/layouts/partials/stylesheet.html Co-authored-by: GeoSot <[email protected]> * Update header.html * code review changes * Update search.js * Fix contrast issue, tweak some styles * Fix some navbar changes * temporary safari fix for docsearch3 Co-authored-by: GeoSot <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2022-05-05ref(Docs assets): Separate js assetsGeoSot2-112/+132
2022-04-21Add .show class to offcanvas example, and disable it's normal behavior in our JSMark Otto1-0/+8
2022-04-17v5.2.0 design refresh, plus responsive offcanvas classes (#35736)Mark Otto3-59/+110
* Add responsive offcanvas classes - Updates navbar-expand classes to de-dupe some styles—these shouldn't interfere now. - Adds some JS to the offcanvas component to help with responsiveness Co-Authored-By: GeoSot <[email protected]> * Redesign homepage, docs, and examples Homepage: - New Bootstrap purple navbar - Redesigned masthead - Rewrote and redesigned homepage content - Replace Copy text with icons like Bootstrap Icons site across all ClipboardJS instances - Fixed padding issues in site footer - Match homepage button styles to examples page, use gap instead of tons of responsive margin utils Docs: - New navbar, no more subnav. Migrated search and version picker into the main navbar and refreshed the design of it all, including the responsive toggles. - New sidebar navigation is always expanded, and now features Bootstrap Icons alongside section headings - Sidebar navigation autoscrolls to active link for better usability - Subnav and navbar padding issues ironed out - Enhanced the version picker in anticipation of v5.2: we can now link right to the same page in the previous version. - Redesign callouts to add more color to our pages - Collapse table of contents on mobile - Cleanup and redesign button styles with CSS variables - Update design for subnav version dropdown - Update highlight and example to be full-width until md - Improve the Added In badges - Turn the ToC into a well on mobile - Redesign code snippets to better house two action buttons Examples: - Redesign Examples page layout - Add new example for responsive offcanvases in navbars * Convert offcanvas to CSS vars * Feat: add resize handler to Offcanvas.js. If we could use as default the `.offcanvas` class without modifiers, we then, could add a simplified selector The selector itself, ignores the .offcanvas class as it doesn't have any responsive behavior The `aria-modal` addon is to protect us, selection backdrop elements * Separate examples code, Add some selectors, fix stackblitz btn Co-authored-by: GeoSot <[email protected]>
2022-04-12Use Babel and ES6 in docs JS files (#31607)Tiger Oakes2-53/+53
* Pass docs js through Babel * Use ES6 in docs js * Only run babel on src files * Allow babel in Hugo * Update scripts.html * Inherit from the root .eslintrc.json * Use `Array.from` * Drop Babel from docs * Prefer template * replace IIFE with arrow functions Co-authored-by: XhmikosR <[email protected]> Co-authored-by: GeoSot <[email protected]>
2022-04-01Changing to btnTitle and btnEditlouismaxime.piton1-2/+3
2022-03-29Fix typo for StackBlitz edit button's tooltip (#36073)Julien Déramond1-1/+1
2022-03-11Fix docs error after #35644 (#36002)GeoSot1-11/+13
2022-03-09docs: add a StackBlitz "Try It" button in code examples (#35644)Puru Vijay1-10/+17
Co-authored-by: GeoSot <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2022-02-19Replace AnchorJS with a Hugo render hook (#32953)XhmikosR2-15/+1
* Replace AnchorJS with a Hugo render hook * docs(anchors): improve aria-label on anchor links * docs(anchors): show anchor link when ed * docs(anchors): add hash in pseudo-element Co-authored-by: Gaël Poupard <[email protected]>
2022-02-07Fix empty content of tooltip after 'copy' action in docs (#35773)GeoSot1-6/+5
Co-authored-by: XhmikosR <[email protected]>
2022-01-03Bump copyright year to 2022 (#35639)XhmikosR1-2/+2
2021-11-25Add a template factory helper to handle all template cases (#34519)GeoSot1-8/+10
Co-authored-by: XhmikosR <[email protected]>
2021-09-15Rename `e` to `event` (#34979)XhmikosR1-11/+11
2021-08-21Progress page: remove toggle animation button (#34787)XhmikosR1-11/+0
We don't use the same approach with a button on the Placeholders page.
2021-06-29Add dynamic, live alerts example to docs (#33866)Mark Otto1-0/+16
2021-04-19Update anchor.js to v4.3.1. (#33668)XhmikosR1-4/+4
2021-04-09docs: update clipboard.js to v2.0.8 (#33583)XhmikosR1-3/+3
2021-01-18Add a live toast example to the docs (#32760)Mark Otto1-1/+11
2021-01-07Bump copyright year to 2021 (#32713)XhmikosR1-2/+2
2020-12-07Revert v5.getbootstrap.com changesXhmikosR1-1/+1
2020-12-04Add interactive positioning widgetMartijn Cuppens1-0/+11
2020-11-19Revert "Use Hugo mounts for our docs vendor files." (#32210)XhmikosR2-0/+16
* Revert "Adapt to the recent main changes" This reverts commit 50d892167036f440f9224327b0a48cf72a2e44b6. * Revert "Add Hugo Pipes logic for local and vendored scripts." This reverts commit 3fcfd606f2c264f1d3434e99c140a05edec461c3. * Revert "Use Hugo mounts for our docs vendor JS files." This reverts commit 6b071116f3b09b59a423ad999efbd67f8645bfa5.
2020-11-19Use Hugo mounts for our docs vendor JS files.XhmikosR2-16/+0
2020-11-14search.js: remove `window.location.origin` workaroundXhmikosR1-15/+1