Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): Ignore the .DS_Store file generated from swagger mkdocs plug in. #3025

Merged
merged 4 commits into from
Dec 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/landing/scripts/deploy.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const Q = pLimit(10);

const DistDir = './dist';

const ignoredFiles = new Set(['.DS_Store']);

// match a string containing a version number
const HasVersionRe = /-\d+\.\d+\.\d+-/;

Expand Down Expand Up @@ -52,6 +54,8 @@ async function deploy() {

const fileList = await fsa.toArray(fsa.list(basePath));
const promises = fileList.map((filePath) => {
// Ignore the files that don't need to be deployed.
if (ignoredFiles.has(basename(filePath))) return;
// targetKey will always start with "/" eg: "/index.html" "/docs/index.html"
const targetKey = filePath.slice(basePath.length);

Expand Down
Loading