Migrate docs from mdbook to docusaurus#127
Conversation
f921d3f to
792c608
Compare
This comment was marked as resolved.
This comment was marked as resolved.
792c608 to
b975277
Compare
chore: improve explanation of PAT inside of new trigger-deploy-docs workflow
chore: only trigger deployment workflow upon changes to docs folder
|
Hey @partylikeits1983 @mmagician , Based on discussions I had with Philipp Gackstatter and Bobbin on the Docusaurus PR on the
Let me know your thoughts and if the PR is good to go! |
There was a problem hiding this comment.
Amazing work! LGTM
I took a relatively brief look at the PR. I ran the docs locally, everything seems to look good.
Mainly was going off of this link: https://animated-adventure-wrvg9jk.pages.github.io/
The only thing there I think is to add the Miden logo at the top left corner.
Only thing left to do is resolve merge conflicts and add latest changes in mdbook docs to this docusaurus PR
Yes, you're absolutely right! Before the docs are migrated, we will have a complete custom design for them. Currently working with Ahmad on that. I'm sure we will add that too!
Sounds good, I'm on it! |
Summary
This PR migrates the existing documentation from mdbook to Docusaurus. This includes syntax changes and structural updates.
🚨 DO NOT MERGE YET 🚨
Merging this PR before all other Docusaurus PRs are ready will break the docs deployment! Also, merging has to be done in correct order to ensure a smooth transition!
BEFORE MERGING: Update this PR to correctly implement testing on the FPI tutorial.
Note
docs/src.#comments in Rust code blocks (previously supported by mdBook) have been removed.#comments, code blocks are still compatible with thecargo test --docworkflow. Typically, only the final tutorial code snippet will be compiled and executed.Changes
Syntax changes
As already mentioned before, this PR changes the markdown syntax of all docs markdown files.
Going forward all documentation will also be written using Docusaurus sytnax.
NOTE: Please review the updated Markdown files to understand the new format.
Local testing
To test docs locally before pushing changes:
cd docsNote: The
index.mdfile might not appear in the correct sidebar order during local dev. In production deployments it will. To guarantee proper ordering, ensureindex.mdincludes:New Docs Architecture
The documentation system no longer relies on cron jobs or local scripts. Instead, changes are propagated through a CI-driven process. Here are the key changes:
Instead of relying on a cron task to update the docs, every repository now integrates a "trigger-docs-deploy.yml" workflow, which automatically triggers a rebuild and redeployment of the docs upon changes to
next.Upon Testnet deployments, a dedicated workflow inside of the miden-docs repository can be triggered to create a snapshot of the docs for that specific version. This workflow has to be triggered manually.