Skip to content

Commit

Permalink
Move all scripts in one directory.
Browse files Browse the repository at this point in the history
Signed-off-by: Mirjam Aulbach <[email protected]>
  • Loading branch information
programmiri committed Feb 5, 2024
1 parent 27e4dba commit 34a9660
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const { addRedirectsFile } = require("./plugins/add-redirects-file");
const { createLinkFile } = require("./plugins/create-link-file");
const { addRedirectsFile } = require("./post-build-plugins/add-redirects-file");
const { createLinkFile } = require("./post-build-plugins/create-link-file");

const lightCodeTheme = require("prism-react-renderer").themes.github;
const darkCodeTheme = require("prism-react-renderer").themes.dracula;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"check-sidebar": "node check-sidebar/index.js",
"check-sidebar": "node scripts/check-sidebar/index.js",
"lint:code": "eslint . && prettier --check .",
"lint:markdown": "markdownlint \"**/*.md\" --ignore '**/.github/vale/styles/**' --ignore '**/node_modules/**'",
"lint": "pnpm lint:code && pnpm lint:markdown",
"reformat:code": "eslint . --fix && prettier --write .",
"reformat:markdown": "markdownlint \"**/*.md\" --ignore node_modules --fix",
"reformat": "pnpm reformat:code && pnpm reformat:markdown",
"lint-staged": "lint-staged",
"markdown-link-check": "markdown-link-check-script/markdown-link-check.sh",
"markdown-link-check": "scripts/markdown-link-check-script/markdown-link-check.sh",
"spell:error": "vale --glob='!.github/vale/styles/*' . --minAlertLevel=error",
"spell:warn": "vale --glob='!.github/vale/styles/*' . --minAlertLevel=warning",
"spell:all": "vale --glob='!.github/vale/styles/*' . --minAlertLevel=suggestion"
Expand Down
2 changes: 1 addition & 1 deletion check-sidebar/index.js → scripts/check-sidebar/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require("fs");
const path = require("path");
const sidebars = require("../sidebars");
const sidebars = require("../../sidebars");

function checkAllMarkdownFilesAreInSidebar(basePath, allListedFiles) {
const files = fs.readdirSync(basePath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ while getopts "f:qo" opt; do
QUIET_MODE="-q"
;;
o)
OFFLINE_MODE="--config=./markdown-link-check-script/markdown-link-check-offline-config.json"
OFFLINE_MODE="--config=./scripts/markdown-link-check-script/markdown-link-check-offline-config.json"
;;
\?)
echo "Usage: $0 [-f file] [-q]"
Expand Down Expand Up @@ -60,7 +60,7 @@ else
# Use "find" to locate all Markdown files in blog, excluding those in node_modules
# Apply ignore pattern to not check links that are not starting with http/https AND
# are not located in "blog"
IGNORE_PATTERN_BLOG="--config=./markdown-link-check-script/markdown-link-check-blog-config.json"
IGNORE_PATTERN_BLOG="--config=./scripts/markdown-link-check-script/markdown-link-check-blog-config.json"
# shellcheck disable=SC2046
markdown-link-check \
$(find "blog" -type f -name '*.md' ! -path '*/node_modules/*' ! -path '*/.github/vale/styles/*' -print) \
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 34a9660

Please sign in to comment.