diff --git a/site/src/components/shortcodes/JsDocs.astro b/site/src/components/shortcodes/JsDocs.astro index cf756af8c..4430f21f8 100644 --- a/site/src/components/shortcodes/JsDocs.astro +++ b/site/src/components/shortcodes/JsDocs.astro @@ -40,7 +40,7 @@ try { content = matches[1] - // Fix the identation by removing extra spaces at the beginning of each line + // Fix the indentation by removing extra spaces at the beginning of each line const lines = content.split('\n') const spaceCounts = lines.filter((line) => line.trim().length > 0).map((line) => line.match(/^ */)[0].length) const minSpaces = spaceCounts.length ? Math.min(...spaceCounts) : 0 diff --git a/site/src/components/shortcodes/ScssDocs.astro b/site/src/components/shortcodes/ScssDocs.astro index 6c267570e..4eaa8ca01 100644 --- a/site/src/components/shortcodes/ScssDocs.astro +++ b/site/src/components/shortcodes/ScssDocs.astro @@ -42,7 +42,7 @@ try { content = matches[1].replaceAll(' !default', '') - // Fix the identation by removing extra spaces at the beginning of each line + // Fix the indentation by removing extra spaces at the beginning of each line const lines = content.split('\n') const spaceCounts = lines.filter((line) => line.trim().length > 0).map((line) => line.match(/^ */)[0].length) const minSpaces = spaceCounts.length ? Math.min(...spaceCounts) : 0