-
Notifications
You must be signed in to change notification settings - Fork 2
docs: replace mkdocs-macros-plugin #263
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
Conversation
📝 WalkthroughWalkthroughRelease and documentation updates: Makefile release workflow fixed and changed to perform platform-specific in-place edits (macOS vs others) and moved version-replacement earlier; multiple docs and examples had version placeholders replaced with v0.6.2; mkdocs macros configuration and plugin removed; Dockerfile no longer installs mkdocs-macros-plugin. Changes
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 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.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@Makefile`:
- Around line 284-288: The Makefile's sed lines use the non-recursive glob
docs/**/*.md which /bin/sh doesn't expand; replace that glob with a find-based
invocation so files in nested dirs are processed. Update the two sed branches
(the Darwin branch invoking sed -i '' and the else branch invoking sed -i) to
run find docs -type f -name '*.md' and pass each matched file to sed (e.g. via
find ... -exec or find ... -print0 | xargs -0) so the replacement of $(shell
$(changie) latest) with $(VERSION) reliably touches all docs; keep the existing
sed dialect difference between the Darwin (BSD sed -i '') and non-Darwin (GNU
sed -i) branches and reuse the same replacement string referencing VERSION and
changie.
🧹 Nitpick comments (1)
docs/Dockerfile (1)
3-3: Pin doc plugin versions for reproducible builds.Unpinned installs can introduce breakage over time; consider a constraints/requirements file or explicit version pins.
Replaces the mkdocs-macros-plugin with a find-and-replace in the release process. When you run `make <major|minor|patch>-release`, we will now replace all occurrences of the current version in the docs with the new version. We must validate that these replacements are complete and correct in the release review PR. PLAT-405
e56242f to
e5f687d
Compare
Summary
Replaces the mkdocs-macros-plugin with a find-and-replace in the release process. When you run
make <major|minor|patch>-release, we will now replace all occurrences of the current version in the docs with the new version. We must validate that these replacements are complete and correct in the release review PR.Changes
mkdocs-macros-pluginTesting
You can see what the release process changes will do by running:
If you were to run this release target without
--dry-run, these are the replacements it would make (I've prefixed all fences with#to preserve markdown formatting):You can try this for yourself, but please answer "N" to the prompt to avoid creating a real release. If you do this, you can return to your previous state by doing:
PLAT-405