feat: auto-fix missing .md extensions on PRs + fix fs_sdd_delete pages #720
Draft
feat: auto-fix missing .md extensions on PRs + fix fs_sdd_delete pages #720
Conversation
…analyzer 11.6, 12.0); fix KB links
…d code in trusted context' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Collaborator
Author
|
@claude fix the warning admonition format in both files — convert blockquotes to :::warning blocks |
Convert raw Markdown blockquote WARNING to Docusaurus :::warning admonition blocks in fs_sdd_delete.md for both 11.6 and 12.0. Co-Authored-By: Claude <noreply@anthropic.com>
Collaborator
Author
|
Ignoring the frontmatter/heading suggestions — keeping frontmatter minimal intentionally, as standardization will be handled in a follow-up PR using the same script. Heading is consistent with other articles in this and other products/subcategories. |
Tested locally: 17 unit tests passed, live script test confirmed rename and git staging of extensionless file, test article verified in dev server sidebar.
This comment was marked as duplicate.
This comment was marked as duplicate.
Contributor
Auto-Fix Summary4 issues fixed, 0 skipped across 2 files
Ask |
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
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.
Summary
Adds a GitHub Actions workflow and shell script that automatically detects and renames files added to docs/ without a .md extension, then commits the fix and posts a PR comment. Also fixes the one known existing file missing the extension and adds missing frontmatter to both versions.
Changes
.github/workflows/md-extension-autofix.yml— new workflow, mirrors vale-autofix.yml patternscripts/md-extension-autofix.sh— detection, rename, link rewriting, JSON outputscripts/test-md-extension-autofix.sh— unit tests (17 passing)docs/accessanalyzer/11.6/admin/jobs/instantjobs/fs_sdd_delete→ renamed to.mdwith frontmatter addeddocs/accessanalyzer/12.0/admin/jobs/instantjobs/fs_sdd_delete.md— frontmatter addeddocs/kb/accessanalyzer/file-system-and-sensitive-data-discovery/delete-sdd-matches.md— fixed link text (NAA → Access Analyzer), removed .md from URLs, updated Related Links sectionTesting
bash scripts/test-md-extension-autofix.sh)fs_sdd_deleteand a test KB file, both appeared in dev serverfs_sdd_deletepage renders correctly in dev server with proper sidebar title and frontmatterTest plan post-merge