W
Web510mo ago
ALR

Trial of upgrading to Docusaurus v3🧵

Trial of upgrading to Docusaurus v3🧵
7 Replies
ALR
ALROP10mo ago
Docusaurus 3 moves from MDX1 to MDX3. There's a checker to see what will break: `` developer.tbd.website/site $> % npx docusaurus-mdx-checker Need to install the following packages: [email protected] Ok to proceed? (y) y [ERROR] 11/170 MDX files couldn't compile! --- Error while compiling file docs/glossary.md (Line=7 Column=3) Details: Unexpected character < (U+003C) before name, expected a character that can start a name, such as a letter, $, or _ --- Error while compiling file docs/ssi/api_guide.mdx (Line=9 Column=3) Details: Could not parse expression with acorn --- Error while compiling file docs/tbdex/issuer/vc-issuance.mdx (Line=37 Column=5) Details: Expected the closing tag </p> either after the end of listItem (41:8) or another opening tag after the start of listItem (36:1) --- Error while compiling file docs/tbdex/pfi/creating-offerings.mdx (Line=25 Column=4) Details: Expected a closing tag for </strong> (25:4-25:8) before the end of paragraph --- Error while compiling file docs/web5/build/apps/dinger-tutorial.mdx (Line=51 Column=1) Details: Expected a closing tag for </summary> (51:1-51:10) before the end of paragraph --- Error while compiling file docs/web5/build/apps/shared-todo-app.mdx (Line=53 Column=1) Details: Expected a closing tag for </summary> (53:1-53:10) before the end of paragraph --- Error while compiling file docs/web5/build/apps/todo-app-tutorial.mdx (Line=34 Column=1) Details: Expected a closing tag for </summary> (34:1-34:10) before the end of paragraph` --- Error while compiling file docs/web5/build/verifiable-credentials/presentation-definition.mdx (Line=113 Column=197) Details: Could not parse expression with acorn --- Error while compiling file docs/web5/troubleshooting/common-errors.mdx Details: These MDX global variables do not seem to be available in scope: storedIdentities 11 MDX files need to be massaged out of 170. Not terrible.
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
ALR
ALROP10mo ago
I'll see how easy it is for me to resolve this and move on to the Next Problem
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
ALR
ALROP10mo ago
I got all our stuff upgraded to be compliant with MDX v3. Next! There's a branch and draft PR for this work in progress: https://github.com/TBD54566975/developer.tbd.website/pull/1278 Hot damn @dayhaysoos-tbd I think we got it. Would you mind a review on the above PR? Details here: https://github.com/TBD54566975/developer.tbd.website/pull/1278#issuecomment-1960809426
ALR
ALROP10mo ago
@techgirl1908 Addressed your PR review here, added new commits, back to you for approval. Props to you for catching that!
ALR
ALROP10mo ago
Merged in. Thread done. 🤘🏻
Want results from more Discord servers?
Add your server