Skip to content

Commit

Permalink
🐛 remove invalid buildkite step
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Dec 10, 2024
1 parent dc8e075 commit a5b154b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
7 changes: 0 additions & 7 deletions adminSiteServer/mockSiteRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -418,13 +418,6 @@ getPlainRouteWithROTransaction(
}
)

mockSiteRouter.use(
"/images/published",
express.static(path.join(DEFAULT_LOCAL_BAKE_DIR, "images/published"), {
fallthrough: false,
})
)

mockSiteRouter.use(
// Not all /app/uploads paths are going through formatting
// and being rewritten as /uploads. E.g. blog index images paths
Expand Down
3 changes: 0 additions & 3 deletions ops/buildkite/deploy-content
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ create_dist() {

"${RSYNC_COMMAND[@]}" live-data/bakedSite/ dist/

# remove .etag of gdoc images from dist
rm dist/images/published/*.etag

# copy over Pages Functions as-is
rsync -havzq --delete owid-grapher/functions dist/
rsync -havzq owid-grapher/wrangler.toml dist/
Expand Down
2 changes: 0 additions & 2 deletions packages/@ourworldindata/types/src/gdocTypes/GdocConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ export const RESEARCH_AND_WRITING_ID = "research-writing"

export const RESEARCH_AND_WRITING_DEFAULT_HEADING = "Research & Writing"

export const IMAGES_DIRECTORY = "/images/published/"

/** Works for:
* https://docs.google.com/document/d/abcd1234
* https://docs.google.com/document/d/abcd1234/
Expand Down
4 changes: 2 additions & 2 deletions site/search/searchTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export interface PageRecord {
date?: string
modifiedDate?: string
tags?: string[]
// Either a URL (for WP posts) or a filepath (for GDocs)
// WP example: https://ourworldindata.org/wp-content/uploads/2021/03/Biodiversity-thumbnail.png
// GDoc example: /images/published/artificial-intelligence-featured-image_100.png
// GDoc example: https://imagedelivery.net/our-id/image-uuid/w=512
// Fallback example: https://ourworldindta.org/default-thumbnail.png
thumbnailUrl: string
documentType?: "wordpress" | "gdoc" | "country-page"
}
Expand Down

0 comments on commit a5b154b

Please sign in to comment.