Skip to content

Conversation

@janechu
Copy link
Collaborator

@janechu janechu commented Feb 6, 2026

Pull Request

πŸ“– Description

This change replaces Docusaurus, which has been causing a multitude of dependency issues, with 11ty.

πŸ‘©β€πŸ’» Reviewer Notes

Please review carefully, I have separated versions into 1.x and 2.x folder which should make this easier for our v3 migration.
There are a couple scripts for navigation, and the CSS has been copied over, there may be some unused CSS at present but I believe it can be cleaned up relatively easily at a later date.

This is in service of #7189

βœ… Checklist

General

  • I have included a change request file using $ npm run change
  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

@janechu janechu force-pushed the users/janechu/replace-docusaurus-with-11ty branch from bfcc641 to 9678562 Compare February 6, 2026 17:25
chrisdholt
chrisdholt previously approved these changes Feb 6, 2026
Copy link
Member

@chrisdholt chrisdholt left a comment

Choose a reason for hiding this comment

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

Much simpler and hopefully with far less issues.

# Pull Request

This PR merges into `users/janechu/replace-docusaurus-with-11ty`, to be included with #7260.

## πŸ“– Description

Adds a custom markdown-it plugin for Docusaurus-style admonition blocks (`:::tip`, `:::note`, `:::warning`, `:::important`) so that existing content using this syntax renders correctly in the Eleventy-based site. Also registers the `build/` directory as a workspace package so that shared build utilities (e.g., `get-package-json`) can be referenced by name instead of fragile relative paths.

- Add `sites/website/plugins/admonitions.js` β€” a markdown-it core rule that converts `:::type … :::` fenced blocks into styled alert `<div>`s.
- Wire the plugin into `eleventy.config.js` via `amendLibrary`.
- Add `build/package.json` (`@microsoft/fast-build`) and include `build` in root workspaces.
- Update `generate-docs.cjs` to import from `@microsoft/fast-build/get-package-json.js`.
- Fix alert CSS: add missing semicolon, bottom margin, and collapse margins on last child.

## πŸ“‘ Test Plan

- Verified the Eleventy build completes without errors (`npx @11ty/eleventy`).
- Visually confirmed admonition blocks render with the correct styling and headings.

## βœ… Checklist

### General

- [x] I have tested my changes.
- [x] I have read the [CONTRIBUTING](https://github.com/microsoft/fast/blob/main/CONTRIBUTING.md) documentation and followed the [standards](https://github.com/microsoft/fast/blob/main/CODE_OF_CONDUCT.md#our-standards) for this project.
@janechu janechu force-pushed the users/janechu/replace-docusaurus-with-11ty branch from 7678c2b to 0e5b356 Compare February 9, 2026 17:19
@janechu janechu merged commit c08f7c1 into main Feb 9, 2026
8 checks passed
@janechu janechu deleted the users/janechu/replace-docusaurus-with-11ty branch February 9, 2026 22:20
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.

3 participants