You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by fm...@apache.org on 2026/01/28 15:57:09 UTC
(camel-website) branch lazy-load created (now e0a96b53)
This is an automated email from the ASF dual-hosted git repository.
fmariani pushed a change to branch lazy-load
in repository https://gitbox.apache.org/repos/asf/camel-website.git
at e0a96b53 Lazy load node-html-parser to avoid ci caching issues
This branch includes the following new commits:
new e0a96b53 Lazy load node-html-parser to avoid ci caching issues
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(camel-website) 01/01: Lazy load node-html-parser to avoid ci caching issues
Posted by fm...@apache.org.
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 <fe...@gmail.com>
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.