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

Many broken internal link fixes. #863

Merged
merged 25 commits into from
Sep 28, 2021
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
636721d
Fix careers links
dannon Sep 25, 2021
1c43c6d
Fix jxtx links
dannon Sep 25, 2021
ce36c28
Move sv-wtih-ont to sv-with-ont
dannon Sep 25, 2021
e443bdf
Fix people name links across the site.
dannon Sep 25, 2021
8877734
More people link fixes
dannon Sep 25, 2021
5246ea0
Fix galaxy-team links
dannon Sep 25, 2021
3674133
More people link fixes
dannon Sep 25, 2021
a90c680
dos2unix all md content
dannon Sep 25, 2021
ee46bd7
Global replace - hyphenated name /src/peoples
dannon Sep 25, 2021
6db6944
Fix Greg links
dannon Sep 25, 2021
f974421
content-wide src/.../index.md replacement
dannon Sep 26, 2021
3e4563b
Convert a large batch of old /src links
dannon Sep 26, 2021
b1f3fdd
A (hopefully last) pass cutting out src and index.md from markdown links
dannon Sep 26, 2021
53cf80e
Fix galaxy-updates links
dannon Sep 26, 2021
f74132e
More mangled newsletter links
dannon Sep 26, 2021
af631c7
News posts malformed links
dannon Sep 26, 2021
02144e7
Fix up develop/graphics; this directly fixes the links but we should …
dannon Sep 26, 2021
bf93683
Use / for root link
dannon Sep 27, 2021
c819e1f
Update Nicola's home web reference to Earlham
dannon Sep 27, 2021
718c088
Update Marius web links
dannon Sep 27, 2021
abbb445
Stage direct links to static images.
dannon Sep 27, 2021
6e2989c
Format run.mjs
dannon Sep 27, 2021
2b81aef
Only stage static on actual build, not develop
dannon Sep 27, 2021
c9dc2ab
Merge remote-tracking branch 'upstream/master' into link-fixes
dannon Sep 28, 2021
82a5806
Add svg to static staging pass
dannon Sep 28, 2021
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
17 changes: 11 additions & 6 deletions src/build/run.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,17 @@ function main(rawArgv) {
console.log(`$ ${cmd3}`);
let gridsome = childProcess.spawn(gridsomeExe, [command], { stdio: "inherit" });
gridsome.on("exit", (code, signal) => {
// Copy static images for direct reference to dist.
cpy(["**/*.png", "**/*.jpg", "**/*.pdf", "**/*.gif"], "../dist", {
cwd: "./content",
overwrite: false,
parents: true,
});
// Copy static images for direct reference to dist -- only when doing a
// full build. We hook into the exit this way to let Gridsome do its
// thing first.
if (command === "build") {
console.log("Coping integrated static content (png, jpg, pdf, gif) to dist.");
cpy(["**/*.png", "**/*.jpg", "**/*.pdf", "**/*.gif"], "../dist", {
dannon marked this conversation as resolved.
Show resolved Hide resolved
cwd: "./content",
overwrite: false,
parents: true,
});
}

if (signal) {
console.error(`${cmd3} exited due to signal ${signal}`);
Expand Down