From c346e0dbace3dc3fe624110f3dbfaefef06108b1 Mon Sep 17 00:00:00 2001 From: David Anson Date: Mon, 19 Dec 2022 21:15:35 -0800 Subject: [PATCH] Add Apache Airflow and Electron repositories to README Examples and test-repos.js. --- README.md | 6 ++++++ package.json | 4 +++- test/markdownlint-test-repos.js | 17 +++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ba62e8d3..b97100a3 100644 --- a/README.md +++ b/README.md @@ -979,8 +979,10 @@ following projects or one of the tools in the [Related section](#related): - [.NET Documentation][dot-net-doc] ([Search repository][dot-net-doc-search]) - [ally.js][ally-js] ([Search repository][ally-js-search]) +- [Apache Airflow][airflow] ([Search repository][airflow-search]) - [Boostnote][boostnote] ([Search repository][boostnote-search]) - [CodiMD][codimd] ([Search repository][codimd-search]) +- [Electron][electron] ([Search repository][electron-search]) - [ESLint][eslint] ([Search repository][eslint-search]) - [Garden React Components][garden] ([Search repository][garden-search]) - [MDN Web Docs][mdn] ([Search repository][mdn-search]) @@ -995,12 +997,16 @@ following projects or one of the tools in the [Related section](#related): [ally-js]: https://allyjs.io/ [ally-js-search]: https://github.com/medialize/ally.js/search?q=markdownlint +[airflow]: https://airflow.apache.org +[airflow-search]: https://github.com/apache/airflow/search?q=markdownlint [boostnote]: https://boostnote.io/ [boostnote-search]: https://github.com/BoostIO/Boostnote/search?q=markdownlint [codimd]: https://github.com/hackmdio/codimd [codimd-search]: https://github.com/hackmdio/codimd/search?q=markdownlint [dot-net-doc]: https://docs.microsoft.com/en-us/dotnet/ [dot-net-doc-search]: https://github.com/dotnet/docs/search?q=markdownlint +[electron]: https://www.electronjs.org +[electron-search]: https://github.com/electron/electron/search?q=markdownlint [eslint]: https://eslint.org/ [eslint-search]: https://github.com/eslint/eslint/search?q=markdownlint [garden]: https://zendeskgarden.github.io/react-components/ diff --git a/package.json b/package.json index 908f8a61..b769a1cb 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,9 @@ "build-docs": "node doc-build/build-rules.mjs", "build-example": "npm install --no-save --ignore-scripts grunt grunt-cli gulp through2", "ci": "npm-run-all --continue-on-error --parallel lint serial-config-docs serial-declaration-demo test-cover && git diff --exit-code", + "clone-test-repos-apache-airflow": "cd test-repos && git clone https://github.com/apache/airflow apache-airflow --depth 1 --no-tags --quiet", "clone-test-repos-dotnet-docs": "cd test-repos && git clone https://github.com/dotnet/docs dotnet-docs --depth 1 --no-tags --quiet", + "clone-test-repos-electron-electron": "cd test-repos && git clone https://github.com/electron/electron electron-electron --depth 1 --no-tags --quiet", "clone-test-repos-eslint-eslint": "cd test-repos && git clone https://github.com/eslint/eslint eslint-eslint --depth 1 --no-tags --quiet", "clone-test-repos-mdn-content": "cd test-repos && git clone https://github.com/mdn/content mdn-content --depth 1 --no-tags --quiet", "clone-test-repos-mkdocs-mkdocs": "cd test-repos && git clone https://github.com/mkdocs/mkdocs mkdocs-mkdocs --depth 1 --no-tags --quiet", @@ -39,7 +41,7 @@ "clone-test-repos-v8-v8-dev": "cd test-repos && git clone https://github.com/v8/v8.dev v8-v8-dev --depth 1 --no-tags --quiet", "clone-test-repos-webhintio-hint": "cd test-repos && git clone https://github.com/webhintio/hint webhintio-hint --depth 1 --no-tags --quiet", "clone-test-repos-webpack-webpack-js-org": "cd test-repos && git clone https://github.com/webpack/webpack.js.org webpack-webpack-js-org --depth 1 --no-tags --quiet", - "clone-test-repos": "mkdir test-repos && cd test-repos && npm run clone-test-repos-dotnet-docs && npm run clone-test-repos-eslint-eslint && npm run clone-test-repos-mdn-content && npm run clone-test-repos-mkdocs-mkdocs && npm run clone-test-repos-mochajs-mocha && npm run clone-test-repos-pi-hole-docs && npm run clone-test-repos-v8-v8-dev && npm run clone-test-repos-webhintio-hint && npm run clone-test-repos-webpack-webpack-js-org", + "clone-test-repos": "mkdir test-repos && cd test-repos && npm run clone-test-repos-apache-airflow && npm run clone-test-repos-dotnet-docs && npm run clone-test-repos-electron-electron && npm run clone-test-repos-eslint-eslint && npm run clone-test-repos-mdn-content && npm run clone-test-repos-mkdocs-mkdocs && npm run clone-test-repos-mochajs-mocha && npm run clone-test-repos-pi-hole-docs && npm run clone-test-repos-v8-v8-dev && npm run clone-test-repos-webhintio-hint && npm run clone-test-repos-webpack-webpack-js-org", "declaration": "npm run build-declaration && npm run test-declaration", "example": "cd example && node standalone.js && grunt markdownlint --force && gulp markdownlint", "docker-npm-install": "docker run --rm --tty --name npm-install --volume $PWD:/home/workdir --workdir /home/workdir --user node node:16 npm install", diff --git a/test/markdownlint-test-repos.js b/test/markdownlint-test-repos.js index 31101483..81503dc3 100644 --- a/test/markdownlint-test-repos.js +++ b/test/markdownlint-test-repos.js @@ -128,6 +128,13 @@ function excludeGlobs(rootDir, ...globs) { // Run markdownlint the same way the corresponding repositories do /* eslint-disable max-len */ +test("https://github.com/apache-airflow", (t) => { + const rootDir = "./test-repos/apache-airflow"; + const globPatterns = [ join(rootDir, "**/*.{md,mdown,markdown}") ]; + const configPath = join(rootDir, ".markdownlint.yml"); + return lintTestRepo(t, globPatterns, configPath); +}); + test("https://github.com/dotnet/docs", (t) => { const rootDir = "./test-repos/dotnet-docs"; const globPatterns = [ join(rootDir, "**/*.md") ]; @@ -135,6 +142,16 @@ test("https://github.com/dotnet/docs", (t) => { return lintTestRepo(t, globPatterns, configPath); }); +test("https://github.com/electron-electron", (t) => { + const rootDir = "./test-repos/electron-electron"; + const globPatterns = [ + join(rootDir, "*.md"), + join(rootDir, "docs/**/*.md") + ]; + const configPath = join(rootDir, ".markdownlint.json"); + return lintTestRepo(t, globPatterns, configPath); +}); + test("https://github.com/eslint/eslint", (t) => { const rootDir = "./test-repos/eslint-eslint"; const globPatterns = [ join(rootDir, "docs/**/*.md") ];