feat: add support for page URL overrides

This commit is contained in:
Travis Fischer
2021-02-08 20:38:24 -05:00
parent d29339161c
commit b50d21cbde
6 changed files with 119 additions and 3 deletions

View File

@@ -54,6 +54,18 @@ export interface CanonicalPageMap {
[canonicalPageId: string]: string
}
export interface PageUrlOverridesMap {
// maps from a notion page id to the URL path the page should be resolved to
// (this overrides the built-in URL path generation for these pages)
[pageId: string]: string
}
export interface PageUrlOverridesInverseMap {
// maps from a URL path to the notion page id the page should be resolved to
// (this overrides the built-in URL path generation for these pages)
[pageId: string]: string
}
export interface PreviewImage {
url: string
originalWidth: number