-
Notifications
You must be signed in to change notification settings - Fork 613
Replace docusaurus with 11ty #7260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+60,326
β40,883
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bfcc641 to
9678562
Compare
chrisdholt
previously approved these changes
Feb 6, 2026
Member
chrisdholt
left a comment
There was a problem hiding this 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.
2 tasks
# 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.
7678c2b to
0e5b356
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
$ npm run change