Skip to content

Commit 7f35587

Browse files
authored
fix: copy lose whitespace (#2238)
1 parent 49fa95b commit 7f35587

File tree

6 files changed

+7093
-5271
lines changed

6 files changed

+7093
-5271
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ Claude.md
2323
docusaurus.config.js
2424
sidebars.js
2525
src/**/*.js
26+
# Exception: CodeBlock component is intentionally JavaScript
27+
!src/theme/CodeBlock/index.js
2628
variables/*.js

docusaurus.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ const config: Config = {
237237
],
238238
trailingSlash: true,
239239
plugins: [
240-
['docusaurus-biel', bielMetaMap[locale]],
240+
// Only load docusaurus-biel plugin if biel_project_id is defined
241+
...(biel_project_id ? [['docusaurus-biel', bielMetaMap[locale]]] : []),
241242
function injectLocaleSwitchScript() {
242243
return {
243244
name: 'inject-locale-switch-script',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"@octokit/rest": "^21.0.2",
2828
"axios": "^1.12.0",
2929
"clsx": "^2.0.0",
30+
"copy-text-to-clipboard": "^3.2.2",
3031
"docusaurus-biel": "^1.0.5",
3132
"minimatch": "^10.0.1",
3233
"prism-react-renderer": "^2.3.0",

0 commit comments

Comments
 (0)