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

🎉 add warning if linking to owid.cloud in gdocs #2923

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

ikesau
Copy link
Member

@ikesau ikesau commented Nov 12, 2023

I noticed that quite a few of these have snuck into our google docs from the wp migration tool.

This PR adds a warning in the preview if one has persisted (I'm going to go through and fix them in any Gdocs I can find)

image

We could also add this block to cheerioToSpan if we wanted to prevent publishing any links to owid.cloud ever, but there might be valid cases where we want to do that, so I'm not sure.

if (url && url.includes("owid.cloud")) {
  url = url.replace("owid.cloud", "ourworldindata.org")
}

Copy link

This PR has had no activity within the last two weeks. It is considered stale and will be closed in 3 days if no further activity is detected.

@github-actions github-actions bot added the stale label Nov 29, 2023
@ikesau ikesau merged commit fdf2eaa into master Nov 29, 2023
18 checks passed
@ikesau ikesau deleted the owid-cloud-links branch November 29, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants