aboutsummaryrefslogtreecommitdiff
path: root/site/layouts/partials/scripts.html
AgeCommit message (Collapse)AuthorFilesLines
2024-03-19docs: move algolia config to hugo configXhmikosR1-0/+6
2024-03-19docs: use defer when possible for JSXhmikosR1-5/+5
2024-03-19docs: bundle assets with HugoXhmikosR1-61/+22
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-03-08Switch to using `hugo.IsProduction` (#39763)XhmikosR1-2/+2
2024-03-05Remove useless crossorigin="anonymous" attributesXhmikosR1-1/+1
2023-07-05Add docs search to homepage (#38850)Mewen Le Hô1-1/+2
* Compliance to Success Criterion 3.2.3 Consistent Navigation * Update docs-navbar.html --------- Co-authored-by: Mark Otto <[email protected]>
2022-06-28Fix StackBlitz examples needing docs CSS (#36637)Julien Déramond1-3/+4
2022-06-20Fix StackBlitz Popovers and Tooltips examples (#36449)Julien Déramond1-1/+1
* Fix StackBlitz Popovers and Tooltips examples * Rename shortcode example parameters * Reorder example shortcode doc params + fix Cspell * Remove 'stackblitz' param + use data-bs-title instead of title * Update site/layouts/partials/callout-warning-data-bs-title-vs-title.md Co-authored-by: Mark Otto <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2022-05-26Fix StackBlitz examples by embedding snippets.js when needed (#36352)Julien Déramond1-8/+14
* 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-06v5.2.0: Migrate to DocSearch 3 (#36176)Mark Otto1-1/+1
* 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-04-17v5.2.0 design refresh, plus responsive offcanvas classes (#35736)Mark Otto1-2/+1
* 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 Oakes1-16/+17
* 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-03-31Fix StackBlitz edit feature by selecting the closest exampleJulien Déramond1-1/+1
2022-03-09docs: add a StackBlitz "Try It" button in code examples (#35644)Puru Vijay1-0/+45
Co-authored-by: GeoSot <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2021-08-31Use `path.Join` when joining pathsXhmikosR1-1/+1
2020-11-19Revert "Use Hugo mounts for our docs vendor files." (#32210)XhmikosR1-4/+14
* 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-19Add Hugo Pipes logic for local and vendored scripts.Regis Philibert1-14/+4
2020-11-19Use Hugo mounts for our docs vendor JS files.XhmikosR1-1/+1
2020-05-07Use `safeHTMLAttr` in the `integrity` attributes.XhmikosR1-1/+1
2020-02-22Use `hugo.Environment` instead of `getenv` (#29240)XhmikosR1-2/+2
This is set automatically to "development" when the local server is running, and to "production" when Hugo builds the site.
2020-02-17scripts.html: don't load docsearch JS when it's not needed (#30205)XhmikosR1-1/+1
2019-11-04Move docs JS one folder up. (#29632)XhmikosR1-1/+1
2019-09-17Use Hugo for our docs Sass and JS. (#29280)XhmikosR1-9/+10
Now there's only one command needed to run the docs: `npm run docs-serve`. Also, simplify the npm scripts.
2019-07-17Fix docs search. (#29067)XhmikosR1-1/+1
2019-03-13Switch to Hugo.XhmikosR1-0/+19
No more Ruby dependency and most important more than 10 times less build time (at least on Windows)!