Skip to content
This repository was archived by the owner on Feb 1, 2026. It is now read-only.

docs: import demo code#240

Merged
JaimeTorrealba merged 1 commit intomainfrom
docs/importCodeSnippets
Oct 4, 2023
Merged

docs: import demo code#240
JaimeTorrealba merged 1 commit intomainfrom
docs/importCodeSnippets

Conversation

@andretchen0
Copy link
Copy Markdown
Contributor

@andretchen0 andretchen0 commented Oct 4, 2023

Problem: on-screen example code sometimes doesn't work – e.g., it includes typos, like this.

Solution (partial): import the demo source code for display, rather than copy/pasting. At least that way, the demo and on-screen source code remain synced.

Background: see "Importing Code Snippets" in the Vitepress docs.

Import demo code snippets instead of copy/pasting.
@netlify
Copy link
Copy Markdown

netlify Bot commented Oct 4, 2023

Deploy Preview for cientos-tresjs ready!

Name Link
🔨 Latest commit 75de90d
🔍 Latest deploy log https://app.netlify.com/sites/cientos-tresjs/deploys/651cc5ac747d950008f5842f
😎 Deploy Preview https://deploy-preview-240--cientos-tresjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@andretchen0 andretchen0 marked this pull request as ready for review October 4, 2023 01:55
Comment thread docs/.vitepress/theme/components/SVGDemo.vue
Comment thread docs/guide/loaders/svg.md
@JaimeTorrealba JaimeTorrealba merged commit 2294cf8 into main Oct 4, 2023
@andretchen0 andretchen0 deleted the docs/importCodeSnippets branch October 4, 2023 20:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants