mirror of
https://github.com/danog/sass-site.git
synced 2024-11-27 04:24:50 +01:00
16 lines
373 B
TypeScript
16 lines
373 B
TypeScript
interface Page {
|
|
url: string | false;
|
|
fileSlug: string;
|
|
filePathStem: string;
|
|
date: Date;
|
|
inputPath: string;
|
|
outputPath: string | false;
|
|
outputFileExtension: string;
|
|
}
|
|
|
|
/**
|
|
* Indicates whether the given page is part of the JS API documentation.
|
|
*/
|
|
export const isTypedoc = (page: Page) =>
|
|
page.url ? page.url.startsWith('/documentation/js-api/') : false;
|