Skip to content

Migrate Jquery docs#74

Draft
viktorkombov wants to merge 3671 commits into
masterfrom
vkombov/migrate-jquery-docs
Draft

Migrate Jquery docs#74
viktorkombov wants to merge 3671 commits into
masterfrom
vkombov/migrate-jquery-docs

Conversation

@viktorkombov
Copy link
Copy Markdown
Contributor

@viktorkombov viktorkombov commented Apr 23, 2026

Closes #78

kdinev and others added 30 commits March 10, 2020 11:07
 - 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
viktorkombov and others added 9 commits April 23, 2026 13:29
…e6b604941'

git-subtree-dir: _imports/old-docs
git-subtree-mainline: 3bb2ec6
git-subtree-split: 3c2cdd8
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>
…ntain permissions'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Base automatically changed from dtsvetkov/migrate-to-mdx to master April 24, 2026 12:41
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(/&nbsp;/gi, ' ')
.replace(/&lt;/g, '<')
.replace(/&gt;/g, '>')
.replace(/&amp;/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
? `&lt;/${tag}${rest.replace(/>/, '&gt;')}`
Comment thread src/normalize-mdx.ts
const slug = fileNameMatch ? fileNameMatch[1] : null;

// Strip ALL DocFX metadata comment blocks.
const stripped = source.replace(METADATA_RE, '');
Comment thread src/normalize-mdx.ts
body = body.replace(/\n{4,}/g, '\n\n\n');

// Remove HTML comments (includes DocFX metadata and <!-- TODO --> blocks).
body = body.replace(/<!--[\s\S]*?-->/g, '');
Comment thread src/normalize-mdx.ts
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`,
…ba6b371518c9094'

git-subtree-dir: _imports/help-topics-ja
git-subtree-mainline: 9b7259b
git-subtree-split: 0f1be93
- 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
@viktorkombov viktorkombov changed the base branch from master to dtsvetkov/migrate-to-mdx April 28, 2026 06:51
@viktorkombov viktorkombov changed the base branch from dtsvetkov/migrate-to-mdx to master April 28, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

jQuery topics POC – known issues and inconsistencies