Commit Graph

19 Commits

Author SHA1 Message Date
Jacky Zhao
bf8b577f63 perf: incremental rebuild (--fastRebuild v2 but default) (#1841)
* checkpoint

* incremental all the things

* properly splice changes array

* smol doc update

* update docs

* make fancy logger dumb in ci
2025-03-16 14:17:31 -07:00
Aaron Pham
8b9721c132 chore(frontmatter): dealias created/modified/updated time (#1664) 2024-12-23 15:00:26 -05:00
Jacky Zhao
90dd8b8278 chore: ts fixes 2024-08-08 18:28:13 -07:00
Luis Michaelis
fe606831ae 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
Jacky Zhao
b5ca7798ef fix: revert parsing dates in frontmatter 2024-01-28 21:27:16 -08:00
Jacky Zhao
090985f22b fix: generalize frontmatter parsing and coercing 2024-01-27 21:39:16 -08:00
Olivér Falvai
828ad56227 feat: support modification date reading from parent git repo (#661)
* feat: support modification date reading from parent git repo

* Print warning

* Fix formatting

* Update quartz/plugins/transformers/lastmod.ts

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>

---------

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-01-02 09:23:28 -08:00
Jacky Zhao
2443791d33 fix: treat the 0 time as invalid too 2023-09-24 14:47:30 -07:00
Jacky Zhao
5f0a7a5d35 feat: add warning for invalid date format 2023-09-22 10:04:50 -07:00
Jacky Zhao
fde8608927 fix: more lenient date parsing for templates 2023-09-08 09:29:57 -07:00
Jacky Zhao
cdaec963ed various path fixes for links to extensions, fix relative paths in links 2023-08-17 00:55:28 -07:00
Jacky Zhao
744955bc94 use posix style paths for all path ops 2023-08-02 23:04:26 -07:00
Jacky Zhao
617ea80db1 run prettier 2023-07-22 17:27:41 -07:00
Jacky Zhao
8f76cc5768 handle dates as tags 2023-07-06 18:45:38 -07:00
Jacky Zhao
fc03f3dcec fix: parsing wikilinks that have codeblock anchors, scroll to anchor 2023-06-19 22:50:25 -07:00
Jacky Zhao
9a1f0b48b4 refactor plugins to be functions instead of classes 2023-06-11 23:26:43 -07:00
Jacky Zhao
8c5dd2287a toc 2023-06-09 23:06:02 -07:00
Jacky Zhao
2d3b816c44 rendering, link resolution, asset copying 2023-05-31 17:01:23 -04:00
Jacky Zhao
62d0c4bd1a plugin integration round 2 2023-05-30 08:02:20 -07:00