This repo houses the shared custom components, plugins, and scripts used across all Sui Stack documentation sites (Sui, Walrus, Seal, SuiNS, etc).
This repo is a work in progress and will continue to be updated, as some sites have not yet adopted the Docusaurus framework.
The shared components for all sites are:
├── components/
│ ├── Cards/
│ ├── ExampleImport/
│ ├── Glossary/
│ ├── ImportContent/
│ ├── RelatedLink/
│ ├── SidebarIframe/
│ ├── Snippet/
│ ├── ThemeToggle/
│ └── UnsafeLink/
├── css/
│ └── details.css
├── js/
│ ├── convert-release-notes.js
│ ├── tabs-md.client.js
│ └── utils.js
├── plugins/
│ ├── descriptions/
│ ├── inject-code/
│ ├── plausible/
│ ├── tabs-md-client/
│ │ └── index.mjs
│ └── remark-glossary.js
Despite the sites using the same plugins and components for:
- Cookbook AI (
plugins/askcookbook) - Algolia Search (
components/Search) - Push Feedback
Each of these has a custom configuration for their own API keys. These components are thus managed individually.
Additionally, all src/theme and css/ components are unique to each site to prevent conflicts
between the styling of each individual site.
Components unique to the Sui documentation are as follows:
├── client
│ ├── pushfeedback-toc.js
├── components/
│ └── API
│ └── BetaTag
│ └── EffortBox
│ └── GetStartedLink
│ └── GraphqlBetaLink
│ └── HomepageFeatures
│ └── Protocol
│ └── ProtocolConfig
├── css/
│ └── custom.css
│ └── fonts.css
├── js/
│ └── convert-awesome-sui.mjs
│ └── update-cli-output.js
├── plugins/
│ └── askcookbook
│ └── betatag
│ └── effort
│ └── framework
│ └── protocol
Components unique to the Walrus documentation are as follows:
docs/site/src/
├── components/
│ ├── HomepageFeatures/
│ ├── OperatorsList/
│ ├── PortalsList/
│ ├── PushFeedback/
│ └── Search/
├── css/
│ ├── cards.module.css
│ ├── custom.css
│ ├── fontawesome.ts
│ ├── fonts.css
│ └── sidebar.module.css
├── pages/
├── plugins/
│ ├── askcookbook/
│ ├── client/
│ ├── index.ts
│ └── tailwind-config.js
└── scripts/
├── copy-yaml-files.js
└── generate-import-context.js