Skip to content

Commit

Permalink
remove unneccesary id attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
huijing committed Dec 17, 2024
1 parent 1b663ba commit 4288650
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@astrojs/starlight": "^0.30.2",
"@interledger/docs-design-system": "^0.6.0",
"@interledger/docs-design-system": "^0.6.1",
"astro": "5.0.9",
"mermaid": "^11.4.1",
"sharp": "^0.33.5",
Expand Down
3 changes: 1 addition & 2 deletions docs/src/components/ChunkedSnippet.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import prettier from 'prettier';
import { Code } from 'astro:components';
import { CodeBlock } from '@interledger/docs-design-system'
const {source, chunk} = Astro.props;
const uuid = crypto.randomUUID();
// Retrieve code snippet from GitHub as text
const getApiData = async () => {
Expand Down Expand Up @@ -76,7 +75,7 @@ const output = await prettier.format(rawOutput, {
const codeBlockTitle = codeChunkArray[chunkNumber].title;
---

<CodeBlock title={codeBlockTitle} id={uuid} class="chunked-snippet">
<CodeBlock title={codeBlockTitle} class="chunked-snippet">
<Code code={output} lang="ts" theme="css-variables" />
<span>Copied!</span>
<button data-copy-button type="button">
Expand Down

0 comments on commit 4288650

Please sign in to comment.