Skip to content

Conversation

@mgrebenets
Copy link
Contributor

Bug/issue #, if applicable: N/A

Summary

JavaScript is already supported.
TypeScript is very popular language as well.
Supporting highlight requires minimal changes since highlight.js library already supports the language.

Dependencies

No new dependencies added.

Testing

Steps:

  1. Add block of TypeScript code to SwiftDocCRender.docc/contributing/Internals.md, e.g.

## Syntax Highlighting

```typescript
import example from "example";

const value = 100;
```

  1. Build doccarchive: xcrun docc convert SwiftDocCRender.docc -o out.doccarchive
  2. Point dev server proxy to built docarchive: VUE_APP_DEV_SERVER_PROXY=/path/to/swift-docc-render/out.doccarchive
  3. npm run serve
  4. Browse http://localhost:8080/documentation/internals
  5. Check TypeScript highlight
image

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added tests (Not applicable)
  • Ran npm test, and it succeeded
  • Updated documentation if necessary

Max Grebenets and others added 2 commits October 8, 2025 13:52
JavaScript is already supported.
TypeScript is very popular language as well.
Supporting highlight requires minimal changes since highlight.js library already supports the language.
@mportiz08
Copy link
Contributor

@swift-ci test

@mportiz08 mportiz08 merged commit c781d37 into swiftlang:main Oct 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants