Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions ingest/inheritables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ export type InheritableResources = {
export const getInheritableResources = (prefix: string): InheritableResources => [
...resources
.filter(({file}) => pathExists(prefix, file))
.map(({type}) => ({
.map(({type, db}) => ({
type,
path: prefix
path: prefix,
db: db ?? true
})),
...readPublicDir(prefix)
.map((subdir) => `${prefix}/${subdir}`)
Expand Down
2 changes: 1 addition & 1 deletion ingest/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const addRelativeDir = ({relativeDir}: {relativeDir: string}) => () => (t
const publisher = relativeDir.split("/")[0];
const pubStart = `/${publisher}/`;
const updatedLink = (url: string) =>
/https?:\/\//.test(url) || url.startsWith(pubStart) ? url
/https?:\/\//.test(url) || url.startsWith(pubStart) || url[0] === "#" ? url
: url.startsWith("//") ? url.slice(1)
: url.startsWith("/") ? `/${publisher}${url}`
: `/${relativeDir}/${url}`;
Expand Down
Loading