davsclaus opened a new pull request, #1777:
URL: https://github.com/apache/camel-website/pull/1777

   `gulp/helpers/html-index.js` had its own copy of the content extraction, 
chrome removal, table-cell cleanup and `.html` → `.md` link rewriting that 
lives in `gulp/tasks/generate-markdown.js`. Every fix had to be made twice 
(most recently the eyebrow label in #1774, and the `aside.toc` removal from 
#1769 never made it across).
   
   - `convertPage` and `trimBlogPost` move to `gulp/helpers/convert-page.js`; 
`generate-markdown.js` and `html-index.js` both require it. Net −141 lines.
   - The index pages (`manual/index.md`, `components/next/index.md`, 
`releases/**/index.md`, ...) now get the same treatment as every other page: 
jsdom repair for malformed HTML, `aside.toc` and `.doc-eyebrow` removal.
   - `test/generate-markdown-test.js` becomes `test/convert-page-test.js` and 
imports from the helper; no test changes otherwise.
   
   Verification: `yarn test` 21 pass; `yarn build:markdown` regenerates 5842 
pages + the index files, `manual/index.md` and the release pages read as before.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to