Migrate Jquery docs#74
Draft
viktorkombov wants to merge 3671 commits into
Draft
Conversation
- chore(*): product name reference in files
- chore(*): Applying rename changes to Grid topics.
…ontrols. - docs(*): Renaming regarding new product names for not grid controls.
- fixes for hgrid topics naming+some errors
- changing mvc helper refs to proper product names
- Replaced all MVC Helper references
- updating known issues and limitations + net 5 mention
- fixing the name of the main known issues doc
- applying 21-1 changes
- mdd-updated-jquery-21.1
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
feat(*): create a reusable workflow to deploy jp and en with shared s…
Co-authored-by: Copilot <copilot@github.com>
Migrate Angular api links
…to dtsvetkov/migrate-to-mdx
…ntain permissions' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
…to vkombov/migrate-jquery-docs
| if (!APPLY) { | ||
| console.log(` [dry-run] toc.json: ${count} token(s)`); | ||
| } else { | ||
| fs.writeFileSync(TOC_JSON, converted, 'utf-8'); |
Comment on lines
+37
to
+43
| return html | ||
| .replace(/<br\s*\/?>/gi, ' \u2502 ') // <br> → separator | ||
| .replace(/<img[^>]*alt="([^"]*)"[^>]*>/gi, '$1') // <img alt="x"> → x | ||
| .replace(/<img[^>]*>/gi, '') // <img> without alt | ||
| .replace(/<a[^>]*href="([^"]*)"[^>]*>([\s\S]*?)<\/a>/gi, '[$2]($1)') // <a> → [text](href) | ||
| .replace(/<code>([\s\S]*?)<\/code>/gi, '`$1`') // <code> → backtick | ||
| .replace(/<\/?[a-z][^>]*>/gi, '') // strip remaining tags |
Comment on lines
+37
to
+47
| return html | ||
| .replace(/<br\s*\/?>/gi, ' \u2502 ') // <br> → separator | ||
| .replace(/<img[^>]*alt="([^"]*)"[^>]*>/gi, '$1') // <img alt="x"> → x | ||
| .replace(/<img[^>]*>/gi, '') // <img> without alt | ||
| .replace(/<a[^>]*href="([^"]*)"[^>]*>([\s\S]*?)<\/a>/gi, '[$2]($1)') // <a> → [text](href) | ||
| .replace(/<code>([\s\S]*?)<\/code>/gi, '`$1`') // <code> → backtick | ||
| .replace(/<\/?[a-z][^>]*>/gi, '') // strip remaining tags | ||
| .replace(/ /gi, ' ') | ||
| .replace(/</g, '<') | ||
| .replace(/>/g, '>') | ||
| .replace(/&/g, '&') |
| }; | ||
|
|
||
| // Escape pipe characters in cell content. | ||
| const esc = (s) => s.replace(/\|/g, '\\|'); |
| if (KNOWN_HTML_TAGS.has(tag.toLowerCase())) return match; | ||
| const isClose = match.startsWith('</'); | ||
| return isClose | ||
| ? `</${tag}${rest.replace(/>/, '>')}` |
| const slug = fileNameMatch ? fileNameMatch[1] : null; | ||
|
|
||
| // Strip ALL DocFX metadata comment blocks. | ||
| const stripped = source.replace(METADATA_RE, ''); |
| body = body.replace(/\n{4,}/g, '\n\n\n'); | ||
|
|
||
| // Remove HTML comments (includes DocFX metadata and <!-- TODO --> blocks). | ||
| body = body.replace(/<!--[\s\S]*?-->/g, ''); |
| body = body.replace(/\n{4,}/g, '\n\n\n'); | ||
|
|
||
| // Remove HTML comments (includes DocFX metadata and <!-- TODO --> blocks). | ||
| body = body.replace(/<!--[\s\S]*?-->/g, ''); |
| console.log(` STEP: ${label}`); | ||
| console.log(`${'═'.repeat(70)}\n`); | ||
| try { | ||
| execSync(cmd, { cwd: ROOT, stdio: 'inherit' }); |
| // robocopy exits 0-7 for success, >=8 for error | ||
| try { | ||
| execSync( | ||
| `robocopy "${from}" "${to}" /E /MOVE /NFL /NDL /NJH /NJS /NC /NS /NP`, |
- Pipeline transforms 1014 ja topics (rename, fix HTML, normalize MDX, fix links) - Add slugs to toc.json (956 entries) - Fix 5 MDX syntax errors (stray </b>, <Blockquote></>, backslash in tag) - Update scripts: fix-all-mdx, fix-pseudo-html, convert-docfx-tokens (BOM handling) - Add jQueryJP platform config and DOCS_LANG support to astro.config/package.json - Update sidebar.ts, llms.ts with BOM stripping
…I/docs-template into vkombov/migrate-jquery-docs
…n-jp Migrate jQueryApiUrl en/jp
Migrate jQuery JA topics
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.
Closes #78