This website is built using Docusaurus 2, a modern static website generator.
This project requires Node.js 18 or higher. If you have nvm installed, you can use the correct Node version by running:
nvm use 18yarnyarn startThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
yarn buildThis command generates static content into the build directory and can be served using any static contents hosting service.
Using SSH:
USE_SSH=true yarn deployNot using SSH:
GIT_USER=<Your GitHub username> yarn deployIf you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
.mdxvs.md: Files containing React components (like<Tabs>and<TabItem>) must use the.mdxextension- JSX in Markdown: Docusaurus requires
.mdxfor any file that imports and uses React components - Example:
docs/front-end/01-idfive-component-library.mdxuses.mdxbecause it contains<Tabs>components
- Numeric Prefixes: Docusaurus automatically strips numeric prefixes from URLs
- File:
01-overview.md→ URL:/overview - File:
05-unical.md→ URL:/unical
- File:
- Internal Links: Use full paths for cross-section links
- ✅ Correct:
/docs/front-end/idfive-component-library - ❌ Incorrect:
../front-end/01-pattern-lab
- ✅ Correct:
- Relative Links: Within same section, use filename without prefix
- ✅ Within accelerator folder:
/docs/accelerator/overview - ❌ Avoid:
./01-overview
- ✅ Within accelerator folder:
- Front Matter Corruption: Be careful when editing files with complex content
- Proper Structure: Always ensure YAML front matter is properly closed with
--- - Build Errors: Malformed YAML will cause build failures
- Proper Nesting:
<TabItem>components must be nested within<Tabs>containers - Duplication Issues: Watch for duplicate tab content during editing
- Group IDs: Use consistent
groupIdattributes for related tab sets
- Link Validation: Docusaurus validates all internal links during build
- Build Command: Use
yarn buildto test for broken links before deployment - Error Messages: Build errors provide specific paths to fix broken links
- Required Version: Node.js 18+ required for this Docusaurus project
- NVM Usage: Use
nvm use 18to switch to correct version - Version Check: Run
node --versionto verify current version