]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Docs: enable `prettier-plugin-astro` plugin (#42390)
authorJulien Déramond <juderamond@gmail.com>
Sun, 3 May 2026 07:52:53 +0000 (09:52 +0200)
committerGitHub <noreply@github.com>
Sun, 3 May 2026 07:52:53 +0000 (09:52 +0200)
Co-authored-by: Pierluigi Lenoci <pierluigilenoci@gmail.com>
site/.prettierrc.json
site/src/components/DocsScripts.astro
site/src/components/head/Scss.astro
site/src/components/head/ScssProd.astro
site/src/components/icons/Symbols.astro
site/src/layouts/ExamplesLayout.astro

index a723ce1e1ee0ff8ba63e99fb88065a5fcd05a493..b3ef3394272bdcd06267a96b97243a69fa102a32 100644 (file)
@@ -1,6 +1,7 @@
 {
   "$schema": "http://json.schemastore.org/prettierrc",
   "arrowParens": "always",
+  "plugins": ["prettier-plugin-astro"],
   "printWidth": 120,
   "semi": false,
   "singleQuote": true,
index 3fab14b26c3eb5190a4fea09497ad30e47209677..a1d64612be00fb063dea607a6de83fd581e6ebe5 100644 (file)
@@ -1,4 +1,5 @@
 ---
+
 ---
 
 <script src="../assets/stackblitz.js"></script>
index bf6b60ea057167e7f71e5a07c10447fd4b2e88c0..a9ea10428ccbd8f9a6b1861083e0a812d6d23ce0 100644 (file)
@@ -1,4 +1,5 @@
 ---
+
 ---
 
 <style is:global lang="scss">
index fc10fe75ab8ad7868449efbf8434f807d721a5ff..6f6c7ea7a3f84eb1bf0970d4cd10324f188d4659 100644 (file)
@@ -1,4 +1,5 @@
 ---
+
 ---
 
 <style is:global lang="scss">
index 44d3e7310f6a9a8ea26a142ca35857beb19a3ef5..06fe5297ca90e4759ace33debadb65caa0c5ee58 100644 (file)
@@ -1,4 +1,5 @@
 ---
+
 ---
 
 <svg xmlns="http://www.w3.org/2000/svg" class="d-none">
index 60fe0e6283e02e6d0f91bf8463875fbc2a81210d..368c0a72c4edfaeed348dec24808f06a6a698067 100644 (file)
@@ -19,7 +19,7 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site)
 const htmlProps: HTMLAttributes<'html'> = direction === 'rtl' ? { lang: 'ar', dir: 'rtl' } : { lang: 'en' }
 ---
 
-<!DOCTYPE html>
+<!doctype html>
 <html {...htmlProps} class:list={html_class} data-bs-theme="auto">
   <head>
     <meta charset="utf-8" />
@@ -57,7 +57,9 @@ const htmlProps: HTMLAttributes<'html'> = direction === 'rtl' ? { lang: 'ar', di
         background-color: rgba(0, 0, 0, 0.1);
         border: solid rgba(0, 0, 0, 0.15);
         border-width: 1px 0;
-        box-shadow: inset 0 0.5em 1.5em rgba(0, 0, 0, 0.1), inset 0 0.125em 0.5em rgba(0, 0, 0, 0.15);
+        box-shadow:
+          inset 0 0.5em 1.5em rgba(0, 0, 0, 0.1),
+          inset 0 0.125em 0.5em rgba(0, 0, 0, 0.15);
       }
 
       .b-example-vr {