Commit Graph

138 Commits

Author SHA1 Message Date
bfahrenfort
bd3a9864c7 Quartz sync: Aug 31, 2024, 10:25 PM 2024-08-31 22:25:08 +10:00
bfahrenfort
431539a363 lint: format 2024-08-31 18:24:31 +10:00
bfahrenfort
691d323089 Quartz sync: Aug 31, 2024, 6:06 PM 2024-08-31 18:06:53 +10:00
bfahrenfort
8c337e24a0 Merge branch 'v4' of github-bfahrenfort:jackyzha0/quartz into v4 2024-08-31 16:32:49 +10:00
bfahrenfort
5af7f40fd2 Quartz sync: Aug 31, 2024, 4:30 PM 2024-08-31 16:30:42 +10:00
Peter
b7793bd856
feat(style): Add textHighlight theme setting (#1242)
* Add textHighlight theme setting

* update docs to include textHighlight

* Remove errant `S`
2024-07-09 17:21:00 -07:00
bfahrenfort
9816ce0bcc Quartz sync: Jul 8, 2024, 9:32 PM 2024-07-08 21:32:41 -05:00
bfahrenfort
a5127020e7 Merge branch 'v4' of github-bfahrenfort:jackyzha0/quartz into v4 2024-06-01 13:36:54 -05:00
bfahrenfort
60a2ded31a Quartz sync: Jun 1, 2024, 1:36 PM 2024-06-01 13:36:34 -05:00
RunTheBot
94fbf5b066
fix: Reorder Unified.js plugins to fix #1132 (#1139)
* Reorder Unified.js to fix #1132

* moved latex farther down for bette luck
2024-05-29 12:52:53 -07:00
kabirgh
b4236e5142
feat(perf:fast-rebuilds): Stop mutating resources param in ComponentResources emitter (#977)
* Stop mutating resources param in ComponentResources emitter

* Add done rebuilding log for fast rebuilds

* Move google font loading to Head component

* Simplify code and fix comment
2024-03-09 16:42:23 -08:00
Aaron Pham
73a890ab12
revert: "fix(callout): reorder the plugins to render latex on callout… (#965)
This reverts commit 018c6358c4.
2024-03-05 19:37:28 -08:00
Aaron Pham
018c6358c4
fix(callout): reorder the plugins to render latex on callout title (closes #952) (#934)
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
2024-03-03 10:39:29 -08:00
Eiko Wagenknecht
1929241a62
docs: update plugin documentation (#888)
* docs: first few plugins documented

* docs: move plugin info

* docs: move plugin docs to tag based system

* docs: update latex example code snippet

* docs: fix spelling of latex in title

* docs: add missing linebreak

* docs: remove plugin tag from feature pages

* docs: shorten titles

* docs: refine wording

* docs: move plugin details for frontmatter

* docs: add features/* tags

* docs: update latex example

* docs: make references more explicit

* docs: add stubs for the remaining plugins

* docs: more descriptions

* docs: fix feature tags

* docs: descriptions

* docs: new plugin pages

* docs: update configuration page

* docs: more plugin work

* docs: run prettier

* docs: remove comments in config file and add link to docs

* docs: minor fixes

* docs: run prettier

* docs: spelling

* docs: update docs/plugins/AliasRedirects.md

Co-authored-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>

* docs: update docs/plugins/Assets.md

Co-authored-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>

* docs: update docs/plugins/CNAME.md

Co-authored-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>

* docs: update docs/plugins/Static.md

Co-authored-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>

* docs: update docs

* docs: update docs/features/Mermaid diagrams.md

Co-authored-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>

* docs: update docs/plugins/RemoveDrafts.md

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

* docs: update docs/plugins/Assets.md

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

* docs: update docs/configuration.md

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

* docs: update docs/configuration.md

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

* docs: update docs/configuration.md

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

* docs: some updates

* docs: work in review comments

---------

Signed-off-by: Eiko Wagenknecht <git@eiko-wagenknecht.de>
Co-authored-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-02-23 12:07:53 -08:00
Silviu Lorenț
fa2ea2896f
feat: add user-defined config for syntax highlighting plugin (#869)
* feat: add user-defined options to syntax highlighting plugin

* feat: add default syntax highlighting config to `quartz.config.ts`

* chore: refactor according to @aarnphm's review

Co-authored-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>

* chore: run Prettier on `quartz/plugins/transformers/syntax.ts`

* Update quartz/plugins/transformers/syntax.ts

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

* Update syntax.ts

---------

Co-authored-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-02-17 10:23:45 -08:00
bfahrenfort
881bca1245 Quartz sync: Feb 13, 2024, 8:22 PM 2024-02-13 20:22:48 -06:00
bfahrenfort
37c4d37744 Merge branch 'SplitRSS' of github-bfahrenfort:bfahrenfort/quartz into v4 2024-02-13 20:20:28 -06:00
bfahrenfort
3d19660b11 Merge branch 'v4' of github-bfahrenfort:jackyzha0/quartz into v4 2024-02-13 20:14:54 -06:00
bfahrenfort
4c50cf9338 chore: rebase Add per-folder RSS feeds 2024-02-13 20:08:16 -06:00
Aaron Pham
330e322e48
feat(fonts): fetch before build (#817)
* feat: fetch google fonts before build

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>

* Update quartz/plugins/emitters/componentResources.ts

* fix: fetching wolff2

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>

* chore: remove request stylesheet

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>

* fix: race condition

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>

* chore: remove preconnect for static fonts

since we are already downloading fonts into public folder

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>

* chore: remove deadcode

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>

* chore: add options to gate for cdn caching

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>

* Apply suggestions from code review

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

* chore: apply jacky's suggestion

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

* chore: add docs and only use one promise

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>

* fix: fmt

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>

* chore: remove deadcode

* chore: final touches

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

* revert: changes in theme.ts

* fix: styles and remove deadcode

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>

---------

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-02-08 02:52:55 -05:00
Mara-Li
dbbc672c67
feat: Adding support for i18n (closes #462) (#738)
* fix: alt error mix with height/width

More granular detection of alt and resize in image

* fix: format

* feat: init i18n

* feat: add translation

* style: prettier for test

* fix: build-up the locale to fusion with dateLocale

* style: run prettier

* remove cursed file

* refactor: remove i18n library and use locale way instead

* format with prettier

* forgot to remove test

* prevent merging error

* format

* format

* fix: allow string for locale
- Check during translation if valid / existing locale
- Allow to use "en" and "en-US" for example
- Add fallback directly in the function
- Add default key in the function
- Add docstring to cfg.ts

* forgot item translation

* remove unused locale variable

* forgot to remove fr-FR testing

* format
2024-02-03 19:55:24 -08:00
Jacky Zhao
3fb3930df8 fix: calculate heading after latex (closes #719) 2024-02-03 19:44:24 -08:00
bfahrenfort
0e0b769f05 Merge branch 'v4' of github-bfahrenfort:jackyzha0/quartz into v4 2024-02-02 11:15:54 -06:00
bfahrenfort
7f9311cd6f Quartz sync: Jan 16, 2024, 3:41 PM 2024-01-16 15:41:01 -06:00
bfahrenfort
b95ab7e808 Quartz sync: Jan 13, 2024, 11:34 PM 2024-01-13 23:34:50 -06:00
Jacky Zhao
1a8aedf5f5 docs: clarify git only sets modified 2024-01-07 15:39:38 -08:00
Jacky Zhao
7bcf27241f fix: latex before syntax highlighting 2023-12-19 19:03:40 -08:00
Jacky Zhao
9b9d86474b fix: mermaid rendering fix from upstream 2023-12-19 11:01:55 -08:00
Jacky Zhao
443cd53a1a fix: mermaid rendering broken after rehype-pretty-code bump (closes #638) 2023-12-18 23:09:49 -08:00
bfahrenfort
61adf091b6 Quartz sync: Jan 13, 2024, 5:13 PM 2024-01-13 17:13:32 -06:00
bfahrenfort
753d026029 Quartz sync: Jan 13, 2024, 4:58 PM 2024-01-13 16:58:49 -06:00
bfahrenfort
49f47f41e3 Quartz sync: Oct 7, 2023, 2:36 PM 2023-10-07 14:36:08 -05:00
bfahrenfort
581cf9497b Quartz sync: Oct 7, 2023, 2:35 PM 2023-10-07 14:35:08 -05:00
bfahrenfort
d64b0d815c Quartz sync: Oct 7, 2023, 2:33 PM 2023-10-07 14:33:27 -05:00
bfahrenfort
869de73a38 Quartz sync: Oct 1, 2023, 1:06 AM 2023-10-01 01:06:48 -05:00
bfahrenfort
407fc31326 Quartz sync: Oct 1, 2023, 1:04 AM 2023-10-01 01:04:40 -05:00
bfahrenfort
f2bf62289e Quartz sync: Oct 1, 2023, 12:51 AM 2023-10-01 00:51:51 -05:00
bfahrenfort
593c7ab788 Quartz sync: Oct 1, 2023, 12:46 AM 2023-10-01 00:46:42 -05:00
bfahrenfort
c5b226531e Quartz sync: Oct 1, 2023, 12:44 AM 2023-10-01 00:44:21 -05:00
bfahrenfort
affe4e90fb Quartz sync: Sep 23, 2023, 3:45 PM 2023-09-23 15:45:15 -05:00
Jacky Zhao
6a9e6352e8 Revert "feat: Making Quartz available offline by making it a PWA (#465)"
This reverts commit d6301fae90.
2023-09-20 13:52:45 -07:00
Adam Brangenberg
d6301fae90
feat: Making Quartz available offline by making it a PWA (#465)
* Adding PWA and chaching for offline aviability

* renamed workbox config to fit Quartz' scheme

* Documenting new configuration

* Added missig umami documentation

* Fixed formatting so the build passes, thank you prettier :)

* specified caching strategies to improve performance

* formatting...

* fixing "404 manifest.json not found" on subdirectories by adding a / to manifestpath

* turning it into a plugin

* Removed Workbox-cli and updated @types/node

* Added Serviceworkercode to offline.ts

* formatting

* Removing workbox from docs

* applied suggestions

* Removed path.join for sw path

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

* Removed path.join for manifest path

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

* Removing path module import

* Added absolute path to manifests start_url and manifest "import" using baseUrl

* Adding protocol to baseurl

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

* Adding protocol to start_url too then

* formatting...

* Adding fallback page

* Documenting offline plugin

* formatting...

* merge suggestion

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

* merge suggestion

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

* merge suggestion

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

* merge suggestion

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

* merge suggestion

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

* merge suggestion

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

* merge suggestion

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

* merge suggestion

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

* merge suggestion

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

* merge suggestion

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

* merge suggestion

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

* merge suggestion

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

* formatting...

* Fixing manifest path, all these nits hiding the actual issues .-.

* Offline fallback page through plugins, most things taken from 404 Plugin

* adding Offline Plugin to config

* formatting...

* Turned offline off as default and removed offline.md

---------

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2023-09-20 11:38:13 -07:00
bfahrenfort
de7e313eab Quartz sync: Sep 17, 2023, 12:13 PM 2023-09-17 12:13:35 -05:00
bfahrenfort
e791e663a4 Quartz sync: Sep 17, 2023, 12:07 PM 2023-09-17 12:07:07 -05:00
Jacky Zhao
9ae6343dd0 Revert "fix: use git dates by default, @napi/git is fast enough"
This reverts commit 5dcb7e83fc.
2023-09-15 10:33:38 -07:00
bfahrenfort
55b214a00f Merge branch 'v4' of github-bfahrenfort:jackyzha0/quartz into v4 2023-09-15 12:13:35 -05:00
Jacky Zhao
5dcb7e83fc fix: use git dates by default, @napi/git is fast enough 2023-09-15 09:46:06 -07:00
Jacky Zhao
9bfdc24161 fix: use git dates by default, @napi/git is fast enough 2023-09-15 09:46:06 -07:00
bfahrenfort
057d29dcb0 Quartz sync: Sep 10, 2023, 8:04 PM 2023-09-10 20:04:42 -05:00
bfahrenfort
3c699de759 Quartz sync: Sep 10, 2023, 3:29 PM 2023-09-10 15:29:55 -05:00