Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable arbitrary code snippets in docs #4131

Merged
merged 3 commits into from
Jul 26, 2024
Merged

Conversation

abvthecity
Copy link
Contributor

@abvthecity abvthecity commented Jul 26, 2024

Similar to <Markdown src="../path/to/markdown.ts" />, support code snippets like <Code src="../path/to/code.java" />

This can be combined with <CodeGroup> like this:

<CodeGroup>

<Code src="snippet.ts" />
<Code src="snippet.py" />
<Code src="snippet.go" />
<Code src="snippet.java" />

```plaintext title="Arbitrary Code"
hello world!
```

</CodeGroup>

Fixes FER-2579

@abvthecity abvthecity requested a review from dsinghvi as a code owner July 26, 2024 17:49
@abvthecity abvthecity enabled auto-merge (squash) July 26, 2024 17:55
@abvthecity abvthecity changed the title feat: enable arbitrary code snippets feat: enable arbitrary code snippets in docs Jul 26, 2024
Copy link
Member

@dsinghvi dsinghvi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sick feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants