Skip to content

Commit

Permalink
build(deps-dev): bump glob from 8.1.0 to 10.3.12 in /docs/v3 (#3750)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump glob from 8.1.0 to 10.3.12 in /docs/v3

Bumps [glob](https://github.com/isaacs/node-glob) from 8.1.0 to 10.3.12.
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](isaacs/node-glob@v8.1.0...v10.3.12)

---
updated-dependencies:
- dependency-name: glob
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix glob commands as they are different in v10 compared to v8

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: M. Oleske <michael@oleske.engineer>
  • Loading branch information
dependabot[bot] and moleske committed Jun 17, 2024
1 parent 82db58e commit c526d5a
Show file tree
Hide file tree
Showing 3 changed files with 542 additions and 76 deletions.
31 changes: 13 additions & 18 deletions docs/v3/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const gulp = require('gulp');
const {exec} = require('child_process');
const express = require('express');
const checkPages = require('check-pages');
const globber = require('glob');
const { glob } = require('glob');
const cheerio = require('cheerio');

function displayErrors(err, stdout, stderr) {
Expand Down Expand Up @@ -129,24 +129,19 @@ gulp.task('checkV3docs', gulp.series('build', done => {
}, done);
}));

gulp.task('checkV2docs', done => {
globber.glob('../v2/**/*.html', (err, htmlFiles) => {
if (err) {
return displayErrors(err, 'npm glob failed', '');
}

const fixedFiles = htmlFiles.map(fname => {
return 'http://localhost:8001' + fname.substr('../v2'.length);
});

checkPathAndExit('../v2', {
checkLinks: true,
summary: true,
terse: true,
onlySameDomain: true,
pageUrls: ['http://localhost:8001/'].concat(fixedFiles)
}, done);
gulp.task('checkV2docs', async(done) => {
const htmlFiles = await glob('../v2/**/*.html')
const fixedFiles = htmlFiles.map(fname => {
return 'http://localhost:8001' + fname.substr('../v2'.length);
});

checkPathAndExit('../v2', {
checkLinks: true,
summary: true,
terse: true,
onlySameDomain: true,
pageUrls: ['http://localhost:8001/'].concat(fixedFiles)
}, done);
});

gulp.task('checkdocs', gulp.parallel('checkV2docs', 'checkV3docs'));
Loading

0 comments on commit c526d5a

Please sign in to comment.