This is an automated email from the ASF dual-hosted git repository. fmariani pushed a commit to branch lazy-load in repository https://gitbox.apache.org/repos/asf/camel-website.git
commit e0a96b532936cb3a8b939a8d47583079148d630e Author: Croway <[email protected]> AuthorDate: Wed Jan 28 16:56:56 2026 +0100 Lazy load node-html-parser to avoid ci caching issues --- gulpfile.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 5e704165..b3871c99 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -3,7 +3,6 @@ const env = process.env.CAMEL_ENV || 'development'; const gulp = require('gulp'); const htmlmin = require('gulp-htmlmin'); const inject = require('gulp-inject'); -const generateMarkdown = require('./gulp/tasks/generate-markdown'); /** * We minify all HTML files using htmlmin, this is to make them smaller in size @@ -114,8 +113,12 @@ function versionlessRedirects (text) { return processed.join('\n') } -// Register the generate-markdown task -gulp.task('generate-markdown', generateMarkdown); +// Register the generate-markdown task with lazy loading to avoid requiring +// node-html-parser when running other tasks (like clean or sitemap) +gulp.task('generate-markdown', (done) => { + const generateMarkdown = require('./gulp/tasks/generate-markdown'); + return generateMarkdown(done); +}); /* * Removes the content from the `public` directory.
