Add resolveRefs transform

Provide a transformation function that maps absolute references to
resources into relative references based on the location of a page.
This makes it possible to use the same links across multiple pages
in the hierarchy that works when loaded as files from the filesystem.
This commit is contained in:
Hornwitser 2025-01-22 08:58:48 +01:00
parent 7aa937a7e9
commit 17f8693eae
4 changed files with 105 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"files": ["cli.ts"],
"include": ["content"],
"include": ["content", "utils"],
"compilerOptions": {
"outDir": "build/node",
"rootDir": ".",