wiki/quartz
Luis Michaelis bece8fcab6
fix: properly handle absolute paths in CreatedModifiedDate (#790)
When providing an absolute path to the content directory (e.g. when using an Obsidian Vault in another directory), the build step would fail with

    Failed to process `/absolute/path/to/file.md`: ENOENT: no such file or directory, stat '/current/working/directory/absolute/path/'

This problem originated in the `CreatedModifiedDate` transformer which tries to construct a native filesystem path to the file to call `fs.stat` on. It did not however, account for the original file path contained in the received `VFile` being an absolute path and so, just concatenated the current working directory with the absolute path producing a nonexistent one.

This patch adds a simple fix for this issue by checking if the original file path is already absolute before concatenating with the current working directory.
2024-02-02 09:51:34 -08:00
..
cli fix: content-disposition inline should apply to all resource types (closes #728) 2024-01-28 22:12:01 -08:00
components fix(style): correctly collapse on mobile 2024-02-02 09:36:36 -08:00
plugins fix: properly handle absolute paths in CreatedModifiedDate (#790) 2024-02-02 09:51:34 -08:00
processors refactor: move emit from callback to helper file function (#704) 2024-01-18 10:56:14 -08:00
static Revert "feat: Making Quartz available offline by making it a PWA (#465)" 2023-09-20 13:52:45 -07:00
styles fix(revert): font aliasing 2024-02-02 01:15:10 -08:00
util fix(div): update class name to remove weird space afterwards (#763) 2024-01-29 21:51:13 -08:00
bootstrap-cli.mjs cleanup: rework cli to allow invoking create and build outside of cli (#428) 2023-08-27 15:59:51 -07:00
bootstrap-worker.mjs run prettier 2023-07-22 17:27:41 -07:00
build.ts fix: fmt 2024-01-31 11:58:54 -08:00
cfg.ts feat: support selfhost umami (#764) 2024-01-30 09:58:09 -08:00
worker.ts base path refactor to better support subpath hosting 2023-08-19 15:52:25 -07:00