Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.71 KB

swizzling.md

File metadata and controls

53 lines (40 loc) · 1.71 KB

Docusaurus swizzling

Custom theme components

The Connect site uses swizzling to customize several Docusaurus components:

To swizzle more components, run npm run swizzle -- @docusaurus/theme-classic --typescript and select component you want to modify

What lives where

In general, the site follows the standard Docusaurus structure, with swizzled components in src/theme and fully custom components in src/components. Some additional things to be aware of:

Vendored libraries

We've vendored out crt-terminal in order to fix a focus issue on mount. We have added the prop focusOnMount to the Terminal component.

In order to rebuild the package:

cd src/vendor/crt-terminal
npm install
npm run build
rm -rf node_modules