Compare commits

...

392 Commits

Author SHA1 Message Date
78832de162 Small adjustments for responsiveness 2025-07-02 00:13:26 +02:00
158a19d35e Change provider from npm to nginx 2025-07-01 21:57:58 +02:00
767037a66f Added dockerignore file 2025-07-01 01:43:31 +02:00
366b7f8d1f Merge commit 'f48a4df00011999eea2fbabd2e1e9d0cc26f9bfe' into jpg 2025-07-01 01:18:57 +02:00
f48a4df000 Squashed 'content/' changes from fc5c89d..8cd58e1
8cd58e1 Added all N2 notions
fd602b3 Misc. meaning and typo fixes
83627ff Update Opposition - even if.md
06f8a41 Update Considering - for - as.md
a0c7751 Update Connectors.md
629ced5 Update Connectors - in order to.md
892f855 Update Certainty.md

git-subtree-dir: content
git-subtree-split: 8cd58e1395d691d753385f8e01ff88b291b0177f
2025-07-01 01:18:56 +02:00
f5b49ccc81 Fix styling for narrow TOC 2025-07-01 00:30:09 +02:00
69f191847c Update layout to new Quartz version 2025-06-29 17:26:31 +02:00
af4b26f0e2 Merge branch 'v4' into jpg 2025-06-29 17:21:25 +02:00
52a5196f38 chore: converted Emoji version 16 (#2018) 2025-06-18 01:18:57 -04:00
cdd0be2aa8 feat(giscus): expose language option for Comments component (#2012)
* add language support for Comment

* docs: let users know they can customize their language preference
2025-06-08 11:23:01 +02:00
9de370ae14 watcher: manually ignore .git changes 2025-06-04 15:00:41 -07:00
ae0466eedb css: unapply redundant bg on section 2025-06-03 10:57:16 -07:00
499adf4a4e fix(ios): mobile explorer overscroll behavior (#2008) 2025-06-03 13:51:38 -04:00
cd13ce3c47 docs: clarify parens on ignorePatterns (closes #2009) 2025-06-02 12:39:01 -07:00
b48aa91728 fix(flex): respect DesktopOnly and MobileOnly components (#1971)
* fix(flex): respect DesktopOnly and MobileOnly components

* Use classNames util function

* fix(ofm): allow wikilink alias to be empty (#1984)

This is in line with Obsidian's behavior.

* fix(style): Katex adding scrollbars on non-overflowing content (#1989)

* feat(i18n): Bahasa Indonesia translations (#1981)

* fix(a11y): increased content-meta text contrast (#1980)

* fix(analytics): streamline posthog script loading and event capturing (#1974)

* css: adjust color blend for search bg

* feat(links): added ofm option to style unresolved or broken links differently (#1992)

* feat: add option to disable broken wikilinks

* fix(style): update hover color for broken links and introduce new class

* feat: add "disableBrokenWikilinks" option to ObsidianFlavoredMarkdown

* chore(deps): replace `chalk` and `rimraf` with builtin functions (#1879)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore(deps): bump the production-dependencies group across 1 directory with 9 updates (#1996)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Node 22 (#1997)

* docs: showcase housekeeping

* docs: fix explorernode references (closes #1985)

* fix: tz-less date parse in local tz instead of utc (closes #1615)

* docs: added note to not forget to add https:// to the plausible-host (for #1337) (#2000)

* docs: added note to not forget to add https:// to the plausible-host (for #1337)

* Update docs/configuration.md

---------

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

* Updated documentation

---------

Co-authored-by: Nizav <106657905+Ni-zav@users.noreply.github.com>
Co-authored-by: Aswanth <aswanth366@gmail.com>
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
Co-authored-by: Keisuke ANDO <g.kei0429@gmail.com>
Co-authored-by: fl0werpowers <47599466+fl0werpowers@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Moser <64004956+c2vi@users.noreply.github.com>
2025-06-02 18:36:57 +02:00
7b052e8844 docs: added note to not forget to add https:// to the plausible-host (for #1337) (#2000)
* docs: added note to not forget to add https:// to the plausible-host (for #1337)

* Update docs/configuration.md

---------

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2025-06-01 22:56:51 -07:00
1cfc87652c fix: tz-less date parse in local tz instead of utc (closes #1615) 2025-06-01 22:42:37 -07:00
096ef220dc docs: fix explorernode references (closes #1985) 2025-05-28 16:36:25 -07:00
bc16822d14 docs: showcase housekeeping 2025-05-28 16:27:17 -07:00
7fa9253abc Node 22 (#1997) 2025-05-28 16:20:59 -07:00
996d8d51fa chore(deps): bump the production-dependencies group across 1 directory with 9 updates (#1996)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-28 09:21:56 -04:00
951d1dec24 chore(deps): replace chalk and rimraf with builtin functions (#1879)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-28 10:40:51 +02:00
51b43a2115 feat(links): added ofm option to style unresolved or broken links differently (#1992)
* feat: add option to disable broken wikilinks

* fix(style): update hover color for broken links and introduce new class

* feat: add "disableBrokenWikilinks" option to ObsidianFlavoredMarkdown
2025-05-27 21:26:17 +02:00
c9349457ed css: adjust color blend for search bg 2025-05-27 10:00:19 -07:00
6d49d97559 fix(analytics): streamline posthog script loading and event capturing (#1974) 2025-05-24 00:55:07 -04:00
c9741d00f3 fix(a11y): increased content-meta text contrast (#1980) 2025-05-23 22:09:48 -04:00
73983cfb0e feat(i18n): Bahasa Indonesia translations (#1981) 2025-05-23 22:07:29 -04:00
52344cd816 fix(style): Katex adding scrollbars on non-overflowing content (#1989) 2025-05-23 22:05:41 -04:00
fec0a62b74 fix(ofm): allow wikilink alias to be empty (#1984)
This is in line with Obsidian's behavior.
2025-05-19 07:58:05 +02:00
e98d97a271 feat(i18n): readermode translations and icon (#1961)
* fix(readermode): Translations and a new icon for ReaderMode

* Formatted

* Replaced icon
2025-05-07 21:56:18 +02:00
c33f96e572 chore(deps): bump sigstore/cosign-installer in the ci-dependencies group (#1953)
Bumps the ci-dependencies group with 1 update: [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer).


Updates `sigstore/cosign-installer` from 3.8.1 to 3.8.2
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.8.1...v3.8.2)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-version: 3.8.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ci-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-07 12:46:39 -07:00
0b348a0532 chore(deps): bump the production-dependencies group with 7 updates (#1964)
Bumps the production-dependencies group with 7 updates:

| Package | From | To |
| --- | --- | --- |
| [@floating-ui/dom](https://github.com/floating-ui/floating-ui/tree/HEAD/packages/dom) | `1.6.13` | `1.7.0` |
| @myriaddreamin/rehype-typst | `0.5.4` | `0.6.0` |
| [pixi.js](https://github.com/pixijs/pixijs) | `8.9.1` | `8.9.2` |
| [pretty-bytes](https://github.com/sindresorhus/pretty-bytes) | `6.1.1` | `7.0.0` |
| [ws](https://github.com/websockets/ws) | `8.18.1` | `8.18.2` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.15.3` | `22.15.7` |
| [tsx](https://github.com/privatenumber/tsx) | `4.19.3` | `4.19.4` |


Updates `@floating-ui/dom` from 1.6.13 to 1.7.0
- [Release notes](https://github.com/floating-ui/floating-ui/releases)
- [Changelog](https://github.com/floating-ui/floating-ui/blob/master/packages/dom/CHANGELOG.md)
- [Commits](https://github.com/floating-ui/floating-ui/commits/@floating-ui/dom@1.7.0/packages/dom)

Updates `@myriaddreamin/rehype-typst` from 0.5.4 to 0.6.0

Updates `pixi.js` from 8.9.1 to 8.9.2
- [Release notes](https://github.com/pixijs/pixijs/releases)
- [Commits](https://github.com/pixijs/pixijs/compare/v8.9.1...v8.9.2)

Updates `pretty-bytes` from 6.1.1 to 7.0.0
- [Release notes](https://github.com/sindresorhus/pretty-bytes/releases)
- [Commits](https://github.com/sindresorhus/pretty-bytes/compare/v6.1.1...v7.0.0)

Updates `ws` from 8.18.1 to 8.18.2
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.18.1...8.18.2)

Updates `@types/node` from 22.15.3 to 22.15.7
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `tsx` from 4.19.3 to 4.19.4
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs)
- [Commits](https://github.com/privatenumber/tsx/compare/v4.19.3...v4.19.4)

---
updated-dependencies:
- dependency-name: "@floating-ui/dom"
  dependency-version: 1.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: "@myriaddreamin/rehype-typst"
  dependency-version: 0.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: pixi.js
  dependency-version: 8.9.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: pretty-bytes
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: production-dependencies
- dependency-name: ws
  dependency-version: 8.18.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: "@types/node"
  dependency-version: 22.15.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: tsx
  dependency-version: 4.19.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-07 12:46:23 -07:00
Dan
59d4b4eddd fix(analytics): Umami tracking pageviews properly
Update componentResources.ts to fix umami SPA tracking (#1967)

Update componentResources.ts to fix umami analytics when SPA is enabled in Quartz
2025-05-07 21:44:30 +02:00
adf442036b fix(graph): provide proper workaround for pixijs webgpu issue #1899 (#1949) 2025-04-30 09:49:41 -07:00
dc2c4dca08 docs: add fix for 'remote end hung up unexpectedly' error during initial sync (#1939) 2025-04-29 09:55:15 -07:00
6ba9c7c02a doc(favicon): add documentation of favicon plugin (#1948)
* doc(favicon): add documentation of favicon plugin

* doc(favicon): add missing link to configuration page

* fix(favicon): build on public folder don't created
2025-04-28 22:00:28 -07:00
8d5b13ee03 fix(fonts): Fixed page title fonts not downloadable to local (#1898)
* Fixed url parser regex not working for Google Fonts subset API

* Prettier no
2025-04-28 14:58:06 -07:00
4d07ac93b4 chore(deps-dev): bump the production-dependencies group with 2 updates (#1952)
Bumps the production-dependencies group with 2 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and [esbuild](https://github.com/evanw/esbuild).


Updates `@types/node` from 22.14.1 to 22.15.3
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `esbuild` from 0.25.2 to 0.25.3
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.2...v0.25.3)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 22.15.3
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: esbuild
  dependency-version: 0.25.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-28 14:41:04 -07:00
32d3fc0ce8 chore(ci): fix proj name 2025-04-28 14:35:51 -07:00
00e860d8e6 ci: fix fork preview 2025-04-28 13:19:29 -07:00
2acdec323f fix(explorer): Prevent html from being scrollable when mobile explorer is open (#1895)
* Fixed html page being scrollable when mobile explorer is open

* Prettier code

* Addressed comment
2025-04-26 11:13:56 -07:00
9e58857746 feat(favicon): add plugin to expose favicon from icon.png (#1942)
* feat(favicon): add plugin to expose favicon from icon.png

* chore(favicon): clean up formatting and remove unnecessary line breaks
2025-04-26 11:06:59 -07:00
4bd714b7be fix(callout): Grid-based callout collapsible animation (#1944)
* Fixed broken nested callout maxHeight calculation

* Implemented grid-based callout collapsible
2025-04-26 11:05:51 -07:00
78e13bcb40 chore: add ci to preview all prs (#1947)
* add ci to preview all prs

* only on this repo

* fmt
2025-04-26 11:04:23 -07:00
7d49dff074 fix: prefer webgl for devices with webgpu and no float32-blendable feature flag #1899 (#1933)
Co-authored-by: Tony <32993852+0xREDACTED@users.noreply.github.com>
2025-04-23 09:32:52 -07:00
cdebd05dc9 fix(wikilinks): dont default empty alias 2025-04-23 09:30:25 -07:00
2a9290b3df fix(transclude): blockref detection 2025-04-22 11:18:50 -07:00
771c05ff18 fix: dynamically detect current branch for quartz sync push (#1930) 2025-04-22 10:22:43 -07:00
6dd772bf00 fix(popover): properly clear popover on racing fetch 2025-04-21 23:55:38 -07:00
c238dd16d9 chore(deps): bump the production-dependencies group with 2 updates (#1919)
Bumps the production-dependencies group with 2 updates: [@clack/prompts](https://github.com/bombshell-dev/clack/tree/HEAD/packages/prompts) and [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node).


Updates `@clack/prompts` from 0.10.0 to 0.10.1
- [Release notes](https://github.com/bombshell-dev/clack/releases)
- [Changelog](https://github.com/bombshell-dev/clack/blob/@clack/prompts@0.10.1/packages/prompts/CHANGELOG.md)
- [Commits](https://github.com/bombshell-dev/clack/commits/@clack/prompts@0.10.1/packages/prompts)

Updates `@types/node` from 22.14.0 to 22.14.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@clack/prompts"
  dependency-version: 0.10.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: "@types/node"
  dependency-version: 22.14.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-17 19:48:08 -07:00
b34d521293 feat: reader mode 2025-04-17 19:45:17 -07:00
bfd72347cf fix(popover): clear popovers more aggressively, use href as id 2025-04-11 08:18:28 -07:00
091cc1b05e fix(search): properly show mobile layout 2025-04-10 17:43:35 -07:00
e9b60c7285 fix(popover): popover id calculation + scroll consistency 2025-04-10 16:46:30 -07:00
b1a920e5c0 fix: add proper popover hint to tag content page 2025-04-10 16:28:36 -07:00
61770d3e50 chore(deps): bump the production-dependencies group with 6 updates (#1913)
Bumps the production-dependencies group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [preact](https://github.com/preactjs/preact) | `10.26.4` | `10.26.5` |
| [remark-rehype](https://github.com/remarkjs/remark-rehype) | `11.1.1` | `11.1.2` |
| [sharp](https://github.com/lovell/sharp) | `0.33.5` | `0.34.1` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.13.14` | `22.14.0` |
| [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) | `8.18.0` | `8.18.1` |
| [typescript](https://github.com/microsoft/TypeScript) | `5.8.2` | `5.8.3` |


Updates `preact` from 10.26.4 to 10.26.5
- [Release notes](https://github.com/preactjs/preact/releases)
- [Commits](https://github.com/preactjs/preact/compare/10.26.4...10.26.5)

Updates `remark-rehype` from 11.1.1 to 11.1.2
- [Release notes](https://github.com/remarkjs/remark-rehype/releases)
- [Commits](https://github.com/remarkjs/remark-rehype/compare/11.1.1...11.1.2)

Updates `sharp` from 0.33.5 to 0.34.1
- [Release notes](https://github.com/lovell/sharp/releases)
- [Commits](https://github.com/lovell/sharp/compare/v0.33.5...v0.34.1)

Updates `@types/node` from 22.13.14 to 22.14.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@types/ws` from 8.18.0 to 8.18.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

Updates `typescript` from 5.8.2 to 5.8.3
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](https://github.com/microsoft/TypeScript/commits)

---
updated-dependencies:
- dependency-name: preact
  dependency-version: 10.26.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: remark-rehype
  dependency-version: 11.1.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: sharp
  dependency-version: 0.34.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: "@types/node"
  dependency-version: 22.14.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: "@types/ws"
  dependency-version: 8.18.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: typescript
  dependency-version: 5.8.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-10 16:17:15 -07:00
9db66d500e fix(popover): round coords remove blurred popovers (#1911) 2025-04-07 00:23:49 +02:00
ee8c1dc968 chore(css): style tweaks for overflow 2025-04-05 11:38:50 -07:00
bb24cd13c7 fix(css): styles issues with popover, overflow, and scroll overflow (#1907)
* fix(style): fix toc overflow & scrolling overflow

* fix(style): fix explorer scrolling overflow

* fix(style): fix backlinks overflow & scrolling overflow

* fix(style): resolve popover overflow issue causing incomplete display

* chore: rename function to enhance readability

* fix(popover): make the backlink's id unique & use translate() instead of translateY()
2025-04-05 10:39:28 -07:00
d61fb266c7 fix(popover): automatically position anchored links properly (#1897)
* fix(popover): automatically position heading links at heading

* Impement linking of blockreferences

* Popover fixes

* id mapping

* Remove excess regexes

* Updated blockref

* Remove linker element

* Restore the docs to their former glory

* Move the hash out of the loop

* Redundant

* Redundant

* Restore docs

* Remove log

* Let it const
2025-04-05 10:31:17 -07:00
685c06ce2e fix(RecentNotes): Prevent folder pages from always appearing first (closes #1901) (#1904)
* Fix(RecentNotes): Prevent folder pages from always appearing first

Pass prioritizeFolders=false to byDateAndAlphabetical in RecentNotes to sort strictly by date/alphabetical order, fixing issue #1901.

* refactor: split sorting functions for clarity

- Split byDateAndAlphabetical into two separate functions\n- byDateAndAlphabetical: sorts strictly by date and alphabetically\n- byDateAndAlphabeticalFolderFirst: sorts with folders first\n- Updated RecentNotes to use date-only sorting

* Fix(PageList): keep byDateAndAlphabeticalFolderFirst as the default sorting order for PageList
2025-04-04 10:36:29 -07:00
3ae89a1d16 fix(search): make closest sidebar z-index adjustment optional (closes #1905) 2025-04-04 10:17:57 -07:00
4d6e7ccba9 chore(docs): fix explorer docs on filtering by title 2025-04-04 09:50:01 -07:00
f334e78ed6 fix(style): MathJax in callouts spacing (#1892) 2025-03-31 23:14:30 +02:00
c5304b35c0 chore(deps): bump the production-dependencies group with 5 updates (#1894)
Bumps the production-dependencies group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [pixi.js](https://github.com/pixijs/pixijs) | `8.9.0` | `8.9.1` |
| [rehype-citation](https://github.com/timlrx/rehype-citation) | `2.2.2` | `2.3.1` |
| [satori](https://github.com/vercel/satori) | `0.12.1` | `0.12.2` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.13.13` | `22.13.14` |
| [esbuild](https://github.com/evanw/esbuild) | `0.25.1` | `0.25.2` |


Updates `pixi.js` from 8.9.0 to 8.9.1
- [Release notes](https://github.com/pixijs/pixijs/releases)
- [Commits](https://github.com/pixijs/pixijs/compare/v8.9.0...v8.9.1)

Updates `rehype-citation` from 2.2.2 to 2.3.1
- [Release notes](https://github.com/timlrx/rehype-citation/releases)
- [Commits](https://github.com/timlrx/rehype-citation/compare/v2.2.2...v2.3.1)

Updates `satori` from 0.12.1 to 0.12.2
- [Release notes](https://github.com/vercel/satori/releases)
- [Commits](https://github.com/vercel/satori/compare/0.12.1...0.12.2)

Updates `@types/node` from 22.13.13 to 22.13.14
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `esbuild` from 0.25.1 to 0.25.2
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.1...v0.25.2)

---
updated-dependencies:
- dependency-name: pixi.js
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: rehype-citation
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: satori
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: esbuild
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-31 14:08:30 -07:00
99f353968e chore(deps-dev): bump @types/node in the production-dependencies group (#1869)
Bumps the production-dependencies group with 1 update: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node).


Updates `@types/node` from 22.13.11 to 22.13.13
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-30 19:12:18 -07:00
ec4700d522 Hey folder icon don't shrink please (#1872) 2025-03-30 19:08:20 -07:00
d6f69e830c fix: remove redundant log and display in parent of overflow 2025-03-30 18:15:25 -07:00
9ee6fe15fd fix: reproducible overflowlist (closes #1885) 2025-03-30 18:04:48 -07:00
a21f588c48 fix(toc): element can't fully collapse 2025-03-30 17:39:08 -07:00
2119025513 fix(toc): Fixed headers in second ToC element not highlight-able 2025-03-30 17:35:20 -07:00
f70e562432 fix: overflow list bottom gradient on toc (closes #1888) 2025-03-30 17:30:01 -07:00
9ff6c7a3f5 fix(style): MathJax non-inline formulae center (#1886) 2025-03-30 21:19:53 +02:00
7ca9dd9a70 fix: dont use cdn for twemoji, bake emojis as b64 2025-03-28 16:29:33 -07:00
b397dae951 Updating breadcrumbs docs on ConditionalRender (#1871) 2025-03-26 08:32:13 -07:00
23b691f38c fix: coerce fullslug 2025-03-23 20:43:01 -07:00
c18e6cd5bb fix(alias): resolve relative if alias is relative 2025-03-23 20:38:06 -07:00
fe2e16d937 fix: disallow user-select in popover 2025-03-23 18:08:07 -07:00
722b4321db docs: clarify transclusions 2025-03-23 18:03:52 -07:00
9d8d238912 chore(deps): bump the production-dependencies group across 1 directory with 4 updates (#1867)
Bumps the production-dependencies group with 4 updates in the / directory: [lightningcss](https://github.com/parcel-bundler/lightningcss), [pixi.js](https://github.com/pixijs/pixijs), [rehype-pretty-code](https://github.com/rehype-pretty/rehype-pretty-code/tree/HEAD/packages/core) and [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node).


Updates `lightningcss` from 1.29.2 to 1.29.3
- [Release notes](https://github.com/parcel-bundler/lightningcss/releases)
- [Commits](https://github.com/parcel-bundler/lightningcss/compare/v1.29.2...v1.29.3)

Updates `pixi.js` from 8.8.1 to 8.9.0
- [Release notes](https://github.com/pixijs/pixijs/releases)
- [Commits](https://github.com/pixijs/pixijs/compare/v8.8.1...v8.9.0)

Updates `rehype-pretty-code` from 0.14.0 to 0.14.1
- [Release notes](https://github.com/rehype-pretty/rehype-pretty-code/releases)
- [Changelog](https://github.com/rehype-pretty/rehype-pretty-code/blob/master/packages/core/CHANGELOG.md)
- [Commits](https://github.com/rehype-pretty/rehype-pretty-code/commits/rehype-pretty-code@0.14.1/packages/core)

Updates `@types/node` from 22.13.10 to 22.13.11
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: lightningcss
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: pixi.js
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: rehype-pretty-code
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-23 17:57:45 -07:00
141f053b0d chore: format path.test.ts 2025-03-23 17:43:47 -07:00
3027eced6c chore(test): add tests for resolveRelative 2025-03-23 17:42:23 -07:00
aaa5c8e8e4 feat: conditional render component 2025-03-23 17:34:14 -07:00
4e74d11b1a fix: cleanup a href link construction, global shared trie, breadcrumbs use trie 2025-03-23 17:24:43 -07:00
457b77dd48 fix(frontmatter): prevent slug duplication through frontmatter (#1860)
* fix(frontmatter): prevent slug duplication through frontmatter

* Simplify duplicate slug checks

* Update quartz/plugins/transformers/frontmatter.ts

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

* lint

---------

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2025-03-22 03:59:43 +01:00
3ce6aa49bf fix(ogImage): update socialImage path to include base URL if defined (#1858)
* fix(ogImage): update socialImage path to include base URL if defined

* feat(path): add function to check if a file path is absolute

* fix(ogImage): handle absolute paths for user defined og image paths

* docs(CustomOgImages): update socialImage property to accept full URLs

* fix(ogImage): typo

* fix(ogImage): improve user-defined OG image path handling

* Update docs/plugins/CustomOgImages.md

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

* Update quartz/plugins/emitters/ogImage.tsx

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

* refactor(path): remove isAbsoluteFilePath function

* fix(ogImage): update user-defined OG image path handling to support relative URLs

* feat(ogImage): enhance user-defined OG image path handling with absolute URL support

* refactor(ogImage): remove debug log for ogImagePath

* feat(path): add isAbsoluteURL function and corresponding tests

* refactor(path): remove unused URL import for isomorphic compatibility

---------

Co-authored-by: Karim H <karimh96@hotmail.com>
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2025-03-21 16:49:56 -07:00
9316ddf2f5 fix(analytics): fix the load of the analytics scripts (#1865)
* fix(analytics): fix the load of the analytics scripts

* chore(lint): fix lint issues
2025-03-21 09:58:10 -07:00
fbca56f278 fix(lastmod) Change defaultDateType to "modified" (#1862)
Making this change as per https://github.com/jackyzha0/quartz/issues/1857#issuecomment-2737098252

This is necessary for the `git` source to work properly in the CreatedModifiedDate plugin.
2025-03-19 12:47:16 -07:00
eccad3da5d fix(lastmod): fallback to ctx.arg.directory instead of empty string 2025-03-18 21:48:24 -07:00
bcde2abcb2 fix(transformer): find last modified date form commit on submodule (#1831)
* fix(transformer): find last modified date form commit on submodule

when the content folder has a submodule git, the relative path start in content folder and not root folder of quartz

* fix(transformer): use path.relative for improved path handling in last modified date calculation

* fix(transformer): keep find file from relative path of repo workdir

* fix(transformer): use variable for repository workdir

use default value if repo.workdir is undefined to user fullFp value
2025-03-18 21:47:35 -07:00
25979ab216 feat(fonts): allow PageTitle to have its own font subset (#1848)
* fix(explorer): vertically center the Explorer toggle under mobile view

* Added a separate title font configuration

* Added googleSubFontHref function

* Applied --titleFont to PageTitle

* Made googleFontHref return array of URLs

* Dealing with empty and undefined title

* Minor update

* Dealing with empty and undefined title

* Refined font inclusion logic

* Adopted the googleFontHref + googleFontSubsetHref method

* Adaptively include font subset for PageTitle

* Restored default config

* Minor changes on configuration docs

* Formatted source code
2025-03-18 21:43:32 -07:00
9818e1ad57 chore: remove unused import 2025-03-18 09:00:15 -07:00
771110a72a fix(git): deprioritize git, dont fail on non-git content folders 2025-03-18 08:56:06 -07:00
dc6a9f3b12 chore(deps): bump rlespinasse/github-slug-action (#1851)
Bumps the ci-dependencies group with 1 update: [rlespinasse/github-slug-action](https://github.com/rlespinasse/github-slug-action).


Updates `rlespinasse/github-slug-action` from 5.0.0 to 5.1.0
- [Release notes](https://github.com/rlespinasse/github-slug-action/releases)
- [Commits](https://github.com/rlespinasse/github-slug-action/compare/v5.0.0...v5.1.0)

---
updated-dependencies:
- dependency-name: rlespinasse/github-slug-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ci-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-17 14:49:27 -07:00
c0b73ddaa4 fix: maybeDates will change children dates (#1843) 2025-03-17 08:27:15 -07:00
e86544064c fix: parse parallelization chunk arg, inline b64 for og image 2025-03-16 15:12:40 -07:00
a737207981 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
a72b1a4224 fix(explorer): vertically center the Explorer toggle under mobile view (#1847) 2025-03-16 12:08:45 -07:00
fbb4523853 fix(folder): use memoized trie instead of handrolled path solution (closes #1767) 2025-03-14 15:08:23 -07:00
da1b6b37fe fix(explorer): fix incorrect recursive case for folder rendering 2025-03-14 10:05:26 -07:00
e26658f4ed fix(description): calculate description properly when first sentence is longer than max 2025-03-13 14:22:11 -07:00
b579950ae5 fix(og): adjust line clamp 2025-03-13 14:05:26 -07:00
0babbdf780 fix(contentPage): dont emit folders 2025-03-13 13:57:00 -07:00
1efe2e20a4 fix(graph): avoid keeping stroke in gfx 2025-03-13 12:29:30 -07:00
5928d82a56 fix(og): search for font family properly 2025-03-13 12:11:27 -07:00
696403d3fa chore: bump version to 4.4.1 2025-03-13 10:55:37 -07:00
2c30abe457 fix(analytics): always use defer over async to account for document nav event 2025-03-13 10:48:03 -07:00
80c3196fee feat(og): add reading time to default, improve logging 2025-03-13 10:41:50 -07:00
d9159e0ac9 feat: make og images an emitter to properly await image generation (#1826)
* checkpoint

* make emitters async generators

* fix

* custom font spec

* replace spinner, use disk cache for fonts

* use readline instead

* make og images look nice
2025-03-13 10:27:46 -07:00
c005fe4408 fix(explorer): properly respect folderDefaultState (closes #1827) 2025-03-12 22:31:44 -07:00
580c1bd608 fix(typography): properly pass Google font options (#1825) 2025-03-12 11:27:41 -07:00
270a5dc14a fix(explorer): show file name instead of slug if no file data (closes #1822) 2025-03-12 11:24:28 -07:00
bfa938cc62 fix(explorer): allow setting displayName (closes #1824) 2025-03-12 10:42:07 -07:00
e3c50caf13 fix(explorer): dont invert mobile css, properly toggle .collapsed 2025-03-12 10:15:54 -07:00
ca08ec1ae7 fix(explorer): mobile explorer toggle (#1823) 2025-03-12 14:15:16 +01:00
2718ab9019 feat: flex component, document higher-order layout components 2025-03-11 14:56:43 -07:00
87b803790c fix(mermaid): themechange detector + expand simplification 2025-03-11 11:45:45 -07:00
e59181c3aa docs(explorer): update to account for new client side explorer) 2025-03-11 10:20:15 -07:00
b00198b888 fix: load mermaid as normal now that inline is safely below bundle size 2025-03-10 16:42:08 -07:00
9e3e711646 fix: mermaid script load order 2025-03-10 16:20:08 -07:00
a8001e9554 feat: support non-singleton explorer 2025-03-10 15:13:22 -07:00
dd940a007c Merge pull request #1820 from jackyzha0/dependabot/npm_and_yarn/production-dependencies-8ce87f9e70
chore(deps): bump the production-dependencies group with 5 updates
2025-03-10 17:57:39 -04:00
a71e17919b chore(deps): bump the production-dependencies group with 5 updates
Bumps the production-dependencies group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [hast-util-to-jsx-runtime](https://github.com/syntax-tree/hast-util-to-jsx-runtime) | `2.3.5` | `2.3.6` |
| [lightningcss](https://github.com/parcel-bundler/lightningcss) | `1.29.1` | `1.29.2` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.13.9` | `22.13.10` |
| [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) | `8.5.14` | `8.18.0` |
| [esbuild](https://github.com/evanw/esbuild) | `0.25.0` | `0.25.1` |


Updates `hast-util-to-jsx-runtime` from 2.3.5 to 2.3.6
- [Release notes](https://github.com/syntax-tree/hast-util-to-jsx-runtime/releases)
- [Commits](https://github.com/syntax-tree/hast-util-to-jsx-runtime/compare/2.3.5...2.3.6)

Updates `lightningcss` from 1.29.1 to 1.29.2
- [Release notes](https://github.com/parcel-bundler/lightningcss/releases)
- [Commits](https://github.com/parcel-bundler/lightningcss/commits/v1.29.2)

Updates `@types/node` from 22.13.9 to 22.13.10
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@types/ws` from 8.5.14 to 8.18.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

Updates `esbuild` from 0.25.0 to 0.25.1
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.0...v0.25.1)

---
updated-dependencies:
- dependency-name: hast-util-to-jsx-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: lightningcss
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: "@types/ws"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: esbuild
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-10 20:57:05 +00:00
aca0c330e7 docs: cleanup showcase (#1818)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2025-03-10 11:46:49 -07:00
dcaf806190 feat: support non-singleton darkmode 2025-03-10 11:44:47 -07:00
23df17233d fix(graph): make graph non-singleton, proper cleanup, fix radial 2025-03-10 11:39:08 -07:00
8d33608808 fix(popovers): clear id to avoid anchor jumps within popover 2025-03-10 00:08:06 -07:00
d618a4e3f3 fix(explorer): dont rely on data to get slug, compute it in trie 2025-03-09 23:36:10 -07:00
9c8fec06d2 feat: support non-singleton search 2025-03-09 15:33:15 -07:00
1cd8e7f0d5 feat: support non-singleton table of contents 2025-03-09 15:06:36 -07:00
5480269d38 perf(explorer): client side explorer (#1810)
* start work on client side explorer

* fix tests

* fmt

* generic test flag

* add prenav hook

* add highlight class

* make flex more consistent, remove transition

* open folders that are prefixes of current path

* make mobile look nice

* more style fixes
2025-03-09 14:58:26 -07:00
a201105442 fix(docker): instructions + bump deps + bind mount (#1809)
* fix docker

* test with docs folder
2025-03-06 10:01:25 -08:00
cc9704becc chore(deps): bump deps, silence internal punycode deprecation 2025-03-06 09:41:26 -08:00
6d195fd40a feat: font specification flexibility 2025-03-06 09:21:50 -08:00
2213424195 docs: make role of getQuartzComponents more clear and also make it optional 2025-03-05 18:34:02 -08:00
5b13ff2199 feat: support emitters defining external resources, emit link from contentindex directly 2025-03-05 18:16:24 -08:00
5a39719898 fix(graph): set container as renderGroup to avoid redrawing multiple times (#1736)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2025-03-05 17:33:16 -08:00
3c8ccde624 chore(og-image): force twemoji for emoji util 2025-03-05 17:21:19 -08:00
c97fd7089a Added emoji support to Satori when generating OG images (#1593) 2025-03-05 17:14:06 -08:00
2acfa0fa23 fix(og-image): overflow ellipses in title and description 2025-03-05 17:13:19 -08:00
f6f417a505 fix: engine reqiurements 2025-03-05 16:49:43 -08:00
a3b6201365 chore(deps): bump the production-dependencies group with 6 updates (#1804)
* chore(deps): bump the production-dependencies group with 6 updates

Bumps the production-dependencies group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [hast-util-to-jsx-runtime](https://github.com/syntax-tree/hast-util-to-jsx-runtime) | `2.3.4` | `2.3.5` |
| [pixi.js](https://github.com/pixijs/pixijs) | `8.8.0` | `8.8.1` |
| [preact](https://github.com/preactjs/preact) | `10.26.2` | `10.26.4` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.13.5` | `22.13.9` |
| [prettier](https://github.com/prettier/prettier) | `3.5.2` | `3.5.3` |
| [typescript](https://github.com/microsoft/TypeScript) | `5.7.3` | `5.8.2` |


Updates `hast-util-to-jsx-runtime` from 2.3.4 to 2.3.5
- [Release notes](https://github.com/syntax-tree/hast-util-to-jsx-runtime/releases)
- [Commits](https://github.com/syntax-tree/hast-util-to-jsx-runtime/compare/2.3.4...2.3.5)

Updates `pixi.js` from 8.8.0 to 8.8.1
- [Release notes](https://github.com/pixijs/pixijs/releases)
- [Commits](https://github.com/pixijs/pixijs/compare/v8.8.0...v8.8.1)

Updates `preact` from 10.26.2 to 10.26.4
- [Release notes](https://github.com/preactjs/preact/releases)
- [Commits](https://github.com/preactjs/preact/compare/10.26.2...10.26.4)

Updates `@types/node` from 22.13.5 to 22.13.9
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `prettier` from 3.5.2 to 3.5.3
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.5.2...3.5.3)

Updates `typescript` from 5.7.3 to 5.8.2
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.7.3...v5.8.2)

---
updated-dependencies:
- dependency-name: hast-util-to-jsx-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: pixi.js
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: preact
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* type fixes

* fix more types

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2025-03-05 16:45:02 -08:00
a1162b978a fix(analytics): spa tracking for other providers 2025-03-05 16:27:08 -08:00
c6f10b44f6 feat(rss): configurable RSS feed URL (#1806)
* feat(rss): configurable RSS feed URL

* Update docs/features/RSS Feed.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update docs/features/RSS Feed.md

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2025-03-05 15:54:11 -08:00
b050162f82 docs(frontmatter): mention dealiasing related fields (#1715)
* Added to the documentation which values of frontmatter are referenced.

* The source code I was looking at seemed to be out of date and the wrong listings were corrected.

* The list of frontmatter was moved to Frontmatter.md and a link was added.
2025-02-27 16:37:01 -05:00
6d350500f1 fix(goatcounter): properly count SPA page hits (#1718)
On the surface it seems that only google and plausible scripts handle
the SPA correctly - but I don't know if maybe others handle
window.history API themselves somehow or something like that.

However, I am trying out goatcounter and in it's docs I see that it
does no special SPA handling, so this has to be fixed.

Just doing the dynamic script thing on every nav seems to do the trick.
The script is not "spa-preserve" so they wouldn't accumulate - and when
I tried the "spa-preserve" + call goatcounter api route it didn't quite
work, they actually did accumulate
2025-02-27 16:35:19 -05:00
9b47279fe6 feat(i18n): added nb-NO (Norwegian) (#1795) 2025-02-27 16:33:15 -05:00
4901472aa8 chore(deps): bump the production-dependencies group with 8 updates (#1788)
* chore(deps): bump the production-dependencies group with 8 updates

Bumps the production-dependencies group with 8 updates:

| Package | From | To |
| --- | --- | --- |
| [hast-util-to-html](https://github.com/syntax-tree/hast-util-to-html) | `9.0.4` | `9.0.5` |
| [hast-util-to-jsx-runtime](https://github.com/syntax-tree/hast-util-to-jsx-runtime) | `2.3.2` | `2.3.4` |
| [preact](https://github.com/preactjs/preact) | `10.26.0` | `10.26.2` |
| [rehype-mathjax](https://github.com/remarkjs/remark-math) | `7.0.0` | `7.1.0` |
| [ws](https://github.com/websockets/ws) | `8.18.0` | `8.18.1` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.13.4` | `22.13.5` |
| [prettier](https://github.com/prettier/prettier) | `3.5.1` | `3.5.2` |
| [tsx](https://github.com/privatenumber/tsx) | `4.19.2` | `4.19.3` |


Updates `hast-util-to-html` from 9.0.4 to 9.0.5
- [Release notes](https://github.com/syntax-tree/hast-util-to-html/releases)
- [Commits](https://github.com/syntax-tree/hast-util-to-html/compare/9.0.4...9.0.5)

Updates `hast-util-to-jsx-runtime` from 2.3.2 to 2.3.4
- [Release notes](https://github.com/syntax-tree/hast-util-to-jsx-runtime/releases)
- [Commits](https://github.com/syntax-tree/hast-util-to-jsx-runtime/compare/2.3.2...2.3.4)

Updates `preact` from 10.26.0 to 10.26.2
- [Release notes](https://github.com/preactjs/preact/releases)
- [Commits](https://github.com/preactjs/preact/compare/10.26.0...10.26.2)

Updates `rehype-mathjax` from 7.0.0 to 7.1.0
- [Release notes](https://github.com/remarkjs/remark-math/releases)
- [Commits](https://github.com/remarkjs/remark-math/compare/rehype-mathjax@7.0.0...rehype-mathjax@7.1.0)

Updates `ws` from 8.18.0 to 8.18.1
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.18.0...8.18.1)

Updates `@types/node` from 22.13.4 to 22.13.5
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `prettier` from 3.5.1 to 3.5.2
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.5.1...3.5.2)

Updates `tsx` from 4.19.2 to 4.19.3
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs)
- [Commits](https://github.com/privatenumber/tsx/compare/v4.19.2...v4.19.3)

---
updated-dependencies:
- dependency-name: hast-util-to-html
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: hast-util-to-jsx-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: preact
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: rehype-mathjax
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: ws
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: tsx
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: update type error

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2025-02-25 16:52:52 -05:00
28fe9b2095 chore(deps): bump sigstore/cosign-installer in the ci-dependencies group (#1789)
Bumps the ci-dependencies group with 1 update: [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer).


Updates `sigstore/cosign-installer` from 3.8.0 to 3.8.1
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.8.0...v3.8.1)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ci-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-25 16:35:10 -05:00
9a0d919a3b docs: add Citation plugin & feature pages (#1772)
* docs: add Citation plugin & feature pages

Discussed and extracted from #1557

* Update docs/features/Citations.md

* Apply suggestions from code review

---------

Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>
2025-02-25 16:34:37 -05:00
598741a571 fix(fonts): update system-ui trick for improve cross-platform compatibility (#1778) 2025-02-25 16:31:41 -05:00
29c533a265 fix(aliases): wikilink resolution for aliases (#1681)
With markdownLinkResolution: "shortest", aka "+/- how Obsidian does it"
and given pages A and nested/B which has an alias Z, if you try to link
from A using [[Z]] it wouldn't work and get 404.

This is caused by alias slugs (nested/Z in this case, emitted by
AliasRedirects) not being present in the `allSlugs` list which is used
by the link transformer.

The fix is to compute the alias slugs in the frontmatter transformer
and add them to `allSlugs` there.
Also we store them in file data to avoid recomputing them when emitting
alias redirect pages.

Fixes #904

Note: given how currently the markdown/html transformers are ordered
this doesn't really work.

Given pages A and nested/B which has an alias Z, here's the order which
currently happens:

md-transformers(A) => html-transformers(A) =>
md-transformers(B) => html-transformers(B)

Since the nested/Z slug will get added when md-transformers(B) are run,
but the slugs are used by html-transformers(A) when resolving it's
links - the link [[Z]] in A will still 404

A fix for this is to split the parser into two stages - first apply the
md-transformers to all files, and only then apply html-transformers to
all files.

I did just that in a different commit, which is needed for this one to
work correctly.
2025-02-25 16:28:16 -05:00
1a02642469 feat(i18n): add Finnish translations for i18n (#1782) 2025-02-25 16:27:32 -05:00
5794405974 feat(cli): absolute path support for -d flag (#1756) 2025-02-25 16:27:10 -05:00
59d5a0ed3a fix(graph): mobile global graph overlay (#1790) 2025-02-25 13:35:24 +01:00
dd6bd498db chore(deps): bump the production-dependencies group with 5 updates (#1775)
Bumps the production-dependencies group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [pixi.js](https://github.com/pixijs/pixijs) | `8.7.3` | `8.8.0` |
| [preact](https://github.com/preactjs/preact) | `10.25.4` | `10.26.0` |
| [rehype-mathjax](https://github.com/remarkjs/remark-math) | `6.0.0` | `7.0.0` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.13.1` | `22.13.4` |
| [prettier](https://github.com/prettier/prettier) | `3.5.0` | `3.5.1` |


Updates `pixi.js` from 8.7.3 to 8.8.0
- [Release notes](https://github.com/pixijs/pixijs/releases)
- [Commits](https://github.com/pixijs/pixijs/compare/v8.7.3...v8.8.0)

Updates `preact` from 10.25.4 to 10.26.0
- [Release notes](https://github.com/preactjs/preact/releases)
- [Commits](https://github.com/preactjs/preact/compare/10.25.4...10.26.0)

Updates `rehype-mathjax` from 6.0.0 to 7.0.0
- [Release notes](https://github.com/remarkjs/remark-math/releases)
- [Commits](https://github.com/remarkjs/remark-math/compare/rehype-mathjax@6.0.0...rehype-mathjax@7.0.0)

Updates `@types/node` from 22.13.1 to 22.13.4
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `prettier` from 3.5.0 to 3.5.1
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.5.0...3.5.1)

---
updated-dependencies:
- dependency-name: pixi.js
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: preact
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: rehype-mathjax
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: production-dependencies
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-17 21:54:07 -05:00
04423d4931 chore(deps): bump the production-dependencies group with 6 updates (#1761)
Bumps the production-dependencies group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [@clack/prompts](https://github.com/natemoo-re/clack/tree/HEAD/packages/prompts) | `0.9.1` | `0.10.0` |
| [globby](https://github.com/sindresorhus/globby) | `14.0.2` | `14.1.0` |
| [remark-gfm](https://github.com/remarkjs/remark-gfm) | `4.0.0` | `4.0.1` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.13.0` | `22.13.1` |
| [esbuild](https://github.com/evanw/esbuild) | `0.24.2` | `0.25.0` |
| [prettier](https://github.com/prettier/prettier) | `3.4.2` | `3.5.0` |


Updates `@clack/prompts` from 0.9.1 to 0.10.0
- [Release notes](https://github.com/natemoo-re/clack/releases)
- [Changelog](https://github.com/bombshell-dev/clack/blob/main/packages/prompts/CHANGELOG.md)
- [Commits](https://github.com/natemoo-re/clack/commits/@clack/prompts@0.10.0/packages/prompts)

Updates `globby` from 14.0.2 to 14.1.0
- [Release notes](https://github.com/sindresorhus/globby/releases)
- [Commits](https://github.com/sindresorhus/globby/compare/v14.0.2...v14.1.0)

Updates `remark-gfm` from 4.0.0 to 4.0.1
- [Release notes](https://github.com/remarkjs/remark-gfm/releases)
- [Commits](https://github.com/remarkjs/remark-gfm/compare/4.0.0...4.0.1)

Updates `@types/node` from 22.13.0 to 22.13.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `esbuild` from 0.24.2 to 0.25.0
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2024.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.24.2...v0.25.0)

Updates `prettier` from 3.4.2 to 3.5.0
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.4.2...3.5.0)

---
updated-dependencies:
- dependency-name: "@clack/prompts"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: globby
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: remark-gfm
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: esbuild
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-11 01:28:02 -05:00
be846e6a5f chore(deps): bump sigstore/cosign-installer in the ci-dependencies group (#1762)
Bumps the ci-dependencies group with 1 update: [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer).


Updates `sigstore/cosign-installer` from 3.7.0 to 3.8.0
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v3.7.0...v3.8.0)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: ci-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-11 01:27:43 -05:00
32ec711767 chore(deps-dev): bump @types/node in the production-dependencies group (#1751)
Bumps the production-dependencies group with 1 update: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node).


Updates `@types/node` from 22.12.0 to 22.13.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-05 05:07:14 -05:00
91189dfd2f feat(explorer): collapsible mobile explorer (#1471)
Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>
2025-02-03 09:25:42 -05:00
fbc45548f7 feat(graph): enable radial mode (#1738) 2025-02-01 16:22:29 -05:00
7be47742a6 chore(deps): bump the production-dependencies group across 1 directory with 3 updates (#1744)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 06:46:45 -05:00
4e4930ef9c chore(styles): omit sass deprecation warnings (#1737)
update to newer API
2025-01-23 22:19:46 -05:00
01943ff5a0 feat(i18n): Lithuanian (#1733) 2025-01-21 00:20:02 -05:00
8cf3e3001f feat(i18n): Thai translations (#1722) 2025-01-16 15:44:33 -05:00
992ac00f7c chore(deps): bump the production-dependencies group with 7 updates (#1719)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-14 00:02:49 -05:00
09f8670db7 chore(deps): bump the production-dependencies group with 4 updates (#1711)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2025-01-07 20:32:02 -05:00
7e828252bb fix(path): handle lone slash (#1713) 2025-01-07 16:00:09 -05:00
c90dbacab0 chore(build): separate markdown and html handling into two separate stages (#1675) 2025-01-07 15:33:34 -05:00
b7a945e034 fix(tags): Dont consume a space before content tags (#1706) 2025-01-05 01:11:15 -05:00
dc3323b574 chore: use Google Fonts API v2 to get fonts for ogp (#1705) 2025-01-04 09:45:53 -08:00
c98ef7e89f perf(img): lazy load chunks (#1700) 2025-01-03 11:27:43 -08:00
2e6a675edd perf: reduce bundle size (closes #1607) (#1689) 2025-01-01 12:24:32 -08:00
e3162f7a7e chore: joinSegments fix + tests 2025-01-01 12:11:16 -08:00
9466c145b1 fix(path): correct handle URI schemes in joinSegments (#1693) 2025-01-01 10:07:59 -08:00
a934397961 fix(spa): Fix relative alias redirects (#1688) 2024-12-30 18:21:07 -08:00
b2752e7262 chore(deps): bump the production-dependencies group with 2 updates (#1696)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-30 18:19:22 -08:00
d9e36e60d1 fix(search): Fix super-inconsistent preview widths in search previews (#1677)
Don't know if this was uncovered by my local setup or just nobody
noticed, but page previews were pretty wonky for me
2024-12-30 09:55:53 -08:00
46adb35966 fix(spa): Normalize empty hrefs (#1695)
A final breadcrumb has an empty href, linking to the current page, but
the relative url normalization method missed those, making the link
appear broken in search previews and popovers.

Fixes #1690
2024-12-30 09:55:18 -08:00
e1c9eabef4 fix(css): oops fit-content not no width specification for codeblock title 2024-12-30 09:28:02 -08:00
d88e43010a fix(tags): Fix TagContent not sorting the page list when opening a tag (#1692) 2024-12-30 09:08:35 -08:00
ef72f1bf70 Fix ObsidianFlavoredMarkdown source link (#1694) 2024-12-30 08:03:57 -08:00
7d4bed64a9 fix(css): allow proper width on code block title (closes #1683) 2024-12-28 15:17:58 -08:00
99011cb1b0 fix(spa): handle HTML redirects for aliases (#1680) 2024-12-27 07:18:22 -07:00
c91cf97f99 feat(spa): add loading bar (#1684) 2024-12-26 22:18:17 -07:00
05e6f05a50 feat(backlinks): hide by default when empty (#1674)
Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>
2024-12-26 21:05:35 -07:00
7533d504dc fix(tags): Set consistent titles for tags with description pages (#1671) 2024-12-26 17:50:06 -07:00
69a0ddf733 fix(tags): Show tag descriptions when hovering (#1670) 2024-12-26 06:50:54 -07:00
a582505daf chore(deps): bump the production-dependencies group with 7 updates (#1667)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-23 16:35:08 -05:00
965f9e123c chore(frontmatter): dealias created/modified/updated time (#1664) 2024-12-23 15:00:26 -05:00
ff9e60a7fc fix(search): restore mobile search view (#1576) 2024-12-17 13:07:00 -05:00
367bb0e6ce chore(deps): bump the production-dependencies group across 1 directory with 14 updates (#1655)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2024-12-17 03:53:51 -05:00
8141cb1587 fix(cssclasses): apply frontmatter classes uniformly between page types (#1645) 2024-12-11 00:43:27 +01:00
5ccc2dcbba fix(head): update open-graph width and height protocol per ogp (#1512)
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2024-12-03 04:52:51 -05:00
11c98f5600 feat(i18n): add zh-TW (#1621) 2024-12-03 04:52:36 -05:00
5a5ef670fe fix(darkmode): check for null (#1531) 2024-12-03 01:56:59 -05:00
285c0e9768 docs(showcase): 8cat.life (#1617) 2024-12-03 01:50:50 -05:00
adb326c933 fix(style): ensure images have no background color when linked (#1623) 2024-12-03 01:43:22 -05:00
Bao
0c4281eb53 fix: use time HTML element for date strings (#1622) 2024-12-03 01:41:55 -05:00
7ac94e1d84 fix(comments): properly check if comments is in frontmatter (#1627) 2024-11-30 21:03:20 -05:00
e1d754ef79 Update showcase.md (#1611) 2024-11-22 11:44:40 -08:00
a727b57e46 docs(hosting): add apache config example (#1608) 2024-11-20 19:29:43 -05:00
1a4cfa606f chore(deps): bump the production-dependencies group with 3 updates (#1600)
Bumps the production-dependencies group with 3 updates: [@clack/prompts](https://github.com/natemoo-re/clack/tree/HEAD/packages/prompts), [satori](https://github.com/vercel/satori) and [shiki](https://github.com/shikijs/shiki/tree/HEAD/packages/shiki).


Updates `@clack/prompts` from 0.7.0 to 0.8.1
- [Release notes](https://github.com/natemoo-re/clack/releases)
- [Changelog](https://github.com/bombshell-dev/clack/blob/main/packages/prompts/CHANGELOG.md)
- [Commits](https://github.com/natemoo-re/clack/commits/@clack/prompts@0.8.1/packages/prompts)

Updates `satori` from 0.10.14 to 0.11.3
- [Release notes](https://github.com/vercel/satori/releases)
- [Commits](https://github.com/vercel/satori/compare/0.10.14...0.11.3)

Updates `shiki` from 1.22.2 to 1.23.1
- [Release notes](https://github.com/shikijs/shiki/releases)
- [Changelog](https://github.com/shikijs/shiki/blob/main/CHANGELOG.md)
- [Commits](https://github.com/shikijs/shiki/commits/v1.23.1/packages/shiki)

---
updated-dependencies:
- dependency-name: "@clack/prompts"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: satori
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: shiki
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-19 00:36:08 -05:00
410001b942 docs: add the pond (#1598) 2024-11-18 11:39:44 -08:00
f24a147276 fix(comment): negate check (closes #1582) (#1586) 2024-11-14 06:28:06 -05:00
137d55eb1b feat(open-graph): generate OG images + further OG support (#740)
* Quartz sync: Aug 29, 2023, 10:17 PM

* feat: add basic satori og image generation

* Squashed commit of the following:

commit fa69c2a565
Author: Ben Schlegel <31989404+benschlegel@users.noreply.github.com>
Date:   Thu Sep 21 19:35:11 2023 +0200

    fix(explorer): increase consistency, explicitly use font-family (#496)

    * fix(explorer): display name for folders without `index` file

    * docs(explorer): add section for folder display names

    * docs(explorer): fix broken wikilink

    * fix(consistency): explicitly set font + label/link fix

    Use consistent styling between folders with `folderClickBehavior: "link"` and `"collapse`

    * Update quartz/components/styles/explorer.scss

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

    * Update quartz/components/styles/explorer.scss

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

    ---------

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

commit 8eb1554b13
Author: Ben Schlegel <31989404+benschlegel@users.noreply.github.com>
Date:   Thu Sep 21 18:54:33 2023 +0200

    fix(explorer): display names for folders without frontmatter (#494)

    * fix(explorer): display name for folders without `index` file

    * docs(explorer): add section for folder display names

commit dcdeae4e7b
Author: Ben Schlegel <31989404+benschlegel@users.noreply.github.com>
Date:   Thu Sep 21 18:53:19 2023 +0200

    docs(explorer): update default config + new example (#493)

commit 48452231d5
Author: Jacky Zhao <j.zhao2k19@gmail.com>
Date:   Wed Sep 20 16:09:18 2023 -0700

    perf: memoize filetree computation (#490)

    * perf: memoize filetree computation

    * format

    * var -> let

commit 16d33fb771
Author: Jacky Zhao <j.zhao2k19@gmail.com>
Date:   Wed Sep 20 16:08:54 2023 -0700

    feat: display name for folders, expand explorer a little bit (#489)

    * feat: display name for folders, expand explorer a little bit

    * update docs

commit b029eeadab
Author: Ben Schlegel <31989404+benschlegel@users.noreply.github.com>
Date:   Wed Sep 20 22:55:29 2023 +0200

    feat(explorer): improve accessibility and consistency (+ bug fix) (#488)

    * feat(consistency): use `all: unset` on button

    * style: improve accessibility and consistency for explorer

    * fix: localStorage bug with folder name changes

    * chore: bump quartz version

commit 6a9e6352e8
Author: Jacky Zhao <j.zhao2k19@gmail.com>
Date:   Wed Sep 20 13:52:45 2023 -0700

    Revert "feat: Making Quartz available offline by making it a PWA (#465)"

    This reverts commit d6301fae90.

commit 70e029d151
Author: Jacky Zhao <j.zhao2k19@gmail.com>
Date:   Wed Sep 20 13:52:29 2023 -0700

    Revert "docs: wording changes for offline support"

    This reverts commit 52a172d1a4.

commit 0bad3ce799
Author: Jacky Zhao <j.zhao2k19@gmail.com>
Date:   Wed Sep 20 11:58:52 2023 -0700

    docs: document enableToc

commit 52a172d1a4
Author: Jacky Zhao <j.zhao2k19@gmail.com>
Date:   Wed Sep 20 11:40:36 2023 -0700

    docs: wording changes for offline support

commit d6301fae90
Author: Adam Brangenberg <adambrangenberg@proton.me>
Date:   Wed Sep 20 20:38:13 2023 +0200

    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>

commit 27a6087dd5
Author: rwutscher <richard.wutscher@gmail.com>
Date:   Tue Sep 19 21:26:30 2023 +0200

    fix: tag regex no longer includes purely numerical 'tags' (#485)

    * fix: tag regex no longer includes purely numerical 'tags'

    * fix: formatting

    * fix: use guard in findAndReplace() instead of expanding the regex

commit 1bf7e3d8b3
Author: Jacky Zhao <j.zhao2k19@gmail.com>
Date:   Tue Sep 19 10:22:39 2023 -0700

    fix(nit): make defaultOptions on explorer not a function

commit cc31a40b0c
Author: David Fischer <david@konst.fish>
Date:   Tue Sep 19 18:25:51 2023 +0200

    feat: support changes in system theme (#484)

    * feat: support changes in system theme

    * fix: run prettier

    * fix: add content/.gitkeep

commit 0d3cf29226
Author: Ben Schlegel <31989404+benschlegel@users.noreply.github.com>
Date:   Mon Sep 18 23:32:00 2023 +0200

    docs: fix explorer example (#483)

* feat: dynamically generate og images, write to fs as png

* fix: og preview on discord

* feat: use `sharp` to convert to webp, add content headers

* feat: add config for theme (light or dark)

* feat: improve image margins, add font breakpoint

* feat: use config header + body fonts for satori

* perf: memoize fonts

* feat: use default og image if no path exists

* feat: add config option for social images

* feat: support custom og images via frontmatter

* refactor: clean font helpers, rename fonts helper

* refactor: make image generation cleaner

* refactor: move default image to own component

* chore: add todos

* fix: only set width/height header if known

* feat: remove html from description

* feat: make image dimensions configurable

* feat: pass userOpts to image generator

* feat: option for users to provide own image struct (satori)

This allows users to pass their own jsx for generating the default og image

* refactor: rename `defaultImage.tsx` > `socialImage.tsx`

* chore: improve comments + types

* refactor: rename socialImage frontmatter property

* feat: add frontmatter aliases for cover image

* feat: add frontmatter alias for obsidian publish

* docs: add documentation for social images

* feat: add `generateSocialImages` prop to config

* chore: update lock file

* fix: fix type error

* chore: update package.json

* chore: update package-lock.json

* docs: update docs

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

* fix: clean url for use in metadata

* refactor: clean function signature

* feat: pass `fileData` to image generator

* CI: run format

* fix: file system import

* fix: merge paths using `joinSegments`

* fix: get output dir via `ctx.argv.output`

* chore: add explanation to font regex

* Squashed commit of the following:

commit 7164857f6e
Author: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Date:   Fri Mar 15 21:17:42 2024 -0400

    chore(ofm): remove unused (#999)

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

commit 47024022e8
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Mar 15 18:29:14 2024 -0400

    chore(deps-dev): bump @types/node from 20.11.24 to 20.11.25 (#990)

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.24 to 20.11.25.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit b98e4be665
Author: Mara-Li <lili.simonetti@outlook.fr>
Date:   Fri Mar 15 23:28:31 2024 +0100

    feat(i18n): Add French translation for reading time (#998)

    Signed-off-by: Mara-Li <lili.simonetti@outlook.fr>

commit 8be51a0504
Author: catcodeme <1020082805@qq.com>
Date:   Fri Mar 15 14:25:01 2024 +0800

    fix: wikiLink in table (#993)

    * fix: wikiLink in table

    - update regexp to make '\' to group in alias
    - handle alias using block_id

    * style: format with prettier

    * style: add comment for block_ref(without alias) in table

    ---------

    Co-authored-by: hulinjiang <hulinjiang@58.com>

commit 92cc23dc45
Author: Linus Sehn <37184648+linozen@users.noreply.github.com>
Date:   Wed Mar 13 08:59:37 2024 +0100

    feat(plugin): citations (#984)

    * feat: add rehype-citations

    * feat: add citations transformer plugin

    * feat: add rehype-rewrite

    * feat: add csl option and add no-popover to citation links

    * revert: add rehype-rewrite

    04b2692 'feat: add rehype-rewrite'

    * feat: use existing package for html manipulation

    * fix: remove `console.log()`

commit 097abc3cda
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Mon Mar 11 13:41:48 2024 -0700

    chore(deps): bump async-mutex from 0.4.1 to 0.5.0 (#991)

    Bumps [async-mutex](https://github.com/DirtyHairy/async-mutex) from 0.4.1 to 0.5.0.
    - [Changelog](https://github.com/DirtyHairy/async-mutex/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/DirtyHairy/async-mutex/compare/v0.4.1...v0.5.0)

    ---
    updated-dependencies:
    - dependency-name: async-mutex
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit a00324ddfd
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Mon Mar 11 13:41:41 2024 -0700

    chore(deps-dev): bump typescript from 5.3.3 to 5.4.2 (#989)

    Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.3.3 to 5.4.2.
    - [Release notes](https://github.com/Microsoft/TypeScript/releases)
    - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
    - [Commits](https://github.com/Microsoft/TypeScript/compare/v5.3.3...v5.4.2)

    ---
    updated-dependencies:
    - dependency-name: typescript
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 9fff6d7d0d
Author: Mara-Li <lili.simonetti@outlook.fr>
Date:   Mon Mar 11 17:46:53 2024 +0100

    fix: spelling error (#987)

    I really don't know why I translated this like that into "pas trouvé", and it bugged me a lot. I finally fixed it…

    Signed-off-by: Mara-Li <lili.simonetti@outlook.fr>

commit 0f5a9d7b66
Author: Matt Vogel <mainmoniker@googlemail.com>
Date:   Sun Mar 10 12:57:10 2024 -0400

    feat: separated content meta (#929)

    to allow for CSS styling

commit b4236e5142
Author: kabirgh <15871468+kabirgh@users.noreply.github.com>
Date:   Sun Mar 10 00:42:23 2024 +0000

    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

commit 6e0c102970
Author: Emile Bangma <ewjbangma@hotmail.com>
Date:   Sun Mar 10 01:14:31 2024 +0100

    fix(transclusion): prevent duplicate transclusion if multiple transclusions are present. (#982)

commit 94a54698ab
Author: Emile Bangma <ewjbangma@hotmail.com>
Date:   Sat Mar 9 17:59:55 2024 +0100

    fix(resources): Use full path to font when cdnCache is false (#976)

commit 2e9a0c21db
Author: Emile Bangma <ewjbangma@hotmail.com>
Date:   Sat Mar 9 17:43:40 2024 +0100

    fix(description): first sentence no longer repeats until max length (#981)

commit b30a200bd4
Author: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
Date:   Fri Mar 8 12:14:22 2024 -0500

    fix(i18n): make sure to use correct fileData for manual localization (#975)

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

commit 6d59aa8201
Author: Emile Bangma <ewjbangma@hotmail.com>
Date:   Fri Mar 8 10:04:44 2024 +0100

    fix(description): counts characters instead of words (#972)

    * fix(description): make sure description counts characters instead of words

    * ref: removed duplicate ternary

* CI: fix package log post merge

* CI: fix more merge artifacts

* CI: fix package-lock.json

* feat: add new default image template

* feat: use icon.png for image generation

* chore: update satori and sharp version

* feat(image-generator): add new default template

* Update quartz/components/Head.tsx

* Update quartz/components/Head.tsx

* Update quartz/components/Head.tsx

* Update docs/features/social images.md

* Update quartz/components/Head.tsx

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

* feat(og-image): add config option to use default og image for root path

* docs(og-image): add `excludeRoot` config + update preview images

* docs(open-graph): add examples section

* chore: remove unused `socialImage2.tsx` component

* feat(open-graph): add frontmatter aliases for socialImage/cover/image

* fix(open-graph): only load satori font if config option is enabled

* refactor(open-graph): dont use async promise inside `fetchTtf()`

* chore: renaming and finished copywriting

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* chore: update typo

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* chore: update hinting for socialImage

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
Co-authored-by: Emile Bangma <ewjbangma@hotmail.com>
Co-authored-by: Emile Bangma <github@emilebangma.com>
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2024-11-12 07:33:35 -05:00
9188939b1f feat(math): typst support(closes #1568) (#1569)
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>
2024-11-12 06:42:44 -05:00
92676d746e feat(ofm): support parsing footnotes in table (#1581) 2024-11-12 03:37:59 -05:00
1893196939 chore(deps): bump rehype-citation from 2.2.1 to 2.2.2 in the production-dependencies group (#1583)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-12 00:38:48 -05:00
1ab9c91df1 feat(mermaid): improvement navigation (#1575)
* feat(mermaid): custom stuff

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* chore: use mermaid and update clipboard content

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* fix: explicitly use center div

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-11-10 18:13:12 -05:00
0ad9111388 chore(deps): bump rlespinasse/github-slug-action from 4.4.1 to 5.0.0 in the ci-dependencies group (#1578)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-10 04:46:14 -05:00
cbeef5541f chore(deps-dev): bump @types/node from 22.8.7 to 22.9.0 in the production-dependencies group (#1579)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-10 04:46:01 -05:00
0f04f1262c ci(dependabot): update GA periodically (#1577)
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2024-11-10 04:41:56 -05:00
31e0b7c6f8 feat(comments): conditional display via frontmatter (#1566) 2024-11-09 04:44:32 -05:00
a6b2967df8 fix: account for chokidar v4 glob deprecation in source watching 2024-11-07 16:32:26 -08:00
f84a6554f6 fix(style): remove flex end to fix tag alignment in content meta 2024-11-07 15:13:28 -08:00
1d5b6f58d8 chore(deps): bump the production-dependencies group with 4 updates (#1565)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-04 21:03:30 -05:00
74f8c13598 fix: reset z-index instead of inherited unset (#1528)
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2024-11-04 20:22:36 -05:00
56ba2f4fa7 feat(build): add support for parsing inline sass (#1558) 2024-11-01 07:16:12 -04:00
314a88d5c6 feat(transformer): allow inline CSS styling (#1551)
* feat(transformer): allow inline CSS styling

* Updated docs

* Default to inline: false

* Removed redundant inline: false
2024-10-30 23:57:39 +01:00
a53772bbd1 feat(i18n): add turkish language (#1554) 2024-10-30 18:33:22 -04:00
1915a198d9 chore(deps): bump the production-dependencies group with 5 updates (#1548)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-29 20:04:45 -04:00
1d2dc167f4 feat(folder): add intermediate folders pages (#1295)
Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2024-10-25 12:52:33 -04:00
3ef2a24f4b chore(deps): bump the production-dependencies group across 1 directory with 7 updates (#1540) 2024-10-22 17:54:41 -04:00
d98a3a088a Merge pull request #1543 from saberzero1/draft-publish-string
feat(filters): support "true" as valid for frontmatter filters
2024-10-22 22:38:16 +02:00
ad52d09567 Feat(filters): Support "true" as valid for draft and publish frontmatter values (b3a02909ba) 2024-10-22 20:33:54 +00:00
9f701e5045 fix(grid): $desktop variable (#1511) 2024-10-17 23:50:48 -04:00
67e1beea70 feat(comments): support custom giscus themes (#1526)
Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2024-10-17 18:30:16 -04:00
3aa11357aa fix(toc): regression (#1517) 2024-10-16 17:44:30 -04:00
b3a02909ba fix: make filter checks more strict (closes #1519) 2024-10-15 09:34:46 -07:00
1dc208356a fix(cli): use shell on win32 for update (#1503) (#1504)
If there is no `npm.exe` on the system, but
instead an `npm.cmd`, then node won't find
the `npm` executable when calling `spawnSync`.

This occurs frequently when using node package
managers on Windows.

See the node documentation for `.bat` and `.cmd`
files here.

<https://nodejs.org/api/child_process.html#spawning-bat-and-cmd-files-on-windows>.
2024-10-13 10:46:51 -07:00
3d0ba32070 docs: Update Name and URL of Simon's SB and adding DE Vault (#1507) 2024-10-13 10:42:29 -07:00
c5d97db000 fix(toc): invalid desktop-only styling (#1502)
* fix(toc): invalid desktop-only styling

should display none instead.

* Update toc.scss
2024-10-12 18:33:07 -04:00
0d1f15d37c feat(ofm): Allow for dashes in custom callout label (#1493)
* [OFM] Allow for dashes in custom callout label

For compatibility with Obsidian's behavior, a custom callout like
[!see-also] is possible. Previously, this was parsed by Quartz as a
callout “see” with metadata “-also”. Instead, this is should be a
callout “see-also” with title “See also” (capitalization + replace
dashes by spaces).

* prettier
2024-10-10 07:15:23 -04:00
11c23a137a chore(deps): bump the production-dependencies group with 9 updates (#1495)
Bumps the production-dependencies group with 9 updates:

| Package | From | To |
| --- | --- | --- |
| [chokidar](https://github.com/paulmillr/chokidar) | `3.6.0` | `4.0.1` |
| [esbuild-sass-plugin](https://github.com/glromeo/esbuild-sass-plugin) | `2.16.1` | `3.3.1` |
| [lightningcss](https://github.com/parcel-bundler/lightningcss) | `1.26.0` | `1.27.0` |
| [preact](https://github.com/preactjs/preact) | `10.24.1` | `10.24.2` |
| [rehype-citation](https://github.com/timlrx/rehype-citation) | `2.1.1` | `2.1.2` |
| [shiki](https://github.com/shikijs/shiki/tree/HEAD/packages/shiki) | `1.18.0` | `1.22.0` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.7.4` | `22.7.5` |
| [esbuild](https://github.com/evanw/esbuild) | `0.19.12` | `0.24.0` |
| [typescript](https://github.com/microsoft/TypeScript) | `5.6.2` | `5.6.3` |


Updates `chokidar` from 3.6.0 to 4.0.1
- [Release notes](https://github.com/paulmillr/chokidar/releases)
- [Commits](https://github.com/paulmillr/chokidar/compare/3.6.0...4.0.1)

Updates `esbuild-sass-plugin` from 2.16.1 to 3.3.1
- [Release notes](https://github.com/glromeo/esbuild-sass-plugin/releases)
- [Commits](https://github.com/glromeo/esbuild-sass-plugin/compare/v2.16.1...v3.3.1)

Updates `lightningcss` from 1.26.0 to 1.27.0
- [Release notes](https://github.com/parcel-bundler/lightningcss/releases)
- [Commits](https://github.com/parcel-bundler/lightningcss/compare/v1.26.0...v1.27.0)

Updates `preact` from 10.24.1 to 10.24.2
- [Release notes](https://github.com/preactjs/preact/releases)
- [Commits](https://github.com/preactjs/preact/compare/10.24.1...10.24.2)

Updates `rehype-citation` from 2.1.1 to 2.1.2
- [Release notes](https://github.com/timlrx/rehype-citation/releases)
- [Commits](https://github.com/timlrx/rehype-citation/compare/v2.1.1...v2.1.2)

Updates `shiki` from 1.18.0 to 1.22.0
- [Release notes](https://github.com/shikijs/shiki/releases)
- [Changelog](https://github.com/shikijs/shiki/blob/main/CHANGELOG.md)
- [Commits](https://github.com/shikijs/shiki/commits/v1.22.0/packages/shiki)

Updates `@types/node` from 22.7.4 to 22.7.5
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `esbuild` from 0.19.12 to 0.24.0
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.19.12...v0.24.0)

Updates `typescript` from 5.6.2 to 5.6.3
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.6.2...v5.6.3)

---
updated-dependencies:
- dependency-name: chokidar
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: production-dependencies
- dependency-name: esbuild-sass-plugin
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: production-dependencies
- dependency-name: lightningcss
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: preact
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: rehype-citation
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: shiki
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
- dependency-name: esbuild
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-09 14:57:33 -07:00
8a95c865c8 chore(citations): passthrough options (#1429) 2024-10-09 14:14:44 -04:00
fe4b039b60 chore(ci): group dependabot upgrade (#1491)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-10-09 09:52:49 -07:00
497d51973a chore(ci): remove signing and vuln (#1484)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-10-07 02:52:14 -04:00
66d7dd8677 fix(ci): run build on tags (#1483)
* fix(ci): run build on tags

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* chore: update docker warning and not push on PR

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-10-06 22:34:31 -04:00
313cef60ee infra: build quartz docker image to GHCR (#1192)
* Add GitHub action to build & push Docker image to GHCR

* Use double quotes to keep `prettier` happy :)

* Don't run Docker build & push on forks

* -1 char commit lmao

* Add git metadata to Docker image

* Apply Aaron's patch

* chore: run prettier

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2024-10-06 22:15:19 -04:00
af14ca7c4f i18n: add Czech translation (#1477)
* add Czech translation

* fix formatting
2024-10-04 09:10:40 -07:00
e06f681ce7 chore(deps): bump preact from 10.24.0 to 10.24.1 (#1464)
Bumps [preact](https://github.com/preactjs/preact) from 10.24.0 to 10.24.1.
- [Release notes](https://github.com/preactjs/preact/releases)
- [Commits](https://github.com/preactjs/preact/compare/10.24.0...10.24.1)

---
updated-dependencies:
- dependency-name: preact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-02 04:42:14 -04:00
62906eebd3 chore(deps-dev): bump @types/node from 22.5.5 to 22.7.4 (#1465)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.5.5 to 22.7.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-02 04:42:02 -04:00
9cd072bfc3 chore(deps): bump hast-util-to-string from 3.0.0 to 3.0.1 (#1466)
Bumps [hast-util-to-string](https://github.com/rehypejs/rehype-minify) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/rehypejs/rehype-minify/releases)
- [Changelog](https://github.com/rehypejs/rehype-minify/blob/main/changelog.md)
- [Commits](https://github.com/rehypejs/rehype-minify/commits)

---
updated-dependencies:
- dependency-name: hast-util-to-string
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-02 04:41:50 -04:00
319b4497bc chore(deps-dev): bump tsx from 4.19.0 to 4.19.1 (#1467)
Bumps [tsx](https://github.com/privatenumber/tsx) from 4.19.0 to 4.19.1.
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs)
- [Commits](https://github.com/privatenumber/tsx/compare/v4.19.0...v4.19.1)

---
updated-dependencies:
- dependency-name: tsx
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-02 04:41:36 -04:00
b0c079f24a fix(layout): restore footer to the proper position (#1470)
* fix(layout): restore footer to the proper position

* align ToC scrollbar properly on short headers
2024-10-01 08:49:13 -07:00
1b122a1da0 chore(deps): bump @floating-ui/dom from 1.6.10 to 1.6.11 (#1463)
Bumps [@floating-ui/dom](https://github.com/floating-ui/floating-ui/tree/HEAD/packages/dom) from 1.6.10 to 1.6.11.
- [Release notes](https://github.com/floating-ui/floating-ui/releases)
- [Changelog](https://github.com/floating-ui/floating-ui/blob/master/packages/dom/CHANGELOG.md)
- [Commits](https://github.com/floating-ui/floating-ui/commits/@floating-ui/dom@1.6.11/packages/dom)

---
updated-dependencies:
- dependency-name: "@floating-ui/dom"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 20:10:05 -04:00
b8c46ba81a feat(analytics): clarity (#1446)
Add the code necessary for support of Microsoft clarity
2024-09-30 10:06:37 -07:00
1416f62a47 fix(layout): backlinks grid triage (#1447)
* fix: mobile backlinks orientation

* temp: hide broken list gradient

* fix: backlinks overflow
2024-09-29 22:24:15 -04:00
8889ab63eb fix: provide default pageTitleSuffix (closes #1452) 2024-09-28 09:38:19 -07:00
5eec1e98e6 fix(layout): grid triage with backlinks (#1442) 2024-09-25 18:15:07 -04:00
a7a0dcad22 fix(layout): grid triage and regression (#1440)
* fix(table of contents): multiple scrollbars (https://github.com/jackyzha0/quartz/issues/1388)

* fix(center): Main content mininum width (https://github.com/jackyzha0/quartz/issues/1439)

* fix(code block): Horizontal overflow fix (https://github.com/jackyzha0/quartz/issues/1438, https://github.com/jackyzha0/quartz/issues/1353)

* WIP fix for ul/ol .overflow

* Fix: restore former scrollbar behavior for overflow lists (https://github.com/jackyzha0/quartz/issues/1437)

* Fix: code block overflow-x

* fix: Table of Content overflow (https://github.com/jackyzha0/quartz/issues/1437)

* Address feedback

* Move max-height toggle from js to css
2024-09-25 17:20:58 -04:00
921f45cf70 feat: add a config option for a pageTitleSuffix (#1320)
* feat: add a config option for a pageTitleSuffix

* Run Prettier on Head.tsx

* Make pageTitleSuffix optional

Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>

---------

Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>
2024-09-24 20:20:36 -04:00
90c187587f chore(deps): bump pixi.js from 8.3.4 to 8.4.1 (#1432)
Bumps [pixi.js](https://github.com/pixijs/pixijs) from 8.3.4 to 8.4.1.
- [Release notes](https://github.com/pixijs/pixijs/releases)
- [Commits](https://github.com/pixijs/pixijs/compare/v8.3.4...v8.4.1)

---
updated-dependencies:
- dependency-name: pixi.js
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-24 20:19:48 -04:00
08e20a7006 chore(deps): bump remark-rehype from 11.1.0 to 11.1.1 (#1435)
Bumps [remark-rehype](https://github.com/remarkjs/remark-rehype) from 11.1.0 to 11.1.1.
- [Release notes](https://github.com/remarkjs/remark-rehype/releases)
- [Commits](https://github.com/remarkjs/remark-rehype/compare/11.1.0...11.1.1)

---
updated-dependencies:
- dependency-name: remark-rehype
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-24 20:19:37 -04:00
9e32016508 chore(deps): bump rehype-pretty-code from 0.13.2 to 0.14.0 (#1433)
Bumps [rehype-pretty-code](https://github.com/rehype-pretty/rehype-pretty-code/tree/HEAD/packages/core) from 0.13.2 to 0.14.0.
- [Release notes](https://github.com/rehype-pretty/rehype-pretty-code/releases)
- [Changelog](https://github.com/rehype-pretty/rehype-pretty-code/blob/master/packages/core/CHANGELOG.md)
- [Commits](https://github.com/rehype-pretty/rehype-pretty-code/commits/rehype-pretty-code@0.14.0/packages/core)

---
updated-dependencies:
- dependency-name: rehype-pretty-code
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-24 20:19:25 -04:00
8a050c0be0 chore(deps): bump hast-util-to-html from 9.0.2 to 9.0.3 (#1434)
Bumps [hast-util-to-html](https://github.com/syntax-tree/hast-util-to-html) from 9.0.2 to 9.0.3.
- [Release notes](https://github.com/syntax-tree/hast-util-to-html/releases)
- [Commits](https://github.com/syntax-tree/hast-util-to-html/compare/9.0.2...9.0.3)

---
updated-dependencies:
- dependency-name: hast-util-to-html
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-24 20:19:12 -04:00
0aacd8ed2e chore(deps): bump shiki from 1.12.1 to 1.18.0 (#1436)
Bumps [shiki](https://github.com/shikijs/shiki/tree/HEAD/packages/shiki) from 1.12.1 to 1.18.0.
- [Release notes](https://github.com/shikijs/shiki/releases)
- [Changelog](https://github.com/shikijs/shiki/blob/main/CHANGELOG.md)
- [Commits](https://github.com/shikijs/shiki/commits/v1.18.0/packages/shiki)

---
updated-dependencies:
- dependency-name: shiki
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-24 20:18:55 -04:00
7d7e334976 feat: responsive design grid (#1354)
* Responsive design grid

* Addressed PR feedback

* Bump Quartz version 4.3.1 => 4.4.0

* Moved page-header into center

* Updated docs with new layouts

* Sync updated version number with package-lock

* Table of Content scrollbar auto

* Reset node_modules

* Updated layout images

* Fixed tablet layout

* Finilazed layout images
2024-09-23 13:40:12 -07:00
9cefcd0dd1 Revert "perf: eagerly compute explorer nodes to avoid re-render in memoized value"
This reverts commit 16a9caa555.
2024-09-20 15:48:14 -07:00
4aaeb768d8 update cabin url (#1428) 2024-09-20 09:23:19 -07:00
743ef712d5 chore(deps): bump preact-render-to-string from 6.5.10 to 6.5.11 (#1417)
Bumps [preact-render-to-string](https://github.com/preactjs/preact-render-to-string) from 6.5.10 to 6.5.11.
- [Release notes](https://github.com/preactjs/preact-render-to-string/releases)
- [Changelog](https://github.com/preactjs/preact-render-to-string/blob/main/CHANGELOG.md)
- [Commits](https://github.com/preactjs/preact-render-to-string/compare/v6.5.10...v6.5.11)

---
updated-dependencies:
- dependency-name: preact-render-to-string
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-16 22:24:03 -04:00
9a6e4e2f80 chore(deps-dev): bump typescript from 5.5.4 to 5.6.2 (#1418)
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.5.4 to 5.6.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.5.4...v5.6.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-16 19:56:14 -04:00
14cb50de9b chore(deps): bump preact from 10.23.2 to 10.24.0 (#1419)
Bumps [preact](https://github.com/preactjs/preact) from 10.23.2 to 10.24.0.
- [Release notes](https://github.com/preactjs/preact/releases)
- [Commits](https://github.com/preactjs/preact/compare/10.23.2...10.24.0)

---
updated-dependencies:
- dependency-name: preact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-16 19:56:00 -04:00
dad0ae4e3f chore(deps-dev): bump @types/node from 22.5.4 to 22.5.5 (#1420)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.5.4 to 22.5.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-16 19:55:42 -04:00
9c060f3cf2 chore(deps): bump vfile from 6.0.2 to 6.0.3 (#1421)
Bumps [vfile](https://github.com/vfile/vfile) from 6.0.2 to 6.0.3.
- [Release notes](https://github.com/vfile/vfile/releases)
- [Changelog](https://github.com/vfile/vfile/blob/main/changelog.md)
- [Commits](https://github.com/vfile/vfile/compare/6.0.2...6.0.3)

---
updated-dependencies:
- dependency-name: vfile
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-16 19:55:23 -04:00
16a9caa555 perf: eagerly compute explorer nodes to avoid re-render in memoized value 2024-09-15 18:05:17 -07:00
b1c60b8833 Add alexanderweichart.de to showcase.md (#1378)
Added my own website ^^

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-09-15 17:03:22 -07:00
50a78bafa5 docs: clarify prod hosting 2024-09-15 16:47:11 -07:00
6ea359e55e perf: have more than 1ms granularity for rebuild detection 2024-09-15 16:42:07 -07:00
cd3bb25626 fix: account for subtags in numerical tags (closes #1408) (#1410) 2024-09-15 11:25:31 -04:00
eb9bbd1666 fix: constrain link icon size (#1409) 2024-09-14 10:10:01 -07:00
c36551310d chore(deps): bump preact-render-to-string from 6.5.9 to 6.5.10 (#1390)
Bumps [preact-render-to-string](https://github.com/preactjs/preact-render-to-string) from 6.5.9 to 6.5.10.
- [Release notes](https://github.com/preactjs/preact-render-to-string/releases)
- [Changelog](https://github.com/preactjs/preact-render-to-string/blob/main/CHANGELOG.md)
- [Commits](https://github.com/preactjs/preact-render-to-string/compare/v6.5.9...v6.5.10)

---
updated-dependencies:
- dependency-name: preact-render-to-string
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 14:46:22 -07:00
6215dd5565 docs: fix roam research docs 2024-09-11 14:45:04 -07:00
c89c76b40a chore(deps-dev): bump tsx from 4.18.0 to 4.19.0 (#1391)
Bumps [tsx](https://github.com/privatenumber/tsx) from 4.18.0 to 4.19.0.
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs)
- [Commits](https://github.com/privatenumber/tsx/compare/v4.18.0...v4.19.0)

---
updated-dependencies:
- dependency-name: tsx
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 03:30:44 -04:00
a145e320d0 chore(deps): bump hast-util-to-html from 9.0.1 to 9.0.2 (#1393)
Bumps [hast-util-to-html](https://github.com/syntax-tree/hast-util-to-html) from 9.0.1 to 9.0.2.
- [Release notes](https://github.com/syntax-tree/hast-util-to-html/releases)
- [Commits](https://github.com/syntax-tree/hast-util-to-html/compare/9.0.1...9.0.2)

---
updated-dependencies:
- dependency-name: hast-util-to-html
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 03:30:28 -04:00
082cbb74c3 chore(deps-dev): bump @types/node from 22.5.0 to 22.5.4 (#1403)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.5.0 to 22.5.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 03:29:51 -04:00
93b2481261 chore(deps): bump pixi.js from 8.3.3 to 8.3.4 (#1394)
Bumps [pixi.js](https://github.com/pixijs/pixijs) from 8.3.3 to 8.3.4.
- [Release notes](https://github.com/pixijs/pixijs/releases)
- [Commits](https://github.com/pixijs/pixijs/compare/v8.3.3...v8.3.4)

---
updated-dependencies:
- dependency-name: pixi.js
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 03:29:36 -04:00
d2414b3903 feat(markdown): Roam Research flavour (#985)
* feat: Roam Research flavor markdown

* docs: Roam Research transformer

* use markdownPlugins

* fix roam matching

* cleanup: Roam Plugin

---------

Co-authored-by: Matt Vogel <>
2024-09-11 03:29:07 -04:00
01fc26d2c0 fix: Reload graph after a theme change (closes #1380) (#1383)
* FIX: Reload graph after a theme change

* FIX: Reload graph after a theme change - comment updated

* FIX: Reload graph after a theme change - comment updated

* FIX: Reload graph after a theme change

* fix: Reload graph after a theme change
2024-08-31 12:25:30 -07:00
84a9be65ce Add Projects & Privacy to showcase.md (#1381) 2024-08-31 11:43:49 -07:00
6715079a89 fix: only apply z-index on left sidebar 2024-08-28 12:50:25 -07:00
d613a3d2f2 chore(deps): bump unified from 11.0.4 to 11.0.5 (#1373)
Bumps [unified](https://github.com/unifiedjs/unified) from 11.0.4 to 11.0.5.
- [Release notes](https://github.com/unifiedjs/unified/releases)
- [Changelog](https://github.com/unifiedjs/unified/blob/main/changelog.md)
- [Commits](https://github.com/unifiedjs/unified/compare/11.0.4...11.0.5)

---
updated-dependencies:
- dependency-name: unified
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26 14:13:09 -07:00
9b75faafea chore(deps-dev): bump @types/yargs from 17.0.32 to 17.0.33 (#1374)
Bumps [@types/yargs](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/yargs) from 17.0.32 to 17.0.33.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/yargs)

---
updated-dependencies:
- dependency-name: "@types/yargs"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26 14:13:00 -07:00
5a26b582ed chore(deps-dev): bump @types/node from 22.1.0 to 22.5.0 (#1375)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.1.0 to 22.5.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26 14:12:51 -07:00
4e2aea8a5a chore(deps): bump @napi-rs/simple-git from 0.1.17 to 0.1.19 (#1376)
Bumps [@napi-rs/simple-git](https://github.com/Brooooooklyn/simple-git) from 0.1.17 to 0.1.19.
- [Release notes](https://github.com/Brooooooklyn/simple-git/releases)
- [Commits](https://github.com/Brooooooklyn/simple-git/compare/v0.1.17...v0.1.19)

---
updated-dependencies:
- dependency-name: "@napi-rs/simple-git"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26 14:12:45 -07:00
40f039983c chore(deps-dev): bump tsx from 4.17.0 to 4.18.0 (#1377)
Bumps [tsx](https://github.com/privatenumber/tsx) from 4.17.0 to 4.18.0.
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs)
- [Commits](https://github.com/privatenumber/tsx/compare/v4.17.0...v4.18.0)

---
updated-dependencies:
- dependency-name: tsx
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26 14:12:35 -07:00
3b988aec61 fix: Popover z-index issue on left sidebar (#1230) 2024-08-25 19:33:34 -07:00
bca74623a3 perf(graph): canvas implementation (#1328)
* perf(graph): initial canvas layout

include nodes and links drawn

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* fix(graph): update persistent for nodeGfx

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* chore(graph): add canvas element to avoid rerendering glitch

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* fix(spa): only render graph once in global

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* fix(graph): change svg as button

render global graph on toggle

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* fix(graph): fix anchor position and zIndex behaviour

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* chore(graph): increase linkDistance

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* refactor

* fmt

* pkg

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-08-25 00:33:14 -07:00
4c9e860150 a11y(darkmode): use a button for the theme toggle (#1335)
* Use a `<button>` for theme toggle

* docs: Adds back Xinyang's cs garden to showcase (#1323)

adding back my garden which was deleted from the cleanup showcase

* feat(toc,explorer): add accessibility for toggle (#1327)

* Restore focus highlight on explorer toggle button.

Remove `unset: all` declaration causing `outline`
property to be unset. This allows the default
browser focus highlight to be shown.

* Fix semantics of expandable sections (explorer, toc).

This adds the appropriate aria attributes for the [disclosure pattern](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/examples/disclosure-image-description/#javascriptandcsssourcecode) and uses `visibility: hidden` to remove the hidden elements from the focus order without disrupting the animations. Further work is needed on the tree view nodes.

* Run prettier for SCSS files.

* feat: custom global latex macros (closes #1325)

* chore: ts fixes

* docs: recommend at least node 20 in gh

* fix: unmemoize explorer on rebuild (closes #1077)

* fix: pass buildId to worker

* Fix theme button DOM hierarchy and styles

* Restore functionality of theme button

* `aria-label` on theme svgs so their accessible labels are included in button content

---------

Co-authored-by: Xinyang Yu <47915643+xy-241@users.noreply.github.com>
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-08-24 13:33:30 -07:00
46b63b68bf fix: Link visibility in exampanded TOC while collapseByDefault is true (#1371) 2024-08-24 12:56:17 -07:00
c4cd84dcc8 fix: Add a wrapper element to dates in PageList. (#1345)
* Add a wrapper span to dates in PageList.

This means there is a placeholder when date is not specified, so the values in grid-template-columns always line up correctly.

* Use a <div> instead -- better practice to stick to block elements.
2024-08-24 10:13:55 -07:00
2be9c096a1 chore(features): remove implemented (#1350) 2024-08-24 10:13:14 -07:00
f913332862 docs: Update Gitlab CI runner tag to use Gitlab runner (#1365)
Co-authored-by: Tony Jackson <tony.aaj.jackson@protonmail.com>
2024-08-23 18:55:03 -07:00
647c125525 docs: added permalink description to supported frontmatter doc (#1369) 2024-08-23 18:35:52 -07:00
3b74453fe6 docs: RTL showcase (#1362) 2024-08-20 09:28:52 -07:00
6b499ed90c chore(deps): bump @floating-ui/dom from 1.6.8 to 1.6.10 (#1358)
Bumps [@floating-ui/dom](https://github.com/floating-ui/floating-ui/tree/HEAD/packages/dom) from 1.6.8 to 1.6.10.
- [Release notes](https://github.com/floating-ui/floating-ui/releases)
- [Changelog](https://github.com/floating-ui/floating-ui/blob/master/packages/dom/CHANGELOG.md)
- [Commits](https://github.com/floating-ui/floating-ui/commits/@floating-ui/dom@1.6.10/packages/dom)

---
updated-dependencies:
- dependency-name: "@floating-ui/dom"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-19 14:18:00 -07:00
437d65c847 chore(deps): bump lightningcss from 1.25.1 to 1.26.0 (#1359)
Bumps [lightningcss](https://github.com/parcel-bundler/lightningcss) from 1.25.1 to 1.26.0.
- [Release notes](https://github.com/parcel-bundler/lightningcss/releases)
- [Commits](https://github.com/parcel-bundler/lightningcss/compare/v1.25.1...v1.26.0)

---
updated-dependencies:
- dependency-name: lightningcss
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-19 14:15:43 -07:00
7c5709b660 chore(deps): bump preact-render-to-string from 6.5.7 to 6.5.9 (#1360)
Bumps [preact-render-to-string](https://github.com/preactjs/preact-render-to-string) from 6.5.7 to 6.5.9.
- [Release notes](https://github.com/preactjs/preact-render-to-string/releases)
- [Changelog](https://github.com/preactjs/preact-render-to-string/blob/main/CHANGELOG.md)
- [Commits](https://github.com/preactjs/preact-render-to-string/compare/v6.5.7...v6.5.9)

---
updated-dependencies:
- dependency-name: preact-render-to-string
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-19 14:15:34 -07:00
21e1921822 chore(deps): bump @napi-rs/simple-git from 0.1.16 to 0.1.17 (#1357)
Bumps [@napi-rs/simple-git](https://github.com/Brooooooklyn/simple-git) from 0.1.16 to 0.1.17.
- [Release notes](https://github.com/Brooooooklyn/simple-git/releases)
- [Commits](https://github.com/Brooooooklyn/simple-git/compare/v0.1.16...v0.1.17)

---
updated-dependencies:
- dependency-name: "@napi-rs/simple-git"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-19 14:14:45 -07:00
e47c29d2fd chore(deps): bump rehype-katex from 7.0.0 to 7.0.1 (#1356)
Bumps [rehype-katex](https://github.com/remarkjs/remark-math) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/remarkjs/remark-math/releases)
- [Commits](https://github.com/remarkjs/remark-math/compare/rehype-katex@7.0.0...rehype-katex@7.0.1)

---
updated-dependencies:
- dependency-name: rehype-katex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-19 14:14:29 -07:00
a5f2f874f7 chore(deps-dev): bump tsx from 4.16.2 to 4.17.0 (#1340)
Bumps [tsx](https://github.com/privatenumber/tsx) from 4.16.2 to 4.17.0.
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs)
- [Commits](https://github.com/privatenumber/tsx/compare/v4.16.2...v4.17.0)

---
updated-dependencies:
- dependency-name: tsx
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-15 05:07:05 -04:00
eb23cbe8da chore(deps): bump rehype-citation from 2.0.0 to 2.1.1 (#1341)
Bumps [rehype-citation](https://github.com/timlrx/rehype-citation) from 2.0.0 to 2.1.1.
- [Release notes](https://github.com/timlrx/rehype-citation/releases)
- [Commits](https://github.com/timlrx/rehype-citation/compare/v2.0.0...v2.1.1)

---
updated-dependencies:
- dependency-name: rehype-citation
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-15 04:25:07 -04:00
cb68069d45 chore(deps-dev): bump typescript from 5.5.3 to 5.5.4 (#1343)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.5.3 to 5.5.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.5.3...v5.5.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-15 04:24:48 -04:00
d27c292736 feat: Mark the external link icon as aria-hidden (#1346) 2024-08-12 20:06:19 -07:00
0ee103a514 chore(deps): bump shiki from 1.10.3 to 1.12.1 (#1344)
Bumps [shiki](https://github.com/shikijs/shiki/tree/HEAD/packages/shiki) from 1.10.3 to 1.12.1.
- [Release notes](https://github.com/shikijs/shiki/releases)
- [Changelog](https://github.com/shikijs/shiki/blob/main/CHANGELOG.md)
- [Commits](https://github.com/shikijs/shiki/commits/v1.12.1/packages/shiki)

---
updated-dependencies:
- dependency-name: shiki
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-12 13:38:15 -07:00
c5f0b69a52 chore(deps): bump preact from 10.22.1 to 10.23.2 (#1342)
Bumps [preact](https://github.com/preactjs/preact) from 10.22.1 to 10.23.2.
- [Release notes](https://github.com/preactjs/preact/releases)
- [Commits](https://github.com/preactjs/preact/compare/10.22.1...10.23.2)

---
updated-dependencies:
- dependency-name: preact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-12 13:37:54 -07:00
323167a001 docs(hosting): missing key with: (#1334) 2024-08-10 08:32:51 -07:00
3b5ed813f5 feat(search): keyboard-accessible search button (#1331)
* Use a `<button>` for search

* Fix search button styles to match preexisting styling

* Remove additional native button properties.

* Invoke search button on click or keyboard.

* Reorganize search button DOM hierarchy

* Restore focus to the search button when exiting the search overlay

* Run prettier on Search.tsx
2024-08-09 18:46:50 -07:00
195fc5134c fix: pass buildId to worker 2024-08-08 19:33:27 -07:00
e89c395f7c fix: unmemoize explorer on rebuild (closes #1077) 2024-08-08 19:17:20 -07:00
2db735a150 docs: recommend at least node 20 in gh 2024-08-08 18:38:17 -07:00
39eebca3cf chore: ts fixes 2024-08-08 18:28:13 -07:00
9acaa1c8ac feat: custom global latex macros (closes #1325) 2024-08-08 18:19:45 -07:00
27a41abb62 feat(toc,explorer): add accessibility for toggle (#1327)
* Restore focus highlight on explorer toggle button.

Remove `unset: all` declaration causing `outline`
property to be unset. This allows the default
browser focus highlight to be shown.

* Fix semantics of expandable sections (explorer, toc).

This adds the appropriate aria attributes for the [disclosure pattern](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/examples/disclosure-image-description/#javascriptandcsssourcecode) and uses `visibility: hidden` to remove the hidden elements from the focus order without disrupting the animations. Further work is needed on the tree view nodes.

* Run prettier for SCSS files.
2024-08-08 18:07:47 -07:00
12904ab796 docs: Adds back Xinyang's cs garden to showcase (#1323)
adding back my garden which was deleted from the cleanup showcase
2024-08-08 18:00:20 -07:00
4bbcc0c50a pkg: minor bump for breaking nodejs bump :) 2024-08-05 19:33:23 -07:00
3938904cd0 fix: embed pdf aspect ratio (closes #1310) 2024-08-05 19:31:54 -07:00
407fad384c fix: only one h1 on a page (closes #1269) 2024-08-05 19:18:48 -07:00
ca3943b500 fix: responsive youtube embed (closes #1167) 2024-08-05 19:14:14 -07:00
6c4ed249ba chore(deps): bump rimraf from 5.0.7 to 6.0.1 (#1277)
Bumps [rimraf](https://github.com/isaacs/rimraf) from 5.0.7 to 6.0.1.
- [Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/rimraf/compare/v5.0.7...v6.0.1)

---
updated-dependencies:
- dependency-name: rimraf
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-05 18:54:10 -07:00
563ab4aaaf docs: update node version in hosting docs 2024-08-05 18:49:20 -07:00
1c2d542138 build: add .node-version 2024-08-05 18:48:29 -07:00
e864740df7 docs: Adds back Pelayo Arbues blog to showcase (#1314)
Co-authored-by: Pelayo Arbues <pgarbues@idealista.com>
2024-08-05 18:44:34 -07:00
efed544df1 docs: Add "Ellie's Notes" to the showcase (#1315)
Thank you for Quartz! I really love using it. Just adding my notes to the showcase 😊
2024-08-05 18:43:57 -07:00
3d156b8497 deps(dev): bump nodejs in ci 2024-08-05 18:43:05 -07:00
38361aaf48 deps: change min required nodejs to v20 (breaking) 2024-08-05 18:41:46 -07:00
f3e07fd51c chore(deps-dev): bump prettier from 3.3.2 to 3.3.3 (#1293)
* chore(deps-dev): bump prettier from 3.3.2 to 3.3.3

Bumps [prettier](https://github.com/prettier/prettier) from 3.3.2 to 3.3.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.3.2...3.3.3)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* make prettier happy

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-08-05 18:38:07 -07:00
d79911fa79 chore(deps): bump workerpool from 9.1.2 to 9.1.3 (#1318)
Bumps [workerpool](https://github.com/josdejong/workerpool) from 9.1.2 to 9.1.3.
- [Changelog](https://github.com/josdejong/workerpool/blob/master/HISTORY.md)
- [Commits](https://github.com/josdejong/workerpool/compare/v9.1.2...v9.1.3)

---
updated-dependencies:
- dependency-name: workerpool
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-05 18:46:00 -04:00
963c7c8654 chore(deps-dev): bump @types/node from 20.14.11 to 22.1.0 (#1319)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.14.11 to 22.1.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-05 16:49:37 -04:00
3728929ee6 chore(deps): bump preact-render-to-string from 6.5.5 to 6.5.7 (#1317)
Bumps [preact-render-to-string](https://github.com/preactjs/preact-render-to-string) from 6.5.5 to 6.5.7.
- [Release notes](https://github.com/preactjs/preact-render-to-string/releases)
- [Changelog](https://github.com/preactjs/preact-render-to-string/blob/main/CHANGELOG.md)
- [Commits](https://github.com/preactjs/preact-render-to-string/compare/v6.5.5...v6.5.7)

---
updated-dependencies:
- dependency-name: preact-render-to-string
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-05 16:49:19 -04:00
1224c7d32f refactor(comments): move script to files (#1308)
* refactor(comments): move script to files

for LSP, treesitter, and the whole galore.

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* fix(type): support removeEventListener with CustomEventMap

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* fix: parse bool to string first

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* chore: address comments and test on branch

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* revert: remove comments section from main quartz pages

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-05 15:17:11 -04:00
bf1c9d1791 chore(deps): bump globby from 14.0.1 to 14.0.2 (#1301)
Bumps [globby](https://github.com/sindresorhus/globby) from 14.0.1 to 14.0.2.
- [Release notes](https://github.com/sindresorhus/globby/releases)
- [Commits](https://github.com/sindresorhus/globby/compare/v14.0.1...v14.0.2)

---
updated-dependencies:
- dependency-name: globby
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-02 14:48:54 -04:00
6264f5685c fix: comments on spa should work (closes #1296) (#1298)
* fix comments on spa

* fix giscus
2024-07-30 01:13:13 -07:00
e1a9661be7 docs: cleanup showcase 2024-07-29 16:33:50 -07:00
bc95332fce chore(deps-dev): bump @types/ws from 8.5.11 to 8.5.12 (#1300)
Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 8.5.11 to 8.5.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

---
updated-dependencies:
- dependency-name: "@types/ws"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-29 13:14:34 -07:00
740172acb6 chore(deps): bump vfile from 6.0.1 to 6.0.2 (#1299)
Bumps [vfile](https://github.com/vfile/vfile) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/vfile/vfile/releases)
- [Changelog](https://github.com/vfile/vfile/blob/main/changelog.md)
- [Commits](https://github.com/vfile/vfile/compare/6.0.1...6.0.2)

---
updated-dependencies:
- dependency-name: vfile
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-29 13:14:25 -07:00
34fde07cf8 chore(deps-dev): bump tsx from 4.16.0 to 4.16.2 (#1292)
Bumps [tsx](https://github.com/privatenumber/tsx) from 4.16.0 to 4.16.2.
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs)
- [Commits](https://github.com/privatenumber/tsx/compare/v4.16.0...v4.16.2)

---
updated-dependencies:
- dependency-name: tsx
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-22 15:30:44 -07:00
e688eeeaff chore(deps-dev): bump @types/node from 20.12.5 to 20.14.11 (#1291)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.12.5 to 20.14.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-22 15:30:35 -07:00
5749fbbd75 chore(deps): bump @floating-ui/dom from 1.6.5 to 1.6.8 (#1290)
Bumps [@floating-ui/dom](https://github.com/floating-ui/floating-ui/tree/HEAD/packages/dom) from 1.6.5 to 1.6.8.
- [Release notes](https://github.com/floating-ui/floating-ui/releases)
- [Changelog](https://github.com/floating-ui/floating-ui/blob/master/packages/dom/CHANGELOG.md)
- [Commits](https://github.com/floating-ui/floating-ui/commits/@floating-ui/dom@1.6.8/packages/dom)

---
updated-dependencies:
- dependency-name: "@floating-ui/dom"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-22 15:30:28 -07:00
5f10df4d05 pkg 2024-07-21 17:49:28 -07:00
03f23e5054 feat: comments (giscus) 2024-07-20 23:05:45 -07:00
b9ee44aad7 i18n: disambiguate en-us and en-gb 2024-07-20 20:24:17 -07:00
87f2b0c327 chore(deps): bump lightningcss from 1.24.1 to 1.25.1 (#1276)
Bumps [lightningcss](https://github.com/parcel-bundler/lightningcss) from 1.24.1 to 1.25.1.
- [Release notes](https://github.com/parcel-bundler/lightningcss/releases)
- [Commits](https://github.com/parcel-bundler/lightningcss/compare/v1.24.1...v1.25.1)

---
updated-dependencies:
- dependency-name: lightningcss
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-19 10:57:28 -07:00
805d9e3226 chore(deps): bump ws and @types/ws (#1280)
Bumps [ws](https://github.com/websockets/ws) and [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws). These dependencies needed to be updated together.

Updates `ws` from 8.17.1 to 8.18.0
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.17.1...8.18.0)

Updates `@types/ws` from 8.5.10 to 8.5.11
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: "@types/ws"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-19 10:02:06 -07:00
5fcba1bfaf chore(deps): bump mdast-util-to-hast from 13.1.0 to 13.2.0 (#1279)
Bumps [mdast-util-to-hast](https://github.com/syntax-tree/mdast-util-to-hast) from 13.1.0 to 13.2.0.
- [Release notes](https://github.com/syntax-tree/mdast-util-to-hast/releases)
- [Commits](https://github.com/syntax-tree/mdast-util-to-hast/compare/13.1.0...13.2.0)

---
updated-dependencies:
- dependency-name: mdast-util-to-hast
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-19 10:02:03 -07:00
942c35183a chore(deps): bump preact from 10.22.0 to 10.22.1 (#1278)
Bumps [preact](https://github.com/preactjs/preact) from 10.22.0 to 10.22.1.
- [Release notes](https://github.com/preactjs/preact/releases)
- [Commits](https://github.com/preactjs/preact/compare/10.22.0...10.22.1)

---
updated-dependencies:
- dependency-name: preact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-19 10:01:55 -07:00
b37c408985 Fix CreatedModifiedDate.md (#1281)
Fixed a broken parentheses correspondence for code fragments that appear in the documentation.
2024-07-16 09:08:58 -07:00
f37dbe1a59 fix(translusion): block reference not being recognized. (#1274) 2024-07-14 03:06:52 -07:00
247625c4f5 feat(layout): add afterBody 2024-07-09 19:09:31 -07:00
4b407e786f chore: format 2024-07-09 18:08:21 -07:00
9cabf2b416 chore: update features 2024-07-09 18:07:00 -07:00
965425d54d docs + chore: cleanup custom sort ordering for folder + tag listings, add docs 2024-07-09 17:55:19 -07:00
ea92ed4f45 feat: Allow custom sorting of FolderPage and TagPage (#1250) 2024-07-09 17:42:33 -07:00
596e06ab0e chore(deps-dev): bump typescript from 5.4.5 to 5.5.3 (#1254)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.4.5 to 5.5.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.4.5...v5.5.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-09 17:28:49 -07:00
c95f1d2336 feat: add alias/metadata to transclude tag (#1229) 2024-07-09 17:26:32 -07:00
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
ef375d265d chore(deps): bump rfdc from 1.3.1 to 1.4.1 (#1235)
Bumps [rfdc](https://github.com/davidmarkclements/rfdc) from 1.3.1 to 1.4.1.
- [Release notes](https://github.com/davidmarkclements/rfdc/releases)
- [Commits](https://github.com/davidmarkclements/rfdc/compare/v1.3.1...1.4.1)

---
updated-dependencies:
- dependency-name: rfdc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-09 17:20:37 -07:00
2154d36d99 chore: use regex flag instead of string in regexp ctor 2024-07-09 17:20:13 -07:00
3eda53cac7 chore(deps): bump remark-smartypants from 2.1.0 to 3.0.2 (#1263)
Bumps [remark-smartypants](https://github.com/silvenon/remark-smartypants) from 2.1.0 to 3.0.2.
- [Release notes](https://github.com/silvenon/remark-smartypants/releases)
- [Commits](https://github.com/silvenon/remark-smartypants/compare/v2.1.0...v3.0.2)

---
updated-dependencies:
- dependency-name: remark-smartypants
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-09 17:16:02 -07:00
4eeacb7fbf Fix Non-English Anchor Popover Positioning Issue and Update Type Hint (#1252)
- [Major] Changed `hash` passed to `querySelector` to `decodeURIComponent(hash)` to fix the issue where non-English anchors were not correctly positioning the popover content to the corresponding title.
- [Minor] Updated the type hint from `HTMLLinkElement` to `HTMLAnchorElement` as the passed element is an `<a>` element, not a `<link>` element (reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement).
2024-07-08 13:34:43 -07:00
6245935c8c chore(deps): bump shiki from 1.6.0 to 1.10.3 (#1264)
Bumps [shiki](https://github.com/shikijs/shiki/tree/HEAD/packages/shiki) from 1.6.0 to 1.10.3.
- [Release notes](https://github.com/shikijs/shiki/releases)
- [Changelog](https://github.com/shikijs/shiki/blob/main/CHANGELOG.md)
- [Commits](https://github.com/shikijs/shiki/commits/v1.10.3/packages/shiki)

---
updated-dependencies:
- dependency-name: shiki
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-08 13:34:04 -07:00
e20dee2850 Fix: Table overflow-wrap: anywhere breaks words on mobile (#1259)
Closes #1258
2024-07-05 09:25:29 -07:00
af1fdaac0a chore(deps-dev): bump tsx from 4.11.2 to 4.16.0 (#1256)
Bumps [tsx](https://github.com/privatenumber/tsx) from 4.11.2 to 4.16.0.
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs)
- [Commits](https://github.com/privatenumber/tsx/compare/v4.11.2...v4.16.0)

---
updated-dependencies:
- dependency-name: tsx
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-04 22:47:20 -04:00
5926d3f803 docs: replace .gitlab-ci.yml example with more reliable and faster ci job (#1243)
* replace .gitlab-ci.yml example with more reliable and faster ci job

* literally removing 1 space, inside a code block, in docs, just to make prettier not cry
2024-06-30 21:12:48 -07:00
e8277d017e i18n: Update uk-UA.ts (#1245)
Update the Ukrainian translation of Quartz according to the latest Ukrainian translation of Obsidian.
2024-06-30 21:11:21 -07:00
b053d354b6 deps: Bump Github Action versions (#1247) 2024-06-30 21:05:42 -07:00
dbe12c0d34 i18n: Improving Spanish & adding Catalan and British English (#1240)
* Create en-GB

* Rename en-GB to en-GB.ts

* Update es-ES.ts

* Update es-ES.ts

* Create ca-ES.ts

* Update es-ES.ts

* Update index.ts

* Update index.ts

* Update index.ts

* Update es-ES.ts
2024-06-30 21:03:45 -07:00
21e75acc8d fix: "draft" true or false in frontmatter still removes from publishing #1244 (#1249)
* fix: draft bug #1244

* update: contents in folder before creating PR

* Update draft.ts
2024-06-30 20:59:08 -07:00
f7bd2137ec Permit Manual (and Scripted) Trigger of CI Job (#1251) 2024-06-30 20:58:34 -07:00
3faf2ff6f5 feat(analytics): Cabin analytics support (#1221)
* add cabin analytics

* fix formatting
2024-06-18 13:38:45 -07:00
1d94e9c303 css: use fit-content (closes #1194) 2024-06-17 22:13:31 -07:00
48e16c943a chore(deps-dev): bump prettier 2024-06-17 21:46:43 -07:00
cc5913b75c fix(ci): only publish tag on v4 origin 2024-06-17 21:45:58 -07:00
265faef4e8 fix: properly compute relative path for explorer (closes #1055, #1066) 2024-06-17 21:43:32 -07:00
541b470cfc fix: overflow fade for good (closes #1218) 2024-06-17 21:33:53 -07:00
0a3be96dd6 chore(deps): bump ws from 8.17.0 to 8.17.1 (#1213)
Bumps [ws](https://github.com/websockets/ws) from 8.17.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.17.0...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17 20:37:04 -07:00
3cb9392a7a chore(deps): bump preact-render-to-string from 6.5.4 to 6.5.5 (#1214)
Bumps [preact-render-to-string](https://github.com/preactjs/preact-render-to-string) from 6.5.4 to 6.5.5.
- [Release notes](https://github.com/preactjs/preact-render-to-string/releases)
- [Changelog](https://github.com/preactjs/preact-render-to-string/blob/main/CHANGELOG.md)
- [Commits](https://github.com/preactjs/preact-render-to-string/compare/v6.5.4...v6.5.5)

---
updated-dependencies:
- dependency-name: preact-render-to-string
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17 20:34:45 -07:00
569ee74633 chore(deps): bump workerpool from 9.1.1 to 9.1.2 (#1215)
Bumps [workerpool](https://github.com/josdejong/workerpool) from 9.1.1 to 9.1.2.
- [Changelog](https://github.com/josdejong/workerpool/blob/master/HISTORY.md)
- [Commits](https://github.com/josdejong/workerpool/compare/v9.1.1...v9.1.2)

---
updated-dependencies:
- dependency-name: workerpool
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17 20:33:00 -07:00
42640bceb5 Check link isExternal before adding target="_blank" (#1211)
Fixes #1186 openLinksInNewTab opens ALL links in new tabs. Fixed to reflect documented behavior here: https://quartz.jzhao.xyz/plugins/CrawlLinks
2024-06-16 22:33:28 -07:00
3e14b2b89b fix(wikilinks): pdf page linking (#1207) 2024-06-14 09:17:46 -07:00
81d00fc9c0 .callout-content support (#1188)
* .callout-content support

* Use BlockContent | FootnoteContent for callout body

* Update quartz/plugins/transformers/ofm.ts

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

* Refactor

* Combine child selectors

* Fix multiple callout members

* Empty check

* Replace splice

---------

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2024-06-13 16:02:00 -07:00
a12d76afdb fix: fix explorer view gradient positioning on mobile (fixes #906) (#1206) 2024-06-13 12:47:22 -07:00
19e127f6ad fix DOMLoaded in code examples (#1204) 2024-06-13 09:38:48 -07:00
0472daa003 homepage coloured as visited in the Graph (#1128)
simplifies slug from FullSlug to SimpleSlug before storing it in the visited pages list in memory
this leads to "index" page and "folder/index", "tags/tag/index" being stored a "/", "folder/" and "tags/tag/" respectively in the list of visited pages.
this ensures that the homepage is rightfully coloured as a visited page in the "color" function of the graph
2024-06-12 09:39:49 -07:00
63d51a8cc5 chore(deps): bump preact-render-to-string from 6.4.2 to 6.5.4 (#1198)
Bumps [preact-render-to-string](https://github.com/preactjs/preact-render-to-string) from 6.4.2 to 6.5.4.
- [Release notes](https://github.com/preactjs/preact-render-to-string/releases)
- [Changelog](https://github.com/preactjs/preact-render-to-string/blob/main/CHANGELOG.md)
- [Commits](https://github.com/preactjs/preact-render-to-string/compare/v6.4.2...v6.5.4)

---
updated-dependencies:
- dependency-name: preact-render-to-string
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 09:34:36 -07:00
9032717486 chore(deps): bump preact from 10.20.1 to 10.22.0 (#1195)
Bumps [preact](https://github.com/preactjs/preact) from 10.20.1 to 10.22.0.
- [Release notes](https://github.com/preactjs/preact/releases)
- [Commits](https://github.com/preactjs/preact/compare/10.20.1...10.22.0)

---
updated-dependencies:
- dependency-name: preact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 09:31:50 -07:00
5ccdb5f35f Squashed 'content/' changes from ff5f50d..fc5c89d
fc5c89d Fixed a small typo

git-subtree-dir: content
git-subtree-split: fc5c89dfe688e16b9eda99df9f2f5db6d605c602
2024-06-11 16:29:18 +02:00
cd5ce9642d Merge commit '5ccdb5f35f05f9c51205a9f8a49421c14060f596' into jpg 2024-06-11 16:29:18 +02:00
6ef2730a85 Squashed 'content/' changes from 3f325ff..ff5f50d
ff5f50d Fixed some small typos

git-subtree-dir: content
git-subtree-split: ff5f50dece27dcb2bb61944daa174b5bb696fddc
2024-06-11 16:24:51 +02:00
a47bda30ac Merge commit '6ef2730a855f21cbd449b161f9ff4bf5f544d55e' into jpg 2024-06-11 16:24:51 +02:00
3968b850c2 chore(deps): bump @floating-ui/dom from 1.6.3 to 1.6.5 (#1196)
Bumps [@floating-ui/dom](https://github.com/floating-ui/floating-ui/tree/HEAD/packages/dom) from 1.6.3 to 1.6.5.
- [Release notes](https://github.com/floating-ui/floating-ui/releases)
- [Changelog](https://github.com/floating-ui/floating-ui/blob/master/packages/dom/CHANGELOG.md)
- [Commits](https://github.com/floating-ui/floating-ui/commits/@floating-ui/dom@1.6.5/packages/dom)

---
updated-dependencies:
- dependency-name: "@floating-ui/dom"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-10 13:57:08 -07:00
286 changed files with 18369 additions and 18373 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
.*
*/.*

View File

@ -1,11 +1,20 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2 version: 2
updates: updates:
- package-ecosystem: "npm" - package-ecosystem: "npm"
directory: "/" directory: "/"
schedule: schedule:
interval: "weekly" interval: "weekly"
groups:
production-dependencies:
applies-to: "version-updates"
patterns:
- "*"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
ci-dependencies:
applies-to: "version-updates"
patterns:
- "*"

43
.github/workflows/build-preview.yaml vendored Normal file
View File

@ -0,0 +1,43 @@
name: Build Preview Deployment
on:
pull_request:
types: [opened, synchronize]
workflow_dispatch:
jobs:
build-preview:
if: ${{ github.repository == 'jackyzha0/quartz' }}
runs-on: ubuntu-latest
name: Build Preview
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- name: Check types and style
run: npm run check
- name: Build Quartz
run: npx quartz build -d docs -v
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: preview-build
path: public

View File

@ -7,6 +7,7 @@ on:
push: push:
branches: branches:
- v4 - v4
workflow_dispatch:
jobs: jobs:
build-and-test: build-and-test:
@ -18,17 +19,17 @@ jobs:
permissions: permissions:
contents: write contents: write
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: 18 node-version: 22
- name: Cache dependencies - name: Cache dependencies
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: ~/.npm path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@ -44,25 +45,25 @@ jobs:
run: npm test run: npm test
- name: Ensure Quartz builds, check bundle info - name: Ensure Quartz builds, check bundle info
run: npx quartz build --bundleInfo run: npx quartz build --bundleInfo -d docs
publish-tag: publish-tag:
if: ${{ github.repository == 'jackyzha0/quartz' }} if: ${{ github.repository == 'jackyzha0/quartz' && github.ref == 'refs/heads/v4' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: 18 node-version: 22
- name: Get package version - name: Get package version
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
- name: Create release tag - name: Create release tag
uses: pkgdeps/git-tag-action@v2 uses: pkgdeps/git-tag-action@v3
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
github_repo: ${{ github.repository }} github_repo: ${{ github.repository }}

37
.github/workflows/deploy-preview.yaml vendored Normal file
View File

@ -0,0 +1,37 @@
name: Upload Preview Deployment
on:
workflow_run:
workflows: ["Build Preview Deployment"]
types:
- completed
permissions:
actions: read
deployments: write
contents: read
pull-requests: write
jobs:
deploy-preview:
if: ${{ github.repository == 'jackyzha0/quartz' && github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
name: Deploy Preview to Cloudflare Pages
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
id: preview-build-artifact
with:
name: preview-build
path: build
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
- name: Deploy to Cloudflare Pages
uses: AdrianGonz97/refined-cf-pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: quartz
deploymentName: Branch Preview
directory: ${{ steps.preview-build-artifact.outputs.download-path }}

View File

@ -0,0 +1,88 @@
name: Docker build & push image
on:
push:
branches: [v4]
tags: ["v*"]
pull_request:
branches: [v4]
paths:
- .github/workflows/docker-build-push.yaml
- quartz/**
workflow_dispatch:
jobs:
build:
if: ${{ github.repository == 'jackyzha0/quartz' }} # Comment this out if you want to publish your own images on a fork!
runs-on: ubuntu-latest
steps:
- name: Set lowercase repository owner environment variable
run: |
echo "OWNER_LOWERCASE=${OWNER,,}" >> ${GITHUB_ENV}
env:
OWNER: "${{ github.repository_owner }}"
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v5.1.0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
install: true
driver-opts: |
image=moby/buildkit:master
network=host
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@v3.8.2
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata tags and labels on PRs
if: github.event_name == 'pull_request'
id: meta-pr
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ env.OWNER_LOWERCASE }}/quartz
tags: |
type=raw,value=sha-${{ env.GITHUB_SHA_SHORT }}
labels: |
org.opencontainers.image.source="https://github.com/${{ github.repository_owner }}/quartz"
- name: Extract metadata tags and labels for main, release or tag
if: github.event_name != 'pull_request'
id: meta
uses: docker/metadata-action@v5
with:
flavor: |
latest=auto
images: ghcr.io/${{ env.OWNER_LOWERCASE }}/quartz
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}.{{minor}}.{{patch}}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
type=raw,value=sha-${{ env.GITHUB_SHA_SHORT }}
labels: |
maintainer=${{ github.repository_owner }}
org.opencontainers.image.source="https://github.com/${{ github.repository_owner }}/quartz"
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v6
with:
push: ${{ github.event_name != 'pull_request' }}
build-args: |
GIT_SHA=${{ env.GITHUB_SHA }}
DOCKER_LABEL=sha-${{ env.GITHUB_SHA_SHORT }}
tags: ${{ steps.meta.outputs.tags || steps.meta-pr.outputs.tags }}
labels: ${{ steps.meta.outputs.labels || steps.meta-pr.outputs.labels }}
cache-from: type=gha
cache-to: type=gha

1
.node-version Normal file
View File

@ -0,0 +1 @@
v22.16.0

View File

@ -1,4 +1,4 @@
FROM python:latest as convert FROM python:latest AS convert
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY content/ ./ COPY content/ ./
COPY custom/convert-furigana/program/convert-furigana.py ./ COPY custom/convert-furigana/program/convert-furigana.py ./
@ -9,15 +9,21 @@ RUN python -m pip install beautifulsoup4
RUN python convert-furigana.py . RUN python convert-furigana.py .
RUN python convert-usage.py . RUN python convert-usage.py .
FROM node:20-slim as builder FROM node:22-slim AS builder
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY package.json . COPY package.json .
COPY package-lock.json* . COPY package-lock.json* .
RUN npm ci RUN npm ci
FROM node:20-slim FROM node:22-slim AS quartz
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY --from=builder /usr/src/app/ /usr/src/app/ COPY --from=builder /usr/src/app/ /usr/src/app/
COPY . . COPY . .
COPY --from=convert /usr/src/app/ /usr/src/app/content/ COPY --from=convert /usr/src/app/ /usr/src/app/content/
CMD ["npx", "quartz", "build", "--serve"] RUN npx quartz build
FROM nginx:latest
WORKDIR /usr/share/nginx/html
COPY --from=quartz /usr/src/app/public/ /usr/share/nginx/html/
WORKDIR /etc/nginx/
COPY custom/nginx/default.conf /etc/nginx/conf.d/

View File

@ -1,6 +1,5 @@
[ [
"obsidian-markdown-furigana", "obsidian-markdown-furigana",
"obsidian-style-settings", "obsidian-style-settings",
"obsidian42-brat", "obsidian42-brat"
"obsidian-opener"
] ]

View File

@ -1,20 +1,31 @@
[ {
"file-explorer", "file-explorer": true,
"global-search", "global-search": true,
"switcher", "switcher": true,
"graph", "graph": true,
"backlink", "backlink": true,
"canvas", "canvas": true,
"outgoing-link", "outgoing-link": true,
"tag-pane", "tag-pane": true,
"page-preview", "properties": false,
"daily-notes", "page-preview": true,
"templates", "daily-notes": true,
"note-composer", "templates": true,
"command-palette", "note-composer": true,
"editor-status", "command-palette": true,
"bookmarks", "slash-command": false,
"outline", "editor-status": true,
"word-count", "bookmarks": true,
"file-recovery" "markdown-importer": false,
] "zk-prefixer": false,
"random-note": false,
"outline": true,
"word-count": true,
"slides": false,
"audio-recorder": false,
"workspaces": false,
"file-recovery": true,
"publish": false,
"sync": false,
"webviewer": false
}

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
{ {
"id": "obsidian-style-settings", "id": "obsidian-style-settings",
"name": "Style Settings", "name": "Style Settings",
"version": "1.0.8", "version": "1.0.9",
"minAppVersion": "0.11.5", "minAppVersion": "0.11.5",
"description": "Offers controls for adjusting theme, plugin, and snippet CSS variables.", "description": "Offers controls for adjusting theme, plugin, and snippet CSS variables.",
"author": "mgmeyers", "author": "mgmeyers",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,15 +1,14 @@
{ {
"id": "obsidian42-brat", "id": "obsidian42-brat",
"name": "BRAT", "name": "BRAT",
"version": "1.0.1", "version": "1.1.7",
"minAppVersion": "1.4.16", "minAppVersion": "1.7.2",
"description": "Easily install a beta version of a plugin for testing.", "description": "Easily install a beta version of a plugin for testing.",
"author": "TfTHacker", "author": "TfTHacker",
"authorUrl": "https://github.com/TfTHacker/obsidian42-brat", "authorUrl": "https://github.com/TfTHacker/obsidian42-brat",
"helpUrl": "https://tfthacker.com/BRAT", "helpUrl": "https://tfthacker.com/BRAT",
"isDesktopOnly": false, "isDesktopOnly": false,
"fundingUrl": { "fundingUrl": {
"Buy Me a Coffee": "https://bit.ly/o42-kofi",
"Visit my site": "https://tfthacker.com" "Visit my site": "https://tfthacker.com"
} }
} }

View File

@ -1,3 +1,105 @@
.brat-modal .modal-button-container { .brat-modal .modal-button-container {
margin-top: 5px !important; margin-top: 5px !important;
} }
.brat-modal .disabled-setting {
opacity: 0.5;
}
.brat-modal .disabled-setting:hover {
cursor: not-allowed;
}
/* Input validation styles */
.brat-settings .valid-input,
.brat-modal .valid-repository {
border-color: var(--color-green) !important;
}
.brat-settings .invalid-input,
.brat-modal .invalid-repository {
border-color: var(--color-red) !important;
}
.brat-settings .validation-error,
.brat-modal .validation-error {
border-color: var(--color-orange) !important;
}
/* Version selector */
.brat-version-selector {
width: 100%;
max-width: 400px;
justify-content: left;
}
.brat-token-input {
min-width: 33%;
}
/* Token info container styles */
.brat-token-info {
margin-top: 8px;
font-size: 0.8em;
padding: 8px;
border-radius: 4px;
background-color: var(--background-secondary);
}
/* Token status indicators */
.brat-token-info.valid,
.brat-token-status.valid {
color: var(--color-green);
}
.brat-token-info.invalid,
.brat-token-status.invalid {
color: var(--color-red);
}
.brat-token-info.valid {
border-left: 3px solid var(--color-green);
}
.brat-token-info.invalid {
border-left: 3px solid var(--color-red);
}
/* Token details and status */
.brat-token-status {
margin-bottom: 4px;
}
.brat-token-details {
margin-top: 4px;
color: var(--text-muted);
}
/* Token warnings */
.brat-token-warning {
color: var(--color-orange);
margin-top: 4px;
}
/* Token additional info */
.brat-token-scopes,
.brat-token-rate {
color: var(--text-muted);
margin-top: 2px;
}
/* Flex break utility */
.brat-modal .break {
flex-basis: 100%;
height: 0;
}
/* Validation status */
.brat-modal .validation-status-error {
color: var(--text-error);
}
.brat-modal .validation-status {
margin-top: 0.5em;
margin-bottom: 0.5em;
font-size: 0.8em;
text-align: left;
}

View File

@ -97,7 +97,7 @@ Negative form:
<p class="right">+ なければ</p> <p class="right">+ なければ</p>
</div> </div>
See Conjugation [[Basics]] for verbs (the う sound transforms the the corresponding え sound). See Conjugation [[Basics]] for verbs (the う sound transforms to the corresponding え sound).
Means "if". A conditional relationship without the cause-effect relationship of と. Means "if". A conditional relationship without the cause-effect relationship of と.
If A happens, then B. Situations must be hypothetical. Generally used for one-time results. If A happens, then B. Situations must be hypothetical. Generally used for one-time results.
@ -198,7 +198,7 @@ Means "if we assume that A, B".
## もし(も) ## もし(も)
Used with conditional forms ば, と, たら and ても (see [[TeF (4) - even if#Even if ても・でも]]). Used with conditional forms ば, と, たら and ても (see [[TeF (4) - even if#Even if ても・でも|Even if: ても・でも]]).
もしも puts more emphasis than もし. もしも puts more emphasis than もし.
> [!info] Example > [!info] Example

View File

@ -0,0 +1,38 @@
# Misc.
## ~まい
~まい is the opposition of the volitional form (よう). It means "will not".
Careful of two exceptions:
* する => すまい
* くる => こまい
> [!info] Example
> この{川|かわ}は{危|あぶ}ないようだ。ここで{泳|およぐ}ぐ==まい==。
> This river seems dangerous. I won't swim here.
## ~得る・~得ない
{得|え}る means "able to", "possible". Can be conjugated: えない, えた, えなかった.
Made by:
* adding まい to a V-る (dictionary form)
* removing the ます stem from a verb and adding まい
> [!info] Example
> それはあり==得ない==。
> That is impossible.
⚠ Can also be read うる (on this tense only).
## ぬ
It is the traditional negative form of verbs: ぬ instead of ない.
Exceptions:
する -> せぬ
くる -> こぬ
いる -> あらぬ
> [!info] Examples
> {彼女|かのじょ}はここにはあら==ぬ==。
> She is not here.

View File

@ -114,3 +114,46 @@ Used with verbs in て form.
> [!info] Example > [!info] Example
> {夜|よる}ので、{歌|うた}え==ている場合じゃない== > {夜|よる}ので、{歌|うた}え==ている場合じゃない==
> It's night, so it's no time to be singing! > It's night, so it's no time to be singing!
## てばかりはいられない
Means "can't keep doing". Can also be used as てばかりもいられない.
> [!info] Example
> {走|は}==ってばかりはいられない==。
> I can't keep running.
## ていては
Means "if something continues". Used generally for negative outcomes.
Only used for verbs.
> [!info] Example
> {酒|さけ}しかを{飲|の}ん==でいては==、{健康|けんこう}が{悪|わる}くなる。
> If you only drink alcool, your health will worsen.
## てならない
Means "extremely", "can't help but to do". Usually used for natural things occuring that cannot be controlled, like feeling.
> [!info] Example
> この{町|まち}には{寒|さむ}く==てならない==。
> It's extremely cold in this town.
## てたまらない
With verbs conjugated in the たい form, this means "can't help but want to".
With other forms, this means "extremely".
> [!info] Example
> {留学|りゅうがく}に{行|い}きたく==てたまらない==。
> I can't help but want to go abroad.
## てはいられない
Means "unable to", "cannot afford to".
> [!info] Example
> お{金|かね}がないから、レストランに{食|た}べ==てはいられない==。
> I can't afford to eat at a restaurant because I don't have any money.

View File

@ -13,7 +13,7 @@ Only for **verbs**.
> I bought a cake for my mother. > I bought a cake for my mother.
> >
For casual language, ==てやる== can be used. For casual language, てやる can be used.
## てくれる ## てくれる

View File

@ -67,3 +67,11 @@ Used to make a supposition. Would translate to something like "even if... is the
> [!info] Example > [!info] Example
> ==たとえ=={新幹線|しん|かん|せん}==でも==、1時間かかる。 > ==たとえ=={新幹線|しん|かん|せん}==でも==、1時間かかる。
> Even if you take the Shinkansen, it will take one hour. > Even if you take the Shinkansen, it will take one hour.
### てでも
Means "even if I have to". Expresses a strong determination to do something.
> [!info] Example
> {午前|ごぜん}{時|じ}に{起|お}きれ==てでも==、{遅刻|ちこく}するつもりはない。
> Even if it means waking up at 4am, I don't intend to be late.

View File

@ -0,0 +1,51 @@
# Te-Form (5) - Misc
## て以来
て{以来|いらい} means "since". Not used for recent events.
> [!info] Example
> {日本|にほん}に{引|ひ}っ{越|こき}し==て以来==、{帰国|きこく}していませんでした。
> Ever since I moved to Japan, I haven't been back to my own country.
## てこそ
Means "since", "only if", "unless", "until". Emphasizes on the relationship between the two parts of the sentence.
> [!info] Example
> {先生|せんせい}にな==ってこそ==、{観点|かんてん}が{変|か}わる。
> Only by becoming a teacher, your perspective changes.
## てまで
Means "to go as far as", "to do excessive effort".
> [!info] Example
> カードゲームが{好|す}きですけど、{全部|ぜんぶ}の{給料|きゅうりょう}を{費|つい}やし==てまで==と{思|おも}わない。
> I like card games, but I don't want to spend my entire salary on them.
## て当然だ
て{当然|とうぜん}だ means that something is natural, expected.
> [!info] Example
> 私が{作|つく}ったから、{完璧|かんぺき}==で当然だ==
> I made it, so obviously it's perfect!
## ては・では
It is used as a condition: "if", "when", "whenever". Generally expresses a negative outcome.
は can be changed to ちゃ with verbs, and じゃ with な-adjectives and nouns.
> [!info] Example
> {授業|じゅぎょう}に{来|こ}なく==ては=={卒業|そつぎょう}できない。
> If you don't come to class, you will not be able to graduate.
## ては~ては
Same structure as [[TeF (5) - Misc#ては・では]], this time only used with verbs. Means the repetition of an action or a phenomenon.
The verbs can be in the same order or not in the two part.
> [!info] Example
> {働|はたら}い==ては=={寝|ね}、{寝|ね}==ては=={働|はたら}くばかりの{生活|せいかつ}はずるいと{思|おも}います。
> I think a life of only working and sleeping, sleeping and working is unfair.

View File

@ -13,11 +13,11 @@ Of course, since I'm _learning_ the language, I need to get inspired from differ
* [Bunpro](https://bunpro.jp/grammar_points) * [Bunpro](https://bunpro.jp/grammar_points)
* [JLPT Sensei](https://jlptsensei.com/#jlpt-grammar-lists) * [JLPT Sensei](https://jlptsensei.com/#jlpt-grammar-lists)
* [Maggie Sensei](https://maggiesensei.com/) * [Maggie Sensei](https://maggiesensei.com/)
* [Try! Series of books](https://2024.ask-books.com/tag/try/) * [Try! Series of books](https://ask-books.com/tag/try/)
* [A Handbook of Japanese Grammar](https://www.9640.jp/nihongo/en/detail/?678)
* [Hedgehog Japanese](https://hedgehog-japanese.com/category/grammar/) * [Hedgehog Japanese](https://hedgehog-japanese.com/category/grammar/)
* [Wasabi](https://www.wasabi-jpn.com/category/japanese-grammar/) * [Wasabi](https://www.wasabi-jpn.com/category/japanese-grammar/)
* [Japanese StackExchange](https://japanese.stackexchange.com/) * [Japanese StackExchange](https://japanese.stackexchange.com/)
* [Guide du Japonais](https://guidedujaponais.fr/)
* [Tofugu](https://www.tofugu.com) * [Tofugu](https://www.tofugu.com)
* [Imabi](https://imabi.org/table-of-contents-%e7%9b%ae%e6%ac%a1/) * [Imabi](https://imabi.org/table-of-contents-%e7%9b%ae%e6%ac%a1/)
* [Tae-Kim's Guide](https://guidetojapanese.org/learn/) * [Tae-Kim's Guide](https://guidetojapanese.org/learn/)
@ -36,6 +36,7 @@ In addition to those I cited, here are other resources I find useful.
* [Sakubun](https://sakubun.xyz/) * [Sakubun](https://sakubun.xyz/)
* [NHK News Web Easy](https://www3.nhk.or.jp/news/easy/) * [NHK News Web Easy](https://www3.nhk.or.jp/news/easy/)
* [Natively](https://learnnatively.com/browse/jpn/)
### Grammar ### Grammar
@ -47,6 +48,10 @@ In addition to those I cited, here are other resources I find useful.
* [Jisho](https://jisho.org/), an online dictionary * [Jisho](https://jisho.org/), an online dictionary
* [Tatoeba](https://tatoeba.org), for its sentences database * [Tatoeba](https://tatoeba.org), for its sentences database
### Apps
- [Anki](https://apps.ankiweb.net/), the spaced repetition software
## Any errors? ## Any errors?
If you find any error, please do contact me! I wrote the examples by myself, so they might not be accurate. You can find my website in the footer of any page of this website. Thanks! If you find any error, please do contact me! I wrote the examples by myself, so they might not be accurate. You can find my website in the footer of any page of this website. Thanks!

View File

@ -114,12 +114,12 @@ Means "to try to", "to make sure to". It's more of an assertion than ようと
Used with a verb. Used with a verb.
> [!info] Example > [!info] Example
> 毎日に{朝|あさ}ご{飯|はん}を食べる==ようします==。 > 毎日に{朝|あさ}ご{飯|はん}を食べる==ようします==。
> I'll try to eat a breakfast everyday. > I'll try to eat a breakfast everyday.
### ようとする・ようとしない ### ようとする・ようとしない
Means "try to", "attempt to" (or not, in the negative form). It's more of an attempt than with ようにする. Means "try to", "attempt to" (or not, in the negative form). It's more of an attempt than with ようにする. Can also mean "just as I was about to".
Used with the volitional form of verbs (よう). Used with the volitional form of verbs (よう).
> [!info] Example > [!info] Example

View File

@ -49,7 +49,7 @@ This form is used with a verb in the negative form (ない).
{一体|いったい} is used to make an emphasis when something is surprising, confusing, etc. {一体|いったい} is used to make an emphasis when something is surprising, confusing, etc.
> [!info] Example > [!info] Example
> ==いったい=={誰|だれ}がそんことをしたか。 > ==いったい=={誰|だれ}がそんことをしたか。
> Who in the world would do something like this? > Who in the world would do something like this?
## まるで ## まるで
@ -83,3 +83,25 @@ Means "already". More formal than もう, implies that something is too late and
> [!info] Example > [!info] Example
> {遅|おそ}く{起|お}きたので==すでに==バスは{出発|しゅっぱつ}してしまった。 > {遅|おそ}く{起|お}きたので==すでに==バスは{出発|しゅっぱつ}してしまった。
> I woke up late, so the bus already left. > I woke up late, so the bus already left.
## どうせ
Means "anyhow", "at any rate".
> [!info] Example
> ==どうせ==、{僕|ぼく}のアドバイスを{聞|き}かないんでしょう。
> Anyhow, you won't listen to advice, right?
## なお
Means "more", "in addition". Used in writing.
Can be used:
- in a similar way as もっと;
- to add information to a previous sentence.
> [!info] Example
> ==なお=={考|かんが}えるせんいけない。
> I still have to think about it.
>
> {今日|きょう}はたくみさんが{休|やす}みです。==なお==、{彼|かれ}は{仕事|しごと}を{終|お}わりなかった。
> Takumi-san is not there today. In addition, he did not finish his work.

View File

@ -0,0 +1,36 @@
# Advice, guidance, proposition
## たらどう
Used to ask about a situation, usually to give advice. Translates to "why don't you" or "how about".
Used with the たら form of verbs.
> [!info] Example
> ゲームをし==たらどう==か。
> How about you play a game?
## たらいいですか
Used to ask about an advice or instructions. Translates to "what should I do".
Used with the たら form of verbs.
> [!info] Example
> 何を{飲|の}ん==だらいいですか==。
> What should I drink?
## ことだ
Means "should do". It is used for suggestion or giving advice in spoken language.
Used after verbs with a る or ない ending.
> [!info] Example
> {砂糖|さとう}が{多|おお}すぎる{食|た}べ{物|もの}を{食|た}べない==ことだ==。
> You shouldn't eat food that is too high in sugar.
## ようではないか
Means "why don't we", "shall we", "let's do". Used with a verb in the volitional form (おう). ではないか can be replaced by じゃないか.
> [!info] Examples
> {一緒|いっしょ}に{飲|の}==もうではないか==。
> Why don't we have drinks together?

View File

@ -1,19 +0,0 @@
# Advice & guidance
## たらどう
Used to ask about a situation, usually to give advice. Translates to "why don't you" or "how about".
Used with the たら form of verbs.
> [!info] Example
> ゲームをし==たらどう==か。
> How about you play a game?
## たらいいですか
Used to ask about an advice or instructions. Translates to "what should I do".
Used with the たら form of verbs.
> [!info] Example
> 何を{飲|の}ん==だらいいですか==。
> What should I drink?

View File

@ -1,11 +1,19 @@
# Amounts of frequency # Amounts of frequency
## 再び
{再|ふたた}び means "again", "once more".
> [!info] Examples
> ==再び=={来|き}ませんですね。
> I won't be coming again.
## Never ## Never
### 決して~ない ### 決して~ない
<div class="usage"> <div class="usage">
<p class="iright">して + </p> <p class="iright">して + </p>
<div class="ileft"> <div class="ileft">
<p><span class="box">V (ない)</span></p> <p><span class="box">V (ない)</span></p>
<p><span class="box">い-Adj <strike></strike> くない</span></p> <p><span class="box">い-Adj <strike></strike> くない</span></p>
@ -14,7 +22,7 @@
</div> </div>
</div> </div>
{決|け}して~ない means "never". Used with negative verbs. {決|け}して~ない means "never". Used with negative verbs.
> [!info] Examples > [!info] Examples
> 私は==決して=={夢|ゆめ}を{覚|おぼ}えません。 > 私は==決して=={夢|ゆめ}を{覚|おぼ}えません。

View File

@ -43,6 +43,14 @@ Used with words in negative form.
> どうしてエアコンを{付|つ}きましたか。{今|いま}は==別に=={暑|あつ}==くない==よ。 > どうしてエアコンを{付|つ}きましたか。{今|いま}は==別に=={暑|あつ}==くない==よ。
> Why did you turn on the AC? It's not that hot right now. > Why did you turn on the AC? It's not that hot right now.
## わずかに
Means "slightly", "only", "a little". Used at the beginning of a phrase to indicate a particularly small amount of something.
> [!info] Example
> いつでも{隣|となり}の{人|ひと}の{音|おと}が==わずかに=={聞|き}こえます。
> You can always hear the neighbours a little bit.
## No matter how ## No matter how
### どんなに~ても ### どんなに~ても
@ -71,6 +79,42 @@ Means "no matter what".
> ==どうしても=={花火|はなび}に行きたい。 > ==どうしても=={花火|はなび}に行きたい。
> No matter what, I want to go see the fireworks. > No matter what, I want to go see the fireworks.
## At least
### 少なくとも
{少|すく}なくとも means "at least". Implies an obligation.
> [!info] Example
> ==少なくとも==もっと{三人|さんにん}が{必要|ひつよう}です。
> At least three more people are required.
### せめて
Means "at least". Implies a request.
> [!info] Example
> ==せめて=={週|しゅう}に{一度|いちど}{勉強|べんきょう}してください。
> Please study at least once a week.
## だけましだ
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N + である</span></p>
</div>
<p class="right">+ だけましだ</p>
</div>
Means "should be grateful for", "at least", "better than". Means that while something is not good, or not as good as one wishes, it's still better than nothing or an alternative.
> [!info] Examples
> {給料|きゅうりょう}がちょっとすくない、{就職|しゅうしょく}==だけましだ==。
> The salary is a little low, but at least I found a job.
## Very ## Very
### てしょうがない・てしかたがない ### てしょうがない・てしかたがない
@ -85,13 +129,11 @@ Means "no matter what".
</div> </div>
Means both "extremely" and "can't be helped". Means both "extremely" and "can't be helped".
See [[Can't help - doesn't matter#てしょうがない・てしかたがない]]
> [!info] Example > [!info] Example
> {今日|きょう}は{暑|あつ}く==てしょうがない==。 > {今日|きょう}は{暑|あつ}く==てしょうがない==。
> Today is extremely hot. > Today is extremely hot.
>
> {隣|となり}の{会話|かいわ}は{聞|き}き==ってしょうがない==。
> I can't help but to listen to the conversion next door.
### なかなか ### なかなか
@ -148,7 +190,7 @@ Means "as much as possible". なるべく is a bit softer than できるだけ.
</div> </div>
Means "so much... that". Means "so much... that".
Adjectives nominalized can be used as nouns. See [[Transformation#~さ adjective as noun]] and [[Transformation#~み adjective as noun]]. Nominalized adjectives can be used as nouns. See [[Transformation#~さ adjective as noun]] and [[Transformation#~み adjective as noun]].
> [!info] Example > [!info] Example
> おいしさの==あまり==、このレストラン{毎日|まいにち}行きたい。 > おいしさの==あまり==、このレストラン{毎日|まいにち}行きたい。
@ -176,3 +218,61 @@ Means "so much... that". A version of あまり that can also be used with adjec
> [!info] Example > [!info] Example
> {先生|せんせい}が==あまりに=={厳|きび}しくて、{私|わたし}は{泣|な}き{始|はじ}めった。 > {先生|せんせい}が==あまりに=={厳|きび}しくて、{私|わたし}は{泣|な}き{始|はじ}めった。
> The teacher was so strict that I started to cry. > The teacher was so strict that I started to cry.
## Not at all
### ちっとも~ない
Means "not at all". Has a nuance of perhaps happening once or twice. It is casual.
Used with a verb in the negative (ない) form.
> [!info] Example
> ==ちっとも=={学校|がっこう}を{休|やす}まない。
> I never miss school.
### 少しも~ない
<div class="usage">
<p class="iright">少しも + </p>
<div class="ileft">
<p><span class="box">V (ない)</span></p>
<p><span class="box">い-Adj + <strike></strike> くない</span></p>
<p><span class="box">な-Adj + ではない</span></p>
<p><span class="box">N + ではない</span></p>
</div>
</div>
{少|すこ}しも~ない means "not at all". Has a nuance of perhaps happening once or twice. Mostly used in writing.
> [!info] Example
> そのアパートは==少しも==大きくなかった。
> That appartment was really not big.
### 全く~ない
{全|まった}く~ない means "not at all". Has a nuance of absolutely never happening.
Used with a verb in the negative (ない) form.
> [!info] Example
> ==全く=={信|しん}じられない。
> That is absolutely unbelievable.
### として~ない
Means "not at all". Has a nuance of absolutely never happening.
Insists more on the duration: "not even".
Used before a a duration, a number, etc.
> [!info] Example
> {彼女|かのじょ}は{一日|いちにち}==として=={仕事|しごと}を{遅|おく}れなかった。
> She has never missed a day of work, not even one day.
### 全然
{全然|ぜんぜん} means "not at all".
⚠ In more casual settings, it can be used for positive meanings: "completely", "totally".
> [!info] Example
> ==全然=={知|し}らなかった。
> I had no idea.

View File

@ -1,4 +1,4 @@
# Amount # Amounts
## くらい・ぐらい ## くらい・ぐらい
@ -34,6 +34,14 @@ Also means "to the extent of".
> 食べなくて{寝|ね}たい==ぐらい=={疲|つか}れています。 > 食べなくて{寝|ね}たい==ぐらい=={疲|つか}れています。
> I'm tired to the extent of not eating and going to sleep. > I'm tired to the extent of not eating and going to sleep.
## ばかり
Means "about" or "approximately", when used with nouns indicating time or distance. Has the same meaning as ぐらい or ほど, but only in written form.
> [!info] Example
> {薬屋|くすりや}まで10分==ばかり==かかる。
> It takes about 10 minutes to get to the pharmacy.
## は particle ## は particle
See [[🔰 Particles (1)#は]]. See [[🔰 Particles (1)#は]].
@ -50,12 +58,21 @@ See [[🔰 Particles (1)#は]].
<p class="right">+ 程</p> <p class="right">+ 程</p>
</div> </div>
Like くらい, it describes an approximate amount. It focuses on a limit being reached. It translates to "about" or "to the extent". {程|ほど}, like くらい, it describes an approximate amount. It focuses on a limit being reached. It translates to "about" or "to the extent".
> [!info] Example > [!info] Example
> {地下鉄|ちかてつ}を{乗|の}るために、{死|し}ぬ==程=={走|はし}った。 > {地下鉄|ちかてつ}を{乗|の}るために、{死|し}ぬ==程=={走|はし}った。
> In order to catch the subway, I ran to death. > In order to catch the subway, I ran to death.
## 一応
{一応|いちおう} means "more or less", "roughly".
Can also mean "just in case". Used to tell the minimum required amount is done.
> [!info] Examples
> ==一応=={終|お}わりましたけど。
> I more or less finished, but...
## 一度に ## 一度に
{一度|いち|ど}に means "all at once". {一度|いち|ど}に means "all at once".
@ -72,3 +89,11 @@ Used with {少|すこ}し, means "little by little".
> [!info] Example > [!info] Example
> {個|こ}==ずつ==ください。 > {個|こ}==ずつ==ください。
> I'll take two of each please. > I'll take two of each please.
## ろくに~ない
Means "not enough, improperly, insufficiently". Used with a negative phrase.
> [!info] Examples
> {年|ねん}{中国語|ちゅうごくご}を{勉強|べんきょう}したのに、==ろくに=={喋|しゃべ}ら==ない==。
> Even tough I studied Chinese for 5 years, I cannot speak it really well.

View File

@ -0,0 +1,60 @@
# Based on
## からして
Means "based on", "judging from". Extracts a conclusion from an observation.
Used with nouns.
Also used to present an extreme example where if A is true, then of course B will also be true. Generally negative.
> [!info] Example
> {新|あたら}しい{部長|ぶちょう}のことの{噂|うわさ}==からして==、{心配|しんぱい}です。
> Judging from the rumors about the new manager, I'm worried.
>
> もちろん{親|おや}さんはうるさい==からしたら==、{子供|こども}もうるさいです。
> Of course if the parents are noisy, the kids will also be.
## をもとに・に沿って
をもとに and に{沿|そ}って mean "based on", "in accordance with". Use a source to do something, following it.
Used with nouns.
> [!info] Example
> この{教科書|きょうかしょ}==をもとに==、{練習問題|れんしゅうもんだい}を{作|つく}った。
> Based on this text textbook, I made practice questions.
## に基づいて
に{基|もと}づいて means "based on". It is more formal than をもとに and に沿って.
Used with nouns.
> [!info] Example
> この{映画|えいが}は{漫画|まんが}==に基づいた==。
> This movie was based on a manga.
## に応えて
に{応|こた}えて means "in response to". Implies a change depending on what is necessary, suitable, etc.
Used with nouns.
> [!info] Example
> {社長|しゃちょう}の{願|ねが}う==に応えて==、{残業|ざんぎょう}をしました。
> In reponse to my boss's request, I worked overtime.
## に応じて
に{応|おう}じて means "in accordance with". It is less direct than に応えて.
Used with nouns.
> [!info] Example
> {社長|しゃちょう}の{願|ねが}う==に応じて==、{残業|ざんぎょう}をしました。
> In response to my boss's request, I worked overtime. (the request might have been implicit, and not asked directly)
## の下で・のもとに
の{下|もと}で・の{下|もと}に means "under", "on the basis of".
Used with nouns.
> [!info] Example
> {新|あたら}しい{法律|ほうりつ}==の下で==はそれは{禁止|きんし}されている。
> Under the new law, that is prohibited.

View File

@ -2,19 +2,46 @@
## Can't help ## Can't help
### てしょうがない・てしかたがない
Means both "extremely" and "can't be helped". Implies that it's something very much wanted.
Also expresses strong emotion, feeling, desire that cannot be controlled.
See [[Amounts - quantification#てしょうがない・てしかたがない]].
> [!info] Example
> ラーメンが{食|た}べ==てしょうがない==。
> I can't help but to eat ramen.
>
> {隣|となり}の{会話|かいわ}は{聞|き}き==ってしょうがない==。
> I can't help but to listen to the conversion next door.
### ずにはいられない ### ずにはいられない
Means "can't help but do something". Means "can't help but do something". Implies that one can't stop doing it.
Made with a verb in the negative form (ない) without the ない ending and adding ずにはいられない. Made with a verb in the negative form (ない) without the ない ending and adding ずにはいられない.
> [!info] Example > [!info] Example
> {悲|かな}しいのでアイスクリーム食べ==ずには入れれない==。 > {悲|かな}しいのでアイスクリーム食べ==ずには入れれない==。
> I'm sad so I can't help but eat ice cream. > I'm sad so I can't help but eat ice cream.
### てしょうがない・てしかたがない ## ないではいられない
Means can't be helped". This means "cannot help doing something". Has the same nuance as ずにはいられない。
See [[Amounts - quantification#てしょうがない・てしかたがない]]. Made with a verb in the negative form (ない) without the ない ending and adding ではいられない.
> [!info] Example
> ゲームをし==ないではいられない==。
> I can't help but play games.
## ざるを得ない
ざるを{得|え}ない means "can't help doing". Implies that it is not the first choice, but that there is no other option available.
Made with a verb in the negative form (ない) and adding ざるを得ない.
Exception: する becomes せ.
> [!info] Example
> この{仕事|しごと}をせ==ざるを得ない==。
> I have no choice but to do this job.
## Doesn't matter ## Doesn't matter
@ -30,7 +57,7 @@ See [[Amounts - quantification#てしょうがない・てしかたがない]].
<p class="right">+ もかまわない・もかまいません</p> <p class="right">+ もかまわない・もかまいません</p>
</div> </div>
Means "it doesn't matter if", "I don't mind". ても{構|かま}わない means "it doesn't matter if", "I don't mind".
> [!info] Example > [!info] Example
> ここで{座|すわ}==っても構いません==か。 > ここで{座|すわ}==っても構いません==か。

View File

@ -2,14 +2,38 @@
## Certain ## Certain
### に違いない ### に決まっている
に{違|ちが}いない means "I'm certain that". に{決|き}まっている means "certain that". It is casual.
> [!info] Example > [!info] Example
> 私は{試験|しけん}を{合格|ごうかく}==に違いない==。 > 私は{試験|しけん}を{合格|ごうかく}==に決まっている==。
> I'm sure I'll pass the exam. > I'm sure I'll pass the exam.
### に違いない
に{違|ちが}いない means "certain that". It is polite.
> [!info] Example
> {絶対|ぜったい}に来る==に違いない==。
> He's definitely coming.
### に相違ない
に{相|そう}{違|い}ない means "certain that". It is very formal.
> [!info] Example
> 彼女は{必|かなら}ず{悲|かな}しい==に相違ない==。
> I'm certain that she's sad.
## Uncertain: というものではない
Means "there is no guarantee that", "not necessarily".
> [!info] Example
> {高|}い{商品|しょうひん}を{買|か}って{良質|りょうしつ}==というものではない==。
> Buying a product that is expensive does not guarantee that it is of good quality.
## Not always: とは限らない ## Not always: とは限らない
<div class="usage"> <div class="usage">
@ -41,23 +65,22 @@
<p class="right">+ わけがない</p> <p class="right">+ わけがない</p>
</div> </div>
Means that there is no way, "impossible". Means that there is no way, "impossible". The nuance is that the way of doing is unknown, thus impossible for the subject. But someone else might know.
It can also mean that the will to do is not present, especially with する.
> [!info] Example > [!info] Example
> {全部|ぜんぶ}食べられる==わけがない==よ! > もうこんな時間。帰り==わけがない==
> It is impossible to eat it all! > It's already this late. I have no way to go back home (I don't know how).
### ようがない・ようもない ### ようがない・ようもない
🛠 Todo: understand the nuance between わけがない and ようがない.
🛠 Todo: understand the nuance between ようがない and ようもない.
~{様|よう}がない means that there is no way, "impossible". ~{様|よう}がない means that there is no way, "impossible".
Works by removing ~ます from a verb and adding ようがない・ようもない. Works by removing ~ます from a verb and adding ようがない・ようもない.
The nuance it that it is impossible in general. With する, it can mean the same as わけがない, i.e. "I don't know how to".
> [!info] Example > [!info] Example
> もうこんな時間。帰り==ようがない== > {全部|ぜんぶ}食べられる==ようがない==よ!
> It's already this late. I have no way to go back home. > It is impossible to eat it all!
### まさか ### まさか

View File

@ -130,6 +130,54 @@ It focuses on the end of the action rather than the process.
> この13時間{飛行|ひこう}で{座|すわ}り==っぱなし==でした。 > この13時間{飛行|ひこう}で{座|すわ}り==っぱなし==でした。
> I sat the entire time on this 13 hours flight. > I sat the entire time on this 13 hours flight.
## ~かねる
~かねる means "unable to do", due to an external circumstance. It is polite.
> [!info] Example
> ごめんなさい、それをでき==かねます==。
> I'm sorry, I cannot do that.
## ~っこない
~っこない means that something is not possible.
> [!info] Example
> {全然|ぜんぜん}{勉強|べんきょう}しなかった。。。{合格|ごうかく}し==っこない==よ。
> I did not study at all... There's no way I'll pass.
## ~抜く
~{抜|ぬ}く means to do something to the end, or completely. The nuance is that someone tried hard and has made an effort to achieve this result.
> [!info] Example
> それは{毎日|まいにち}やり==抜く=={無理|むり}ですよ。
> You cannot do this every day.
## ~給え
~{給|たま}え is used for a light order. It is used by someone of higher rank to someone of lower rank.
> [!info] Example
> ここに{座|すわ}り==給え==。
> Seat here.
## ~つつ(も)
~つつ means that something happens at the same time as another action. Adding も adds the meaning of "even": "even while doing".
> [!info] Example
> 食べ==つつ==、飲みましょう。
> While eating, let's drink.
## ~つつある
~つつある means that something is in an ongoing process or action, in a similar manner as てくる.
> [!info] Example
> {雪|ゆき}が{降|ふ}り==つつある==。
> It is snowing.
## ~込む ## ~込む
~{込|こ}む has multiple meanings depending on the verb. Sometimes it is idiomatic and so it cannot exactly be guessed. However, there are some broad categories. ~{込|こ}む has multiple meanings depending on the verb. Sometimes it is idiomatic and so it cannot exactly be guessed. However, there are some broad categories.

View File

@ -2,7 +2,7 @@
## より ## より
With the following pattern, it means that A is "more" Adj "than" B. With the following pattern, it means that A is "more" something "than" B.
<div class="usage"> <div class="usage">
<p class="r">AはB +</p> <p class="r">AはB +</p>
@ -16,6 +16,8 @@ With the following pattern, it means that A is "more" Adj "than" B.
> 電車は車==より=={速|はや}いです。 > 電車は車==より=={速|はや}いです。
> Trains are faster than cars. > Trains are faster than cars.
Do not confuse with [[🔰 Particles (2)#より]].
## より(も) ## より(も)
<div class="usage"> <div class="usage">
@ -109,7 +111,7 @@ Used with nouns.
</div> </div>
Means that the extent has not been reached, so it is not as much. Means that the extent has not been reached, so it is not as much.
See also [[Amount#ほど]]. See also [[Amounts#ほど]].
> [!info] Example > [!info] Example
> {韓国|かんこく}==ほど=={辛|から}いの食べ{物|もの}は==ない==。 > {韓国|かんこく}==ほど=={辛|から}いの食べ{物|もの}は==ない==。
@ -117,3 +119,28 @@ See also [[Amount#ほど]].
> >
> {中国|ちゅうごく}{料理|りょうり}は{韓国|かんこく}{料理|りょうり}==ほど=={辛|から}く==ない==です。 > {中国|ちゅうごく}{料理|りょうり}は{韓国|かんこく}{料理|りょうり}==ほど=={辛|から}く==ない==です。
> Korean food is spicier than Chinese food. > Korean food is spicier than Chinese food.
## ならまだしも
Means that A is okay, but B is not. "Rather", "instead".
> [!info] Example
> {寒|さむ}いだけ==ならまだしも==、{雨|あめ}が{降|ふ}ているから行きたくない。
> It would be fine if it was just cold, but since it's raining I don't want to go.
## に限る
に{限|かぎ}る means "the best is".
Used with verbs and nouns.
> [!info] Example
> パンなら、フランス==に限る==。
> Bread is best in France.
## に越したことはない
に{越|こし}したことはない means "there's nothing better than...". Implies that it is nice to reach it.
> [!info] Example
> {健康|けんこう}のために{早|はや}く{寝|ね}る==に越したことはない==。
> For your health, it's best to go to bed early.

View File

@ -17,7 +17,7 @@ See [[Connectors#のに#In order to]].
<p class="right">+ ため(に)</p> <p class="right">+ ため(に)</p>
</div> </div>
Means "in order to". Mostly used in writing. Means "in order to". Mostly used in writing, rarely used with negative.
> [!info] Examples > [!info] Examples
> {面接|めんせつ}の==ために==ヒゲを{剃|そ}らなきゃ。 > {面接|めんせつ}の==ために==ヒゲを{剃|そ}らなきゃ。
@ -46,7 +46,7 @@ Can also mean "as for", "regarding".
## ように ## ように
Means "in order to". Implies that an effort is made or a goal to obtain. Means "in order to". Implies that an effort is made or a goal to obtain. There is generally will implied.
Used with verbs. Used with verbs.
> [!info] Examples > [!info] Examples

View File

@ -23,7 +23,7 @@ Used with nouns and verbs.
<p class="right">+ のに</p> <p class="right">+ のに</p>
</div> </div>
The first meaning is "although", "even tough". The first meaning is "although", "even tough". Cannot be an hypothesis, must be a confirmed fact. This, it works with past tense.
> [!info] Example > [!info] Example
> 食べたばかり==なのに==、まだお{腹|なか}が{空|す}いた。 > 食べたばかり==なのに==、まだお{腹|なか}が{空|す}いた。
@ -58,6 +58,22 @@ Used to introduce a new topic of conversation. Translates to "by the way".
> ==ところで==、車の{修理|しゅうり}はどう。 > ==ところで==、車の{修理|しゅうり}はどう。
> By the way, how are the repairs for your car? > By the way, how are the repairs for your car?
## By the way: ちなみに
Used to provide a new information on the current topic of conversation. Translates to "by the way".
> [!info] Example
> {駅|えき}に行くつもりです。==ちなみに==、駅の{前|まえ}には{新|あたら}しいレストランが{開|あけた}けたと言われた。
> I'm going to the train station. By the way, I heard that a new restaurant has opened in front of the station.
## Come to think of it: そう言えば
Used to talk about a topic connected to the previous one, as something that is remembered.
> [!info] Example
> ==そういえば==、{今日|きょう}の{試験|しけん}はどうだったか。
> Come to think of it, how was today's exam?
## Certainly: 確かに ## Certainly: 確かに
{確|たし}かに means "surely", "certainly". {確|たし}かに means "surely", "certainly".
@ -65,3 +81,6 @@ Used to introduce a new topic of conversation. Translates to "by the way".
> [!info] Example > [!info] Example
> この{歌|うた}は==確かに=={面白|おも|しろ}そうだ。 > この{歌|うた}は==確かに=={面白|おも|しろ}そうだ。
> This song certainly sounds interesting. > This song certainly sounds interesting.

View File

@ -0,0 +1,68 @@
# Consequence
## に関わる
に{関|かか}わる means "to affect", "to be involved". Used with nouns that express something influential.
Used with nouns.
> [!info] Examples
> {命|いのち}==に関わる=={事故|じこ}がありました。
> There was a life-threatening incident.
## がきっかけで・をきっかけに
<div class="usage">
<div class="left">
<p><span class="box">V + の・こと</span></p>
<p><span class="box">N</span></p>
</div>
<p class="right">+ がきっかけで・をきっかけに</p>
</div>
Means "to take advantage of", "because of", "as an opportunity to". It is a common form.
> [!info] Examples
> {彼女|かのじょ}と{出会|であ}ったの==がきっかけで==、ポップ{音楽|おんがく}が{好|す}き{始|はじ}まった。
> After meeting her, I started liking pop music.
## を契機に
<div class="usage">
<div class="left">
<p><span class="box">V + の・こと</span></p>
<p><span class="box">N</span></p>
</div>
<p class="right">+ を契機に</p>
</div>
を{契機|けいき}に means "lead to", "as a result of", "as a good opportunity to". It is used for an important change, in formal situations.
> [!info] Examples
> {戦争|せんそう}==を契機に==、{人々|ひとびと}は{家|いえ}を{失|うしな}った。
> As a result of the war, people lost their homes.
## そうすると
Means "having done that". Used for something where there is no control, or to confirm an information.
Used at the beginning of a phrase.
> [!info] Example
> ゆっくり{食|た}べてみて。==そうすると==、おいしくなる。
> Try eating slower. Doing that, it will taste better.
## 甲斐がある
<div class="usage">
<div class="left">
<p><span class="box">V (た)</span></p>
<p><span class="box">V (ます)</span></p>
<p><span class="box">N + の</span></p>
</div>
<p class="right">+ かいがある</p>
</div>
{甲斐|かい}がある means "to be worth". 甲斐がない means "to not be worth".
> [!info] Examples
> {点|てん}{持|も}ったから{朝|あさ}まで{勉強|べんきょう}した==かいがあった==。
> I got 100 points, so it was worth it studying until morning.

View File

@ -2,33 +2,26 @@
## としては ## としては
🛠 Todo: nuance.
Means "as", "in the role of". The と particle implies a result. Means "as", "in the role of". The と particle implies a result.
More used for objective judgments.
Used with nouns. Used with nouns.
> [!info] Example > [!info] Example
> {厳|きび}しいのに{先生|せんせい}==としては==あまり{良|よ}くない > 彼はカメラマン==としては==いい{仕事|しごと}をする
> Because he is strict, he's not a very good teacher. > As a cameraman, he does a good job.
## にしては ## にしては
🛠 Todo: nuance.
Means "considering", "for". The に particle implies a simultaneous existence. Means "considering", "for". The に particle implies a simultaneous existence.
More used to give personal opinions. The difference with としては resides in the fact that this is used to make a contrast between the general image associated with something and what we're describing.
Used with verbs and nouns. Used with verbs and nouns.
> [!info] Example > [!info] Example
> 田中さんは{父|ちち}==にしては=={最低|さいてい}です > このカバンは安い==にしては==悪くない
> As a father, Tanaka-san is the worst. > This bag might be cheap, it is not bad.
## としても ## としても
🛠 Todo: nuance. Means "assuming", "even if". It has the same meaning as [[TeF (4) - even if#Even if ても・でも]], but bolder.
Means "assuming", "even if".
> [!info] Example > [!info] Example
> 私==としても==出来ます。 > 私==としても==出来ます。
@ -36,13 +29,11 @@ Means "assuming", "even if".
## にしても ## にしても
🛠 Todo: nuance. Means "even if", "even though". It has the same meaning as [[🔰 Particles (1)#も]], but bolder. In some rare written cases, it has the same meaning as としても.
Means "even if", "even though".
> [!info] Example > [!info] Example
> それ==にしても==、{気|き}を{付|つ}けてくください > フランス{語|ご}==にしても=={英語|えいご}==にしても=={彼|かれ}はとても{上手|じょうず}です
> Still, please be careful. > He is very good at both French and English.
## "As": Gradual change ## "As": Gradual change
@ -68,7 +59,7 @@ It means that when when the first part of the sentence changes, the second part
This example works with all forms. This example works with all forms.
## につれて and にしたがって ### につれて and にしたがって
In both forms, the change is natural, and is not an intentional change. When the verb expresses gradual change, both can be used. In both forms, the change is natural, and is not an intentional change. When the verb expresses gradual change, both can be used.
につれて is more common and more used for personal actions. につれて is more common and more used for personal actions.
@ -77,7 +68,7 @@ In both forms, the change is natural, and is not an intentional change. When the
> {冬|ふゆ}が{地|ちか}づく==にしたがって・につれて=={気温|きおん}が{下|さ}がってきた。 > {冬|ふゆ}が{地|ちか}づく==にしたがって・につれて=={気温|きおん}が{下|さ}がってきた。
> As winter approaches, the temperatures have lowered. > As winter approaches, the temperatures have lowered.
## にしたがって ### にしたがって
This form also has the meaning of "in accordance to". It doesn't express change. It is possible to talk about intention. This form also has the meaning of "in accordance to". It doesn't express change. It is possible to talk about intention.
@ -85,7 +76,7 @@ This form also has the meaning of "in accordance to". It doesn't express change.
> {歯医者|はいしゃ}==にしたがって=={毎日|まいにち}{回|かい}{歯|は}を{磨|みが}く。 > {歯医者|はいしゃ}==にしたがって=={毎日|まいにち}{回|かい}{歯|は}を{磨|みが}く。
> I brush my teeth twice a day as recommended by my dentist. > I brush my teeth twice a day as recommended by my dentist.
## に伴って ### に伴って
に{伴|ともな}って also has the meaning of a an instantaneous change: when the first part changes, the second part also changes instantly. The first part is the reason of it changing. に{伴|ともな}って also has the meaning of a an instantaneous change: when the first part changes, the second part also changes instantly. The first part is the reason of it changing.
@ -93,11 +84,11 @@ This form also has the meaning of "in accordance to". It doesn't express change.
> オリンピックがある==に伴って=={交通費|こうつうひ}がねあが{値上|ねあ}がりしてしまった。 > オリンピックがある==に伴って=={交通費|こうつうひ}がねあが{値上|ねあ}がりしてしまった。
> As the Olympics are held, transportations cost have increased. > As the Olympics are held, transportations cost have increased.
## と共に ### と共に
と{共|とも}に has 3 other meanings. と{共|とも}に has 3 other meanings.
### Almost at the same time #### Almost at the same time
It is also used for two actions that happens at approximately the same time. The two actions do not have to be related. They also don't have to be specifically about change. It is also used for two actions that happens at approximately the same time. The two actions do not have to be related. They also don't have to be specifically about change.
@ -105,7 +96,7 @@ It is also used for two actions that happens at approximately the same time. The
> {鳥|とり}は{鳴|な}き{声|ごえ}をする==と共に=={風|かぜ}が{吹|ふ}く。 > {鳥|とり}は{鳴|な}き{声|ごえ}をする==と共に=={風|かぜ}が{吹|ふ}く。
> The bird sings and the wind blows. > The bird sings and the wind blows.
### Together with #### Together with
It can also mean "together with". It is much more formal than {一緒|いっしょ}に. It can also mean "together with". It is much more formal than {一緒|いっしょ}に.
@ -113,7 +104,7 @@ It can also mean "together with". It is much more formal than {一緒|いっし
> {妻|つま}==と共に=={新|あたら}しい{人生|じんせい}を{始|はじ}めります。 > {妻|つま}==と共に=={新|あたら}しい{人生|じんせい}を{始|はじ}めります。
> I am starting a new life with my wife. > I am starting a new life with my wife.
### As well as, also #### As well as, also
It can also mean "as well as", "also". It can also mean "as well as", "also".

View File

@ -16,6 +16,15 @@ Means "named", "called".
> {台風|たいふう}が来る==という==ニュース。 > {台風|たいふう}が来る==という==ニュース。
> A news that a typhoon is coming. > A news that a typhoon is coming.
## いわゆる
Means "called".
Used with nouns.
> [!info] Examples
> 彼は==いわゆる==オタクです。
> He is what they call an otaku.
## と言ってもいい ## と言ってもいい
Means "you could say". Means "you could say".
@ -78,11 +87,13 @@ Means that something is "full of" or "covered with" something undesirable.
<div class="usage"> <div class="usage">
<p class="iright">N + は + </p> <p class="iright">N + は + </p>
<div class="ileft">
<div class="left"> <div class="left">
<p><span class="box">V + こと</span></p> <p><span class="box">V + こと</span></p>
<p><span class="box">い-Adj + こと</span></p> <p><span class="box">い-Adj + こと</span></p>
<p><span class="box">な-Adj + な + こと</span></p> <p><span class="box">な-Adj + な + こと</span></p>
<p><span class="box">N</span></p> <p><span class="box">N</span></p>
</div>
</div> </div>
<p class="right">+ で有名</p> <p class="right">+ で有名</p>
</div> </div>

View File

@ -0,0 +1,43 @@
# Emphasis
## に限って
に{限|かぎ}って means "particularly when", "only when".
Used with nouns.
> [!info] Example
> このレストランは{金曜日|きんようび}==に限って==、{特別|とくべつ}な{食|た}べ{物|もの}を{作|つく}る。
> This restaurant only makes special food on Fridays.
## ことに
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
</div>
<p class="right">+ ことに</p>
</div>
Means "particularly", "especially". Used to describe and emphasize the speaker's feelings.
> [!info] Examples
> こんなに{長|なが}い{間|あいだ}{彼|かれ}から{連絡|れんらく}があった==ことに=={驚|おどろ}きました。
> I was surprised to hear from him after such a long time.
## それなら
Means "if that's the case". Highlights the previous statement.
> [!info] Examples
> {今週|こんしゅう}{忙|いそが}しいんでしょうか。==それなら==、{来週|らいしゅう}はどうですか。
> You're busy this week, right? Then, what about the next one?
## だって
Means "even someone". It is informal.
> [!info] Examples
> それはこども==だって=={知|し}っている。
> Even kids know that.

View File

@ -15,3 +15,27 @@ With verbs and adjectives, かどうか is placed before.
> {勝|かつ}かどうか==は別として==、{試合|しあい}をやってみたい。 > {勝|かつ}かどうか==は別として==、{試合|しあい}をやってみたい。
> Whether we win or not, I want to play the game. > Whether we win or not, I want to play the game.
## を除いて
<div class="usage">
<div class="">
<p><span class="box">N</span></p>
</div>
<p class="r">+ を除いて</p>
</div>
<div class="usage">
<div class="">
<p><span class="box">N</span></p>
</div>
<p class="r">+ を除く + </p>
<div class="">
<p><span class="box">N</span></p>
</div>
</div>
を{除|のぞ}いて means "except".
Used with nouns.
> [!info] Example
> 私==を除いて==、{皆|みな}さんが{合格|ごうかく}しました。
> Everyone except me passed.

View File

@ -0,0 +1,104 @@
# In addition
## も~ば~も
<div class="usage">
<p class="iright">N1 + も + </p>
<div class="ileft">
<div class="left">
<p><span class="box">V (ば)</span></p>
<p><span class="box">い-Adj <strike></strike> ければ</span></p>
<p><span class="box">な-Adj + なら</span></p>
<p><span class="box">N + なら</span></p>
</div>
</div>
<p class="right">+ N2 + も</p>
</div>
Means "also", "as well". Means that both N1 and N2 are true (and should share a connection).
⚠ Despite using conditional form, it is not conditional in meaning.
> [!info] Examples
> {母|はは}はポルトガル{語|ご}==も==できれ==ば==スペイン{語|ご}==も=={話|はな}せる。
> My mother can speak Portuguese as well as Spanish.
## おまけに
Means "in addition". Used for emphasis for similar qualities (positive, negative). Used orally.
> [!info] Examples
> {暑|あつ}くて==おまけに==エアコンが{壊|こわ}れてしまった。
> It was hot, and to make matters worse, the air conditioning broke.
## しかも
Means "moreover", "what's more". Talks about a same subject, for objective information, implying that A and B exist at the same time. It is similar to おまけに, but used for writing.
> [!info] Examples
> このレストランはとても{美味|おい}しいね。==しかも==、{安|やす}いよ!
> This restaurant is delicious. What's more, it's cheap!
## 上に
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N + の</span></p>
</div>
<p class="right">+ 上(に)</p>
</div>
{上|うえ}に means "and also", "in addition", "as well". Used with similar qualities (positive with positive, negative with negative).
> [!info] Examples
> この{家|いえ}は{狭|せま}い==上に=={家賃|やちん}は{高|たか}すぎる。
> This house is small, and the rent is too expensive.
## その上
その{上|うえ} means "besides", "in addition". Means the same as 上に, but with two separate sentences.
> [!info] Examples
> この{家|いえ}は{狭|せま}い。==その上==、{家賃|やちん}は{高|たか}すぎる。
> This house is small. In addition, the rent is too expensive.
## に加えて
に{加|くわ}えて means "in addition to". It is formal, and often used in business settings.
Used with nouns.
> [!info] Examples
> {今年|ことし}はピンポン==に加えて==バドミントンを{教|おし}えます。
> This year, I'll be teaching badminton in addition to ping pong.
## Not only, but also
### はもちろん
<div class="usage">
<div class="">
<p><span class="box">N</span></p>
</div>
<p class="r">+ はもちろん + </p>
<div class="">
<p><span class="box">phrase</span></p>
</div>
<p class="r">+ も・さえ</p>
</div>
Means "not only but also", "not to mention". The most common form.
> [!info] Examples
> このゲームセンターにはゲーム==はもちろん==ボウリング==も==あります。
> This game center not only has games but also bowling.
### はもとより
Means "not only but also". Similar meaning than はもちろん. Conveys a sense of continuity. Used mostly in writing.
Used with nouns.
> [!info] Examples
> {雪|ゆき}が{多|おお}いので、{電車|でんしゃ}==はもとより==タクシーもない。
> There is so much snow that there are no trains, let alone taxis.

View File

@ -20,7 +20,7 @@ Means "instead" or "rather".
<p class="right">+ 代わりに</p> <p class="right">+ 代わりに</p>
</div> </div>
{代|か}わりに means "instead of", "in exchange for". Generally used about things. {代|か}わりに means "instead of", "in exchange for". Generally used to talk about things.
Does not have a notion of replacing in a temporal transition, more like a one off occurrence. Does not have a notion of replacing in a temporal transition, more like a one off occurrence.
> [!info] Examples > [!info] Examples

View File

@ -47,6 +47,15 @@ This particles means "and" or "with". Used for a list that is exhaustive. Connec
> フランス語==と==スペイン語を習っています。 > フランス語==と==スペイン語を習っています。
> I am learning French and Spanish. > I am learning French and Spanish.
### 及び
{及|およ}び means "and", like と. Used in formal settings.
Used with nouns.
> [!info] Examples
> {試験|しけん}には{鉛筆|えんぴつ}==及び=={消|け}しゴムを{持|も}ってきてください。
> Please bring a pencil and an eraser to the exam.
### て connecting ### て connecting
Used for a list that is exhaustive. Connects verbs. Used for a list that is exhaustive. Connects verbs.
@ -72,6 +81,15 @@ Used with nouns.
> お金がないのでカフェ**や**レストラン==など=={払|はら}えない。 > お金がないのでカフェ**や**レストラン==など=={払|はら}えない。
> I can't pay things like cafes or restaurant (etc.) because I have no money. > I can't pay things like cafes or restaurant (etc.) because I have no money.
### といった
Used to describe typical examples: "things as", "like", "such as". It is casual. It has the same meaning as など.
Used with nouns.
> [!info] Examples
> フランスとカナダ==といった=={国|くに}はフランス{語|ご}を{話|はな}す。
> Countries such as France and Canada speak French.
### とか~とか ### とか~とか
Used for a list that is unexhaustive. Translates to "and", "among other things". More casual than や. Ending a sentence with とか can soften the meaning. Can also be used to quote someone. Used for a list that is unexhaustive. Translates to "and", "among other things". More casual than や. Ending a sentence with とか can soften the meaning. Can also be used to quote someone.
@ -127,70 +145,34 @@ It can be used to emphasize something when used at the end of a sentence.
> 言ってない==し== > 言ってない==し==
> I never said that! > I never said that!
### やら~やら
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">N</span></p>
</div>
<p class="right">+ やら + B + やら</p>
</div>
This form is unexhaustive and can be translated as "and", "among other things".
It has 3 nuances:
- Conveys a negative image
- Among other things, in an unorganized manner
- Conflicting feelings
> [!info] Examples
> {今日|きょう}{電車|でんしゃ}がなかった==やら==、{車|くるま}が{壊|こわ}れた==やら==、{家|いえ}に{出|で}かけられませんでした。
> There were no trains and my car broke down, so I couldn't go out.
>
> {黒|くろ}い==やら=={白|しろ}い==やら=={着物|きもの}があります。
> There are black and white kimonos (among other things).
>
## Summing up ## Summing up
* ==や== means "and", and is formal. Can be completed by ==など== (= etc). * ==や== means "and", and is formal. Can be completed by ==など== (= etc).
* ==とか== also means "and", but is casual. * ==とか== also means "and", but is casual.
* ==たり== means "or", "things like". Used to express possibilities. * ==たり== means "or", "things like". Used to express possibilities.
* ==し== means "and", but with an emphasis on a review. * ==し== means "and", but with an emphasis on a review.
## And also
### も~ば~も
<div class="usage">
<p class="iright">N1 + も + </p>
<div class="ileft">
<div class="left">
<p><span class="box">V (ば)</span></p>
<p><span class="box">い-Adj <strike></strike> ければ</span></p>
<p><span class="box">な-Adj + なら</span></p>
<p><span class="box">N + なら</span></p>
</div>
</div>
<p class="right">+ N2 + も</p>
</div>
Means "also", "as well". Means that both N1 and N2 are true (and should share a connection).
⚠ Despite using conditional form, it is not conditional in meaning.
> [!info] Examples
> {母|はは}はポルトガル{語|ご}==も==できれ==ば==スペイン{語|ご}==も=={話|はな}せる。
> My mother can speak Portuguese as well as Spanish.
### 上に
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N + の</span></p>
</div>
<p class="right">+ 上(に)</p>
</div>
{上|うえ}に means "and also", "in addition", "as well". Used with similar qualities (positive with positive, negative with negative).
> [!info] Examples
> このスーパーは{高|たか}い==上に=={不便|ふべん}です。
> This supermarket is expensive as well as inconvenient.
### はもちろん
<div class="usage">
<div class="">
<p><span class="box">N</span></p>
</div>
<p class="r">+ はもちろん + </p>
<div class="">
<p><span class="box">phrase</span></p>
</div>
<p class="r">+ も・さえ</p>
</div>
Means "not only but also", "not to mention".
> [!info] Examples
> このゲームセンターにはゲーム==はもちろん==ボウリングもあります。
> This game center not only has games but also bowling.

View File

@ -66,6 +66,15 @@ Used with a noun.
> 台風==により==、出かけられない。 > 台風==により==、出かけられない。
> Because of the typhoon, I cannot go out. > Because of the typhoon, I cannot go out.
## 次第で
{次第|しだい}で means "depending on". The difference with によって is that the options are limited and quantifiable.
Used with nouns.
> [!info] Example
> {試験|しけん}の{結果|けっか}==次第で=={来年|らいねん}の{学校|がっこう}が{変|か}わります。
> Depending on the results I get on this test, my school next year will not be the same.
## とおりに ## とおりに
<div class="usage"> <div class="usage">
@ -86,3 +95,21 @@ Means "just as", "precisely". Can be written as 通り.
> [!info] Example > [!info] Example
> {計画|けいかく}==どおり=={間|ま}に{合|あ}った。 > {計画|けいかく}==どおり=={間|ま}に{合|あ}った。
> We arrived on time as planned. > We arrived on time as planned.
## だけは
<div class="usage">
<div class="">
<p><span class="box">V (る)</span></p>
</div>
<p class="r">+ だけは + </p>
<div class="">
<p><span class="box"> V (た)</span></p>
</div>
</div>
Means "to do all that one can".
> [!info] Example
> {試験|しけん}のため{勉強|べんきょう}する==だけは=={勉強|べんきょう}した。
> I studied as much as I could for the exam.

View File

@ -0,0 +1,113 @@
# Natural, expected
## 当然だ
<div class="usage">
<div class="">
<p><span class="box">V</span></p>
</div>
<p class="r">+ のは・のも + 当然だ</p>
</div>
<div class="usage">
<div class="">
<p><span class="box">い-Adj</span></p>
</div>
<p class="r">+ のは・のも + 当然だ</p>
</div>
<div class="usage">
<div class="">
<p><span class="box">な-Adj</span></p>
</div>
<p class="r">+ な + のは + 当然だ</p>
</div>
<div class="usage">
<div class="">
<p><span class="box">N</span></p>
</div>
<p class="r">+ は・も + 当然だ</p>
</div>
{当然|とうぜん}だ means "it is only natural", "no wonder".
> [!info] Examples
> {彼女|かのじょ}に{負|ま}けた==のは当然だ==、プロだから。
> It's no wonder I lost to her, she's a pro.
## のももっともだ
<div class="usage">
<div class="left">
<p><span class="box">V + のも・のは</span></p>
<p><span class="box">い-Adj + のも・のは</span></p>
<p><span class="box">な-Adj + な + のも・のは</span></p>
<p><span class="box">N + も・は</span></p>
</div>
<p class="right">+ もっともだ</p>
</div>
Means "no wonder", "is only natural".
> [!info] Examples
> {超自然的|ちょうしぜんてき}があるから、その{話|はなし}は{信|しん}じられない==のはもっともだ==。
> There's supernatural elements, so it's only natural that this story is hard to believe.
## ものだ
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
</div>
<p class="right">+ ものだ・みんだ</p>
</div>
Means "normally" or "should". Used to describe conventions, common sense, or what is expected in the current situation.
> [!info] Examples
> {毎日|まいにち}{回|かい}{歯|は}を{磨|みが}く==ものだ==。
> You're supposed to brush your teeth twice a day.
## だけのことはある
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N</span></p>
</div>
<p class="right">+ だけのことはある</p>
</div>
Means "as expected", "not surprising". Often used with [[Adverbs#さすが|さすが]] or やはり. Not used for negative outcomes.
> [!info] Examples
> {彼女|かのじょ}は{上手|じょうず}ですね。さすが{毎日|まいにち}{練習|れんしゅう}==だけのことはある==なあ。
> She's very good. As expected from someone who trains everyday.
## と考えられる
と{考|かんが}えられる means "is thought to be", "can be considered as". Used to convey an objective or widely spread opinion, contrary to と思われる.
> [!info] Examples
> タバコは{健康|けんこう}に{悪|わる}い==と考えられています==。
> Tobacco is considered bad for one's health.
## だけに
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N</span></p>
</div>
<p class="right">+ だけに</p>
</div>
Means "as one would expect", "it's only natural that".
> [!info] Example
> {都市|とし}は{人口|じんこ}が{多|おお}い==だけに==、{地下鉄|ちかてつ}がある。
> The city is so populous, so as one might expect, it has a subway.

View File

@ -58,6 +58,7 @@ This form is used with a V-て, depending on the ending:
### てはいけない ### てはいけない
Used in a more formal or written manner. Used with a V-て. Used in a more formal or written manner. Used with a V-て.
てはならない is a stronger form.
> [!info] Example > [!info] Example
> {鉄道|てつ|どう}に{歩|ある}い==てはいけません==。 > {鉄道|てつ|どう}に{歩|ある}い==てはいけません==。

View File

@ -21,7 +21,7 @@ Similar in the quotation sense to [[Description#って・って言う・と言
## と聞いた ## と聞いた
Used for something you heard by someone identifiable: for example, you were told by someone. と{聞|きい}いた is used for something you heard by someone identifiable: for example, you were told by someone.
Mostly used formally. Mostly used formally.
> [!info] Example > [!info] Example
@ -30,7 +30,7 @@ Mostly used formally.
## と言われている ## と言われている
Used when you heard something, but not from someone specifically identifiable: general knowledge, a rumour, etc. と{言|い}われている is used when you heard something, but not from someone specifically identifiable: general knowledge, a rumour, etc.
For nouns, だ is placed before. For nouns, だ is placed before.
Mostly used formally. Mostly used formally.
@ -72,7 +72,7 @@ Can be used as ==ということだ== or ==とのことだ==. A more casual vers
## Summing up ## Summing up
* ==んだって== used for quotation, similar to って, when the information is new. * ==んだって== used for quotation, similar to って, when the information is new.
* ==と聞いた== is used for something for something you heard from an identifiable speaker. Is mostly formal. * ==と聞いた== is used for something you heard from an identifiable speaker. Is mostly formal.
* ==と言われている== is used for something for something you heard from an unspecified speaker. Is mostly formal. * ==と言われている== is used for something for something you heard from an unspecified speaker. Is mostly formal.
* ==そうだ== is used for hearsay and is casual. * ==そうだ== is used for hearsay and is casual.
* ==ということだ== is used for hearsay, when the validity of the information is certain. More formal than そうだ. * ==ということだ== is used for hearsay, when the validity of the information is certain. More formal than そうだ.
@ -85,3 +85,23 @@ Used with nouns. With verbs, ところ is added before.
> [!info] Examples > [!info] Examples
> {天気予報|てんきよほう}==によると=={今日|きょう}は{雪|ゆき}が{降|ふ}るようだ。 > {天気予報|てんきよほう}==によると=={今日|きょう}は{雪|ゆき}が{降|ふ}るようだ。
> According to the weather forecast, it's supposed to snow today. > According to the weather forecast, it's supposed to snow today.
## とか(で)
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + だ</span></p>
<p><span class="box">N + だ</span></p>
</div>
<p class="right">+ とか(で)</p>
</div>
Used to tell information heard via rumour. "I heard that..."
> [!info] Examples
> {目黒|めぐろ}に{住|す}んでいる==とか==。
> Apparently they live in Meguro.
Do not confuse with [[Listing#とか~とか]].

View File

@ -206,3 +206,44 @@ This is used (unlike other forms that can apply to abstract similarities) exclus
> [!info] Example > [!info] Example
> {彼女|かのじょ}はフランス人==に見える==。 > {彼女|かのじょ}はフランス人==に見える==。
> She looks like she is French. > She looks like she is French.
## かのよう「だ・に・な」
Means "as if", "just like".
Use かのうようだ if it is ending the sentence, かのうように before a verb, かのような before a noun.
> [!info] Examples
> このゲームは{現実|げんじつ}==かのようだ==。
> This game is just like reality.
## どうやら
Means "it seems like", used with notions like ようだ or らしい.
Used at the beginning of a phrase.
> [!info] Examples
> ==どうやら=={離婚|りこん}したようだ。
> Apparently they got divorced.
## げ
<div class="usage">
<div class="left">
<p><span class="box">V <strike>ます</strike></span></p>
<p><span class="box">V な<strike></strike></span></p>
<p><span class="box">V た<strike></strike></span></p>
<p><span class="box">い-Adj + <strike></strike></span></p>
<p><span class="box">な-Adj + <strike></strike></span></p>
<p><span class="box">N (limited)</span></p>
</div>
<p class="right">+ げ</p>
</div>
Means that something or someone looks like, appears to. Cannot be used for yourself.
It is used in a similar manner as そう, but only to describe the feelings of someone.
⚠ Irregular form: いい => よい => よさげ
> [!info] Examples
> {新|あたら}しい{部長|ぶちょう}{不安|ふあん}==げ==です。
> The new manager seems anxious.

View File

@ -0,0 +1,19 @@
# Observation
## ところを見ると
ところを{見|み}ると means "judging from".
Used with verbs.
> [!info] Examples
> ヘルメットを{被|かぶ}ている==ところを見ると==、{自転車|じてんしゃ}で{来|き}ました。
> Judging from the fact that he's wearing a helmet, he must have come by bicycle.
## からすると・からすれば
Means "judging from", "considering".
Used with nouns.
> [!info] Examples
> {服|ふく}を´{着|き}る==からすると==、{今日|きょう}は{面接|めんせつ}に{行|い}くでしょう。
> Judging from the clothes you're wearing, I guess you're going to pass an interview today.

View File

@ -27,6 +27,14 @@ Can also be used as だけではなく.
> この{都市|とし}は大きい==だけでなく==、きれいでもある。 > この{都市|とし}は大きい==だけでなく==、きれいでもある。
> This city is not only big, it's also pretty. > This city is not only big, it's also pretty.
## のみ
It is a more formal, written version of だけ. It is only used with nouns.
> [!info] Example
> この{道|みち}は{歩行者|ほこうしゃ}==のみ==です。
> This road is pedestrian only.
## きり ## きり
<div class="usage"> <div class="usage">
@ -99,11 +107,29 @@ Used to say "only" with a negative meaning.
</div> </div>
Means "not only A but also B". Means "not only A but also B".
Can also be used as ばかりか, for a slightly stronger effect.
> [!info] Examples > [!info] Examples
> 彼女は{綺麗|きれい}==ばかりでなく=={天才|てんさい}もあるです。 > 彼女は{綺麗|きれい}==ばかりでなく=={天才|てんさい}もあるです。
> She's not only beautiful, she's also a genius. > She's not only beautiful, she's also a genius.
## に限らず
に{限|かぎ}らず means "not only A, but also B".
Used with nouns.
> [!info] Examples
> この{店|みせ}は{平日|へいじつ}==に限らず==、{週末|しゅうまつ}も{営業|えいぎょう}している。
> This store is open not only on weekdays but also on weekends.
## のみならず
Means "not only, but also".
> [!info] Examples
> {彼|かれ}は{優|やさ}しくない{人|ひと}==のみならず==、{口|くち}も{悪|わる}い。
> Not only is he not kind, but he's also bad mouthed.
## てばかりいる ## てばかりいる
Means "only", "nothing but". Means "only", "nothing but".
@ -112,3 +138,20 @@ Used with a verb in て form.
> [!info] Examples > [!info] Examples
> {僕|ぼく}の{犬|いぬ}は{鳴|な}け==てばかりいる==。 > {僕|ぼく}の{犬|いぬ}は{鳴|な}け==てばかりいる==。
> My dog is always barking. > My dog is always barking.
## でしかない
Means "nothing but" or "no more than". More often than not conveys a negative nuance.
Used with nouns.
> [!info] Examples
> {彼|かれ}は{子供|こども}==でしかない==。
> He nothing more than a child.
## に過ぎない
に{過|す}ぎない means "just", "no more than". Used for something that is not of great quality, quantity or level.
> [!info] Examples
> 彼女はただ{初心者|しょしんしゃ}==に過ぎない==。
> She's just a beginner.

View File

@ -1,13 +1,5 @@
# Opposition: although # Opposition: although
## に反して
に{反|はん}して means "contrary to". Opposes the first noun to the rest of the sentence.
> [!info] Example
> {常識|じょうしき}==に反して==、彼は{勉強|べんきょう}しなかった。
> Contrary to common sense, he did not study.
## 割に ## 割に
<div class="usage"> <div class="usage">
@ -75,7 +67,36 @@ Means "although". Puts a nuance to the first statement describing that it is not
> {彼|かれ}は{医者|いしゃ}==といっても==、あまり{頭|あたま}が{良|よ}くない。 > {彼|かれ}は{医者|いしゃ}==といっても==、あまり{頭|あたま}が{良|よ}くない。
> He may be a doctor, but he is not very smart. > He may be a doctor, but he is not very smart.
## に対して ## にも関わらず
{対|たい}して. も{関|かか}わらず means "regardless", "despite".
See [[Towards#In contrast to]].
> [!info] Example
> {危険|きけん}==にもかかわらず==、{彼|かれ}はまだそれをやった。
> Despite the danger, he still did it.
## ものの
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N + である</span></p>
</div>
<p class="right">+ ものの</p>
</div>
Means "although", "even though". It is formal. Similar to のに. The first part is positive, and the second one is negative.
> [!info] Example
> {今日|きょう}は{晴|は}れた==ものの==とても{寒|さむ}い。
> It is sunny today, but very cold.
## もっとも
Means "although", "but". Connects two phrases. Used in literature.
> [!info] Example
> 帰国するつもりです。==もっとも==時間がある場合だけど。
> I plan to return to my country. But only if I had the time...

View File

@ -49,7 +49,3 @@ Means "but", "however".
> [!info] Example > [!info] Example
> {手伝|てつだ}いたい==んですけど=={暇|ひま}はない。 > {手伝|てつだ}いたい==んですけど=={暇|ひま}はない。
> I'd like to help but I don't have time. > I'd like to help but I don't have time.
## Summing up
🛠 Todo.

View File

@ -4,10 +4,28 @@
See [[TeF (4) - even if]]. See [[TeF (4) - even if]].
## のに ## 「と・に」しても
Means "although", "even tough". See [[Considering - for - as#としても]].
See [[Connectors#のに#Even tough]]. See [[Considering - for - as#にしても]].
## たって
<div class="usage">
<div class="left">
<p><span class="box">V (た)</span></p>
<p><span class="box">い-Adj <strike></strike> くた</span></p>
<p><span class="box">な-Adj + だ</span></p>
<p><span class="box">N + だ</span></p>
</div>
<p class="right">+ って</p>
</div>
Means "even if", "even though". It has the same meaning as [[#て-form even if]].
> [!info] Example
> {今|いま}で行==ったって==、{間|ま}に{合|あ}わない。
> Even if you go now, you won't make it in time.
## それでも ## それでも
@ -17,7 +35,12 @@ Means "but still", "even so", "anyway".
> 雨が{降|ふ}っていた、==それでも==出かけていた。 > 雨が{降|ふ}っていた、==それでも==出かけていた。
> It was raining, but I still went out. > It was raining, but I still went out.
## くせ ##
Means "although", "even tough". Cannot be an hypothesis, must be a confirmed fact. This, it works with past tense.
See [[Connectors#のに#Even tough]].
## くせに・くせして
<div class="usage"> <div class="usage">
<div class="left"> <div class="left">
@ -26,14 +49,36 @@ Means "but still", "even so", "anyway".
<p><span class="box">な-Adj + な</span></p> <p><span class="box">な-Adj + な</span></p>
<p><span class="box">N + の</span></p> <p><span class="box">N + の</span></p>
</div> </div>
<p class="right">+ くせに</p> <p class="right">+ くせに・くせして</p>
</div> </div>
Means "despite", "even tough". Has a negative connotation. Means "despite", "even tough". Has a negative connotation when a situation is not what was expected. Regularly used to talk about characteristics. Like のに, cannot be an hypothesis.
くせして is more familiar than くせに.
> [!info] Example > [!info] Example
> {掃除|そうじ}すると言った==くせに==、まだ{汚|きたな}いよ。 > {掃除|そうじ}すると言った==くせに==、まだ{汚|きたな}いよ。
> You said you would clean it up, but it's still dirty. > You said you would clean it up, but it's still dirty.
>
> {子供|こども}の==くせに==、{数学|すうがく}が{得意|とくい}です。
> Despite a child, he is good at math.
## ながらも
Means "even while", "despite". It is used to express that while something is one state, something else. Cannot be used for an hypothesis: it is something that is happening right now.
See also [[Time - during#ながら]].
> [!info] Example
> {病気|びょうき}==ながらも==、パーティーに行くつもりです。
> Although I am sick, I'm planning to go to party.
## Summing up
* ==ても==, ==「と・に」しても==, ==たって== and ==それでも== have the same meaning.
* ==「と・に」しても== have a bolder meaning.
* ==それでも== breaks up the phrase.
* ==のに== cannot be used for conditional situations.
* ==くせに== talks about disappointment or characteristics.
* ==ながらも== talks about something happening right now.
## たとえ~ても ## たとえ~ても
@ -53,24 +98,6 @@ Means "even if X is the case". Used to present possibilities.
> ==たとえ=={疲|つか}れ==ても==、もうちょっと{起|お}きている。 > ==たとえ=={疲|つか}れ==ても==、もうちょっと{起|お}きている。
> Even if I'm tired, I'll stay up a little longer. > Even if I'm tired, I'll stay up a little longer.
## たって
<div class="usage">
<div class="left">
<p><span class="box">V (た)</span></p>
<p><span class="box">い-Adj <strike></strike> くた</span></p>
<p><span class="box">な-Adj + だ</span></p>
<p><span class="box">N + だ</span></p>
</div>
<p class="right">+ って</p>
</div>
Means "even if", "even though".
> [!info] Example
> {今|いま}で行==ったって==、{間|ま}に{合|あ}わない。
> Even if you go now, you won't make it in time.
## ても始まらない ## ても始まらない
ても{始|はじ}まらない means "there's no point, even if you..." ても{始|はじ}まらない means "there's no point, even if you..."
@ -99,20 +126,72 @@ It is used to talk about an unexpected result, that is contradictory to the prec
> {自転車|じてんしゃ}の{乗|の}り{方|かた}を{忘|わす}れるはありえないと{思|おも}っていた。==ところが==すっかり{忘|わす}れた。 > {自転車|じてんしゃ}の{乗|の}り{方|かた}を{忘|わす}れるはありえないと{思|おも}っていた。==ところが==すっかり{忘|わす}れた。
> I thought it was impossible to forget how to ride a bike. However, I completely forgot. > I thought it was impossible to forget how to ride a bike. However, I completely forgot.
## ながらも ## からと言って
Means "even while", "despite". It is used to express that while something is one state, something else. <div class="usage">
See also [[Time#ながら]]. <div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + だ</span></p>
<p><span class="box">N + だ</span></p>
</div>
<p class="right">+ からといって</p>
</div>
からと{言|い}って means "just because", "even if".
> [!info] Example > [!info] Example
> {病気|びょうき}==ながらも==、パーティーに行くつもりです > {年上|としうえ}だ==からといって=={正|ただ}しいとは{限|かぎ}りません
> Although I am sick, I'm planning to go to party. > Just because you're older doesn't mean you're right.
## 「と・に」しても ## ことにはならない
See [[Considering - for - as#としても]]. <div class="usage">
See [[Considering - for - as#にしても]]. <div class="left">
<p><span class="box">V + (という)</span></p>
<p><span class="box">い-Adj + という</span></p>
<p><span class="box">な-Adj + だという</span></p>
</div>
<p class="right">+ ことにはならない</p>
</div>
## Summing up Means "just because... doesn't mean that". Used at the end of a sentence.
🛠 Todo. > [!info] Example
> {卒業|そつぎょう}だからといって今すぐ{就職|しゅうしょく}できます==ことにはならい==。
> Just because you graduated doesn't mean you can get a job right away.
## とも
<div class="usage">
<div class="left">
<p><span class="box">V (おう)</span></p>
<p><span class="box">V (な<strike></strike>)く</span></p>
<p><span class="box">い-Adj + <strike></strike> + く</span></p>
</div>
<p class="right">+ とも</p>
</div>
Means "even if", "no matter". Similar to ても ([[TeF (4) - even if]]). Used in writing.
> [!info] Example
> {辛|から}く==とも==、{全部|ぜんぶ}{食|た}べるつもりであった。
> Even if it was spicy, I planned to eat it all.
## にせよ・にしろ
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N + (である)</span></p>
</div>
<p class="right">+ にせよ・にしろ</p>
</div>
Means "even if", "no matter". にせよ is more common in written form and にしろ is more common orally.
> [!info] Example
> {好|す}きじゃない==にしろ==、{野菜|やさい}を{食|た}べる{方|ほう}がいい。
> Even if you don't like it, you should eat your vegetables.

View File

@ -0,0 +1,136 @@
# Opposition
## に反して
に{反|はん}して means "contrary to". Opposes the first noun to the rest of the sentence.
> [!info] Example
> {常識|じょうしき}==に反して==、彼は{勉強|べんきょう}しなかった。
> Contrary to common sense, he did not study.
## に対して
に{対|たい}して.
See [[Towards#In contrast to]].
## 逆に
{逆|ぎゃく}に means "on the contrary". Means that it is the opposite of something else.
> [!info] Example
> {人|ひと}が{大体|だいたい}ウサギが{好|す}き==逆に=={彼|かれ}は{嫌|きら}い。
> Most people like rabbits, but on the contrary he hates them.
## かえって
Means "on the contrary", "rather". Used for bad results, contrary to what was expected.
> [!info] Example
> {薬|くすり}を{飲|の}んだら==却って=={調子|ちょうし}が{悪|わる}くなった。
> Despite drinking medicine, on the contrary my condition got worse.
## 反面
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な・である</span></p>
<p><span class="box">N + である</span></p>
</div>
<p class="right">+ 反面</p>
</div>
{反面|はんめん} means "on the other hand", "however". Has the same meaning as かえって.
Also used between two phrases as その反面.
> [!info] Example
> スープはおいしい==反面==、ちょっと{冷|つめ}たい。
> The soup is good but a bit cold.
## 一方で
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + である</span></p>
<p><span class="box">N + である</span></p>
</div>
<p class="right">+ 一方(で)</p>
</div>
{一方|いっぽう}で means "on the other hand", "on another note".
> [!info] Example
> その{犬|いぬ}は{大|おお}きい==一方で==、とても{穏|おだ}やかと{親切|しんせつ}です。
> The dog is big, but on the other hand he is very calm and kind.
## に関わらず
に{関|かか}わらず means "regardless", "no matter".
> [!info] Example
> ここは{年齢|ねんれい}==に関わらず==、{誰|だれ}でも{歓迎|かんげい}します。
> Everyone is welcome here, regardless of age.
## を問わず
を{問|と}わず means "regardless of".
Used with nouns.
> [!info] Examples
> {年齢|ねんれい}==を問わず==、{誰|だれ}でも{歓迎|かんげい}する。
> Everyone is welcome, regardless of age.
## それなのに
Means "and yet".
Used to combine two sentences, appearing at the start of the second one.
> [!info] Example
> {同僚|どうりょ}が{風邪|かぜ}をひいた。==それなのに==、{事務所|じむしょ}に{行|い}くつもりです。
> My colleague has a cold. And yet, he plans to go to the office.
## それにしても
Means "even so", "nevertheless".
> [!info] Example
> {毎日|まいにち}{頑張|がんば}る、==それにしても==まだ{下手|へた}です。
> I try my best every day, but I'm still not very good.
## はともかく
Means "setting aside", "apart from". Can be completed by として.
Used with nouns.
> [!info] Example
> この服は値段==はともかく==、完璧です。
> These clothes are perfect, regardless of their price.
## どころか
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N</span></p>
</div>
<p class="right">+ どころか</p>
</div>
Means "far from", "anything but". Negates what comes before and emphases what comes after.
> [!info] Examples
> {好|す}きな==どころか==、{事実|じじつ}は{嫌|きら}いだった。
> Far from liking it, truth is that I hated it.
## どころではない
Means "not the time for", "far from", "out of the question". Means that something is not ideal.
> [!info] Examples
> {今|いま}は{電車|でんしゃ}の{中|なか}だから、{歌|うた}う==どころではない==。
> We're on a train right now, so it's not the time to sing.

View File

@ -0,0 +1,71 @@
# Point of view
## にしたら・にすれば
Means "from the point of view of", "from the perspective of".
Used with nouns.
> [!info] Example
> {観光客|かんこうきゃく}==にしたら==、その{食|た}べ{物|もの}は{多分|たぶん}{不思議|ふしぎ}すぎる。
> For tourists, this food is probably too strange.
## にとって
Means "concerning", "regarding". Focuses on the standpoint of the preceding part. It is used for general opinions that are shared with the majority.
Used with nouns.
> [!info] Example
> 猫==にとって=={睡眠|すい|みん}は{大切|たいせつ}です。
> Sleeping is important for cats.
## の上で・上の
の{上|うえ}で・{上|うえ}の means "according to", "from the point of view of". Used for rules, information, data, etc.
Used with nouns.
> [!info] Example
> {規則|きそく}==の上で==はタバコを{吸|す}うは{禁止|きんし}です。
> According to the rules, smoking is prohibited.
## 上: from the standpoint of
Attached to a noun, {上|じょう} means "from the standpoint of".
> [!info] Example
> {法律|ほうりつ}==上==、それは{禁止|きんし}です。
> Legally, that is prohibited.
## ものがある
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
</div>
<p class="right">+ ものがある</p>
</div>
Means "there is something". Used to express subjective opinion.
> [!info] Examples
> この{車|くるま}には{怪|あや}しい==ものがある==。
> There's something suspicious about this car.
## から見ると
から{見|み}ると means "from the point of view of", "by the look of". Used for objective judgment, based on a situation.
Also used as から見れば, からみて or からみたら.
> [!info] Examples
> {先生|せんせい}==からみると==、{学生|がくせい}は{怠|なま}け{者|もの}すぎる。
> From the teacher's point of view, the students are too lazy.
## から言うと
から{言|い}うと means "from the point of view of", "by the look of". Used for more subjective judgment, so cannot be used with people.
Also used as から言えば or から言って.
> [!info] Examples
> {状況|じょうきょう}==から言うと==、{経済|けいざい}はよくない。
> Given the situation, the economy is no good.

View File

@ -7,3 +7,21 @@ Means "cannot". This form implies a strong impossibility. Used with negative ver
> [!info] Examples > [!info] Examples
> {苦|にが}い{食|たべ}べ{物|もの}は==とても==食べられ==ない==。 > {苦|にが}い{食|たべ}べ{物|もの}は==とても==食べられ==ない==。
> I cannot eat bitter food. > I cannot eat bitter food.
## ものか・もんか
<div class="usage">
<div class="left">
<p><span class="box">V (る)</span></p>
<p><span class="box">い-Adj </span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N + な</span></p>
</div>
<p class="right">+ ものか・もんか</p>
</div>
Means "there's no way it will happen", "absolutely not", "as if". Expresses disagreement or disbelief.
> [!info] Example
> こんなたくさん{家事|かじ}をする==ものか==。。。{無理|むり}です。
> There's no way I could do so much housework... It's impossible.

View File

@ -8,3 +8,24 @@ Used with verbs in dictionary form.
> [!info] Example > [!info] Example
> {説明書|せつめいしょ}を{読|よ}む==しかない==な。 > {説明書|せつめいしょ}を{読|よ}む==しかない==な。
> I guess I have no choice but to read to manual. > I guess I have no choice but to read to manual.
## よりほかない・にほかならない
<div class="usage">
<div class="">
<p><span class="box">V</span></p>
</div>
<p class="r">+ よりほかない</p>
</div>
<div class="usage">
<div class="">
<p><span class="box">N</span></p>
</div>
<p class="r">+ にほかならない</p>
</div>
Means "nothing but", "simply". This form puts more emphasis than しかない.
> [!info] Example
> {携帯|けいたい}は{壊|こわ}れていったので、{新|あたら}しいのを{買|か}う==よりほかない==。
> My phone broke, so I have no choice but to buy a new one.

View File

@ -0,0 +1,86 @@
# Possibility: options
## でも
Used to list one or more possible options.
> [!info] Example
> ジュース==でも==お茶==でも==飲もうか。
> Shall we drink something like a juice or tea?
⚠ Do not confuse with [[TeF (4) - even if#Even if ても・でも|Even if: ても・でも]].
## かどうか
Means "whether or not". It is the most common form used.
> [!info] Example
> 行きたい==かどうか=={分|わ}からない。
> I'm not sure if I want to go or not.
## か何か
か{何|なに}か means "or something".
Used with nouns.
> [!info] Example
> ジュース==か何か=={飲|の}もうか。
> Shall we drink something like a juice?
## ようか~まいか
<div class="usage">
<div class="">
<p><span class="box">V (よう)</span></p>
</div>
<p class="r">+ か + </p>
<div class="">
<p><span class="box">V</span></p>
</div>
<p class="r">+ まいか</p>
</div>
Rules for the second verb:
- **V-る**:
- dictionary (る) form + まい
- V (~~ます~~) + まい
- **V-う**: dictionary (る) form + まい
- **くる**: こまい・くるまい
- **する**: しまい・すまい・するまい
Means "whether or not". Used to consider options. Usually written, but common orally with the verb 言う.
> [!info] Example
> {雨|あめ}だ。。。行こう==か==、行く==まいか==。。。
> It's raining... Should I go or not...
## か
Means "or". Can be used when there is uncertainty between two or more choices.
See [[Question#か]].
## 又は
{又|また}は can be used for two things:
* choosing between two options ("or")
* listing two options ("both")
> [!info] Example
> 日本語==又は==英語でしゃべれます。
> I can speak both Japanese and English.
## それとも
This is used to give a choice between a limited set of two options. It is casual.
> [!info] Example
> 何が食べたい。ラーメン==それとも==カレーか。
> What do you want to eat? Ramen or curry?
## あるいは
Means "or", "perhaps". Mostly used in written form. Can be used orally, if the difference between the two options is large.
> [!info] Example
> {月曜日|げつようび}は{暇|ひま}ですか。==あるいは=={水曜日|すいようび}。
> Are you free on Monday? Or Wednesday?

View File

@ -1,24 +1,5 @@
# Possibility # Possibility
## でも
Used to list one or more possible options.
> [!info] Example
> ジュース==でも==お茶==でも==飲もうか。
> Shall we drink something like a juice or tea?
⚠ Do not confuse with [[TeF (4) - even if#Even if ても・でも]].
## か何か
か{何|なに}か means "or something".
Used with nouns.
> [!info] Example
> ジュース==か何か=={飲|の}もうか。
> Shall we drink something like a juice?
## かもしれない ## かもしれない
Express a possibility, like "perhaps". Express a possibility, like "perhaps".
@ -37,6 +18,30 @@ Can be used as もしかしたら, もしかすると and もしかして.
> ==もしかして=={今日|きょう}も{郵便局員|ゆうびんきょくいん}が来ません==かもしれない==。 > ==もしかして=={今日|きょう}も{郵便局員|ゆうびんきょくいん}が来ません==かもしれない==。
> Perhaps the postman will not come today either. > Perhaps the postman will not come today either.
## かねない
<div class="usage">
<div class="left">
<p><span class="box">V (<strike>ます</strike>)</span></p>
<p><span class="box">N + に</span></p>
</div>
<p class="right">+ かねない</p>
</div>
Means "possibly", "might", "could be". Usually used for negative outcomes. Mostly used in written language.
> [!info] Example
> この{道|みち}は{危|あぶ}ないので{事故|じこ}が{起|お}き==かねない==。
> This road is dangerous, so an accident might happen.
## 恐らく
{恐|おそ}らく means "probably", "perhaps". Placed at the beginning of a phrase. Implies a high probability.
> [!info] Example
> ==恐らく=={彼女|かのじょ}は{今日|きょう}も{来|こ}ない。
> She probably won't come today either.
## ことができる ## ことができる
Means "can", "able to". Means "can", "able to".
@ -47,20 +52,12 @@ It has the same meaning as the potential form (see Conjugation [[Basics]]).
> {英語|えいご}を{話|はな}す==ことが出来ない==。 > {英語|えいご}を{話|はな}す==ことが出来ない==。
> I cannot speak English. > I cannot speak English.
## かどうか
Means "whether or not".
> [!info] Example
> 行きたい==かどうか=={分|わ}からない。
> I'm not sure if I want to go or not.
## ないことはない ## ないことはない
<div class="usage"> <div class="usage">
<div class="left"> <div class="left">
<p><span class="box">V (ない)</span></p> <p><span class="box">V (ない)</span></p>
<p><span class="box">い-Adj <stroke></stroke> くない</span></p> <p><span class="box">い-Adj <strike></strike> くない</span></p>
<p><span class="box">な-Adj + ではない</span></p> <p><span class="box">な-Adj + ではない</span></p>
<p><span class="box">N + ではない</span></p> <p><span class="box">N + ではない</span></p>
</div> </div>
@ -73,25 +70,131 @@ Means "not impossible to", "it is not that". Used with negative forms.
> 本を{読|よ}ま==ないことはない==ですが、{最近|さいきん}は{暇|ひま}がない。 > 本を{読|よ}ま==ないことはない==ですが、{最近|さいきん}は{暇|ひま}がない。
> It's not that I don't read books, it's just that I don't have free time these days. > It's not that I don't read books, it's just that I don't have free time these days.
## ## 恐れがある
Means "or". Can be used when there is uncertainty between two or more choices. <div class="usage">
See [[Question#か]]. <div class="left">
<p><span class="box">V (る・ない)</span></p>
<p><span class="box">い-Adj </span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N + の</span></p>
</div>
<p class="right">+ 恐らくがある</p>
</div>
## 又は {恐|おそ}れがある means "there is a risk that". Used when something bad could happen.
{又|また}は can be used for two things:
* choosing between two options ("or")
* listing two options ("both")
> [!info] Example > [!info] Example
> 日本語==又は==英語でしゃべれます > また{地震|じしん}の==恐らくがある==。{気|き}を{付|つ}けて
> I can speak both Japanese and English. > There will probably be another earthquake. Please be careful.
## それとも ## ようでは
This is used to give a choice between a limited set of two options. It is casual. Means "if". Used when the result would be bad.
Used with verbs.
> [!info] Example > [!info] Example
> 何が食べたい。ラーメン==それとも==カレーか > {化|ば}け{物|もの}が{来|く}る==ようでは==、あなたを{食|た}べちゃうよ
> What do you want to eat? Ramen or curry? > If a monster comes, it will eat you.
## ものなら
<div class="usage">
<div class="">
<p><span class="box">V (potential れる)</span></p>
</div>
<p class="r">+ ものなら</p>
</div>
Means "if A were possible, then B". Implies that A is either impossible or unlikely.
> [!info] Example
> {合格|ごうかく}できる==ものなら==、{世界中|せかいじゅう}{一番|いちばん}うれしいなあ。
> If I could pass, I would be the happiest in the world (but it is unlikely I'll pass).
## ないことには~ない
<div class="usage">
<div class="left">
<p><span class="box">V (ない)</span></p>
<p><span class="box">い-Adj (ない)</span></p>
<p><span class="box">な-Adj + でない</span></p>
<p><span class="box">N + である</span></p>
</div>
<p class="right">+ ことには + </p>
<p class="box">V (ない)</p>
</div>
Means "unless you do something".
> [!info] Examples
> {運転|うんてん}{免許|めんきょ}を{持|も}った==ないことには=={運転|うんてん}できない。
> You can't drive unless you have a driving licence.
## にしろ~にしろ
<div class="usage">
<div class="">
<p><span class="box">V</span></p>
</div>
<p class="r">+ にしろ + </p>
<div class="">
<p><span class="box">V</span></p>
</div>
<p class="r">+ にしろ</p>
</div>
<div class="usage">
<div class="">
<p><span class="box">い-Adj</span></p>
</div>
<p class="r">+ にしろ + </p>
<div class="">
<p><span class="box">い-Adj</span></p>
</div>
<p class="r">+ にしろ</p>
</div>
<div class="usage">
<div class="">
<p><span class="box">な-Adj</span></p>
</div>
<p class="r">+ ことは + </p>
<div class="">
<p><span class="box">な-Adj</span></p>
</div>
<p class="r">+ にしろ</p>
</div>
<div class="usage">
<div class="">
<p><span class="box">N</span></p>
</div>
<p class="r">+ ことは + </p>
<div class="">
<p><span class="box">N</span></p>
</div>
<p class="r">+ にしろ</p>
</div>
Means "whether... or". Can be used as にせろ~にせろ or にしても~にしても, which is more formal.
> [!info] Example
> {動物|どうぶつ}==にしろ=={植物|しょくぶつ}==にしろ==、その{物質|ぶっしつ}は{危険|きけん}です。
> Whether animals or plants, the substance is dangerous.
## なくはない・なくもない
<div class="usage">
<div class="left">
<p><span class="box">V (なく<strike></strike>)</span></p>
<p><span class="box">い-Adj (く) + なく</span></p>
<p><span class="box">な-Adj + では + なく</span></p>
<p><span class="box">N + が・は・に + なく</span></p>
</div>
<p class="right">+ はない・もない</p>
</div>
Means "it's not that".
With potential form of verbs, means that something is possible, despite seeming not.
> [!info] Examples
> やる{気|き}==がなくはない==、{時間|じかん}は{少|すく}ないです。
> It's not that I don't have the will, I just don't have time.

View File

@ -88,3 +88,21 @@ This particle when added to the end of a sentence meaning "right?".
* ==でしょう==・==だろう== expresses a probability or an assumption. * ==でしょう==・==だろう== expresses a probability or an assumption.
* ==ではないか==・==じゃないか== invites or suggests an action. * ==ではないか==・==じゃないか== invites or suggests an action.
* ==ね== asks an agreement or a confirmation. * ==ね== asks an agreement or a confirmation.
## ことか
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N + である</span></p>
</div>
<p class="right">+ ことか</p>
</div>
Means "how" or "what". Used to describe an extent that is unusual or unbelievable. It is mostly used in written contexts, as it is a bit dramatic.
> [!info] Example
> フランスには、パン{屋|や}の{多|おお}さにどれほど{信|しん}じられない==ことか==。
> It's incredible how many bakeries there are in France.

View File

@ -115,60 +115,6 @@ See also [[Connectors - in order to#ために]].
> {日本|にほん}に行きたい。==そのために==、{日本語|にほんご}をちゃんと{勉強|べんきょう}しています。 > {日本|にほん}に行きたい。==そのために==、{日本語|にほんご}をちゃんと{勉強|べんきょう}しています。
> I want to go to Japan. In order to do so, I'm studying seriously. > I want to go to Japan. In order to do so, I'm studying seriously.
## せいで
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N + の</span></p>
</div>
<p class="right">+ せいで</p>
</div>
Means "because of". Mostly used for negative contexts, to blame, etc.
> [!info] Example
> あなたの==せいで=={負|ま}けた。
> We lost because of you.
## おかげで
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N + の</span></p>
</div>
<p class="right">+ おかげで</p>
</div>
Means "because of". Used for positive contexts, like "thanks to".
> [!info] Example
> あなたの==おかげで=={勝|か}った。
> We lost because of you.
## というのは
<div class="usage">
<div class="">
<p><span class="box">phrase</span></p>
</div>
<p class="r"> + というのは + </p>
<div class="">
<p><span class="box">definition</span></p>
</div>
</div>
Means "this means", "known as", "because".
> [!info] Example
> 「モバゲー」==というのは==モバイルゲームのことです。
> "Mobage" stands for mobile game.
## わけだ・わけではない ## わけだ・わけではない
<div class="usage"> <div class="usage">
@ -188,4 +134,185 @@ Means "this means", "known as", "because".
> {毎日|まいにち}{料理|りょうり}を{作|つく}るからうまくになった==わけだ==。 > {毎日|まいにち}{料理|りょうり}を{作|つく}るからうまくになった==わけだ==。
> I got good at cooking because I cook every day. > I got good at cooking because I cook every day.
See also [[Certainty#わけがない]]. See also [[Certainty#わけがない]].
## からこそ
Means "precisely because". Made with the [[🔰 Particles (2)#Because|から]] and [[🔰 Particles (2)#こそ|こそ]] particles, to emphasize the reason.
> [!info] Example
> {清潔|せいけつ}==だからこそ=={快適|かいてき}です。
> It's precisely because it's clean that it is comfortable.
⚠ Uses the same rules as [[🔰 Particles (2)#Because|から]].
## ことだから
Means "exactly because". Usually used to talk about something characteristic to someone.
Used with nouns + の.
> [!info] Example
> {彼女|かのじょ}==のことだから==、{必|かなら}ず{来|き}ます。
> It's precisely because it's her that I'm sure she'll come.
## につき
Means "due to". Used when a change happens. It is formal.
> [!info] Example
> {年次|ねんじ}{休業|きゅうぎょう}==につき==、セールが{開催|かいさい}{中|ちゅう}。
> Due to the annual closure, a sale is being held.
## もの・もん
<div class="usage">
<div class="left">
<p><span class="box">V (+ んだ)</span></p>
<p><span class="box">い-Adj (+ んだ)</span></p>
<p><span class="box">な-Adj (+ なんだ)</span></p>
<p><span class="box">N (+ なんだ)</span></p>
</div>
<p class="right">+ もの・もん</p>
</div>
Means "because". It is usually casual.
> [!info] Example
> {具合|ぐあい}が{悪|わる}い。。。{臭|くさ}い==んだもの==。
> I don't feel well... because something stinks.
## ものだから
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N + な</span></p>
</div>
<p class="right">+ ものだから・ものですから・もんだから</p>
</div>
Means "because". Used to emphasize what has been said before, the reason for something, explaining something, or giving an excuse.
> [!info] Example
> {電車|でんしゃ}{事故|じこ}があった==ものだから==、{私|わたし}は{遅|おく}れてしまった。
> There was a train accident, so I was late.
## Positive
### おかげで
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N + の</span></p>
</div>
<p class="right">+ おかげで</p>
</div>
Means "because of". Used for positive contexts, like "thanks to".
> [!info] Example
> あなたの==おかげで=={勝|か}った。
> We won because of you.
### だけあって
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N</span></p>
</div>
<p class="right">+ だけあって・だけのことはあって</p>
</div>
Means "being the case", "as expected", "precisely because". Only used for positive results.
> [!info] Examples
> {彼女|かのじょ}==だけあって==、{美|うつく}しい{服|ふく}を{着|き}た。
> As expected of her, she wore beautiful clothes.
## Negative
### せいで
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N + の</span></p>
</div>
<p class="right">+ せいで</p>
</div>
Means "because of". Mostly used for negative contexts, to blame, etc.
> [!info] Example
> あなたの==せいで=={負|ま}けた。
> We lost because of you.
### ばかりに
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な</span></p>
<p><span class="box">N</span></p>
</div>
<p class="right">+ ばかりに</p>
</div>
Means "simply because". Usually used for negative results.
> [!info] Example
> {彼|かれ}はたった{一|ひと}つミスをした==ばかりに=={解雇|かいこ}されました。
> He was fired after making only one mistake.
## Since... it's obvious that...
All three patterns mean "because A... obviously B". They have slight differences.
Used when talking about things like decision, judgement, etc.
### 上は
{上|うえ}は is the most formal form.
Used with verbs (る, た forms).
> [!info] Example
> {先生|せんせい}が{言|い}った==上は=={必|かなら}ずする。
> Since the teacher said it, I will definitely do it.
### 以上は
<div class="usage">
<div class="left">
<p><span class="box">V</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + である</span></p>
<p><span class="box">N + である</span></p>
</div>
<p class="right">+ 以上は</p>
</div>
{以上|いじょう}は is formal.
Only with this form, both parts of the sentence can talk about different persons.
> [!info] Example
> {彼|かれ}がまだ{来|き}ません==以上は==、{今|いま}{帰|かえ}ります。
> Since he still have not come, I'm going home now.
### からには
It is used in conversations. Can only be used for talking about oneself. Generally used for positive results.
Used with verbs.
> [!info] Examples
> お{金|かね}がある==からには==、いい{家|いえ}を{買|か}うつもりです。
> Since I have money, I plan to buy a nice house.

View File

@ -2,7 +2,7 @@
## てください ## てください
It is a polite request that is translated as "please do". See Conjugation [[Basics]] ("command"). It is a polite request that is translated as "please do".
In casual speech, can be shortened to て. In casual speech, can be shortened to て.
> [!info] Example > [!info] Example
@ -49,8 +49,17 @@ It is used with verbs by removing the ます and adding なさい. In casual con
## ように言う ## ように言う
<div class="usage">
<p class="r">V +</p>
<div class="">
<p><span class="box">ように</span></p>
</div>
<p class="r">+ V 「言う・命じる・頼む・...」</p>
</div>
It means "to tell", "to request", "to order". It means "to tell", "to request", "to order".
It is form by added ように{言|い}う to a verb. The verb {頼|たの}む can be used for requests, while {命|めい}じる can be used for order. The verb {言|い}う can tell the three meanings depending on the tone.
The verb {頼|たの}む can be used for requests, while {命|めい}じる can be used for order. The verb {言|い}う can tell the three meanings depending on the tone. Other similar verbs can be used ({注意|ちゅうい}する, {進|すす}む, etc).
> [!info] Example > [!info] Example
> {子供|こども}にお{菓子|か|し}を食べない==ように言った==。 > {子供|こども}にお{菓子|か|し}を食べない==ように言った==。

View File

@ -73,6 +73,14 @@ Used with verbs that expresses change.
> {禁煙|きんえん}の{場所|ばしょ}は{増|ふ}えている==一方です==。 > {禁煙|きんえん}の{場所|ばしょ}は{増|ふ}えている==一方です==。
> The number of places where smoking is prohibited keeps increasing. > The number of places where smoking is prohibited keeps increasing.
## ばかりだ
Means "to continue to", in a negative direction. Used with verbs in the dictionary form (る), that describe a form of change. Can also be used as ばっかり, ばっか, ばかし, and ばっかし instead of ばかり.
> [!info] Examples
> {病気|びょうき}は{悪|わる}くなる==ばかりです==。
> The illness is only getting worse.
## 結果 ## 結果
<div class="usage"> <div class="usage">

View File

@ -8,10 +8,28 @@
> 日本==と言えば==、富士山です。 > 日本==と言えば==、富士山です。
> Speaking of Japan, Mount Fuji comes to mind. > Speaking of Japan, Mount Fuji comes to mind.
## というのは
<div class="usage">
<div class="">
<p><span class="box">phrase</span></p>
</div>
<p class="r"> + というのは + </p>
<div class="">
<p><span class="box">definition</span></p>
</div>
</div>
Means "this means", "known as", "because".
> [!info] Example
> 「モバゲー」==というのは==モバイルゲームのことです。
> "Mobage" stands for mobile game.
## において・における ## において・における
Means "in", "at", "regarding". Means "in", "at", "regarding".
Used with nouns. Is used in formal language. Used with nouns. It is used in formal language.
> [!info] Example > [!info] Example
> {冬|ふゆ}==において=={雪|ゆき}が{降|ふ}る。 > {冬|ふゆ}==において=={雪|ゆき}が{降|ふ}る。
@ -29,6 +47,38 @@ Used with nouns.
> {面接|めんせつ}==について==はいつがよろしいでしょうか。 > {面接|めんせつ}==について==はいつがよろしいでしょうか。
> Regarding the interview, when would be a good time? > Regarding the interview, when would be a good time?
## をめぐって
<div class="usage">
<div class="">
<p><span class="box">N</span></p>
</div>
<p class="r">+ をめぐって</p>
</div>
<div class="usage">
<div class="">
<p><span class="box">N</span></p>
</div>
<p class="r">+ をめぐる +</p>
<div class="">
<p><span class="box">N</span></p>
</div>
</div>
Means "concerning", "in regard to". It has the same meaning as について.
> [!info] Example
> 田中さん==をめぐって==、いろんな{噂|うわさ}がある。
> There are many rumours concerning Tanaka-san.
## というものだ
Means "concerning", "something called". Used for explanations or morals.
> [!info] Example
> これはノートパソコン==というものだ==。
> This is what we call a laptop.
## に関する・に関して ## に関する・に関して
に{関|かん}する・に{関|かん}して means "related to", "about". More formal than について. に{関|かん}する・に{関|かん}して means "related to", "about". More formal than について.
@ -46,6 +96,16 @@ Means "in other words". Used after a first phrase for an alternative explanation
> この{映画|えいが}は120分、==つまり==2時です。 > この{映画|えいが}は120分、==つまり==2時です。
> This movie is 120 minutes, that is to say 2 hours. > This movie is 120 minutes, that is to say 2 hours.
## ということは
Means "that is to say", "in other words". Used when the answer needs thinking. つまり is more direct.
> [!info] Example
> A: あの{人|ひと}はわたしの{父|ちち}の{妹|いもうと}んです。
> B: ==ということは==、あなたのおばさんですね。
> A: She's my father's sister.
> B: That means she's your aunt, right.
## すなわち ## すなわち
Means "in other words". More formal than つまり. Means "in other words". More formal than つまり.
@ -54,6 +114,14 @@ Means "in other words". More formal than つまり.
> この{映画|えいが}は120分、==すなわち==2時です。 > この{映画|えいが}は120分、==すなわち==2時です。
> This movie is 120 minutes, that is to say 2 hours. > This movie is 120 minutes, that is to say 2 hours.
## 要するに
{要|よう}するに means "in summary". It is placed at the beginning of the sentence.
> [!info] Example
> ==要するに==、新しい仕事に就きました。
> In summary, I got a new job.
## にかけて ## にかけて
Means "through", "concerning". It is used for something that happens over a period of time. Means "through", "concerning". It is used for something that happens over a period of time.
@ -75,15 +143,6 @@ Used with nouns.
> フランスの文化はパン==をはじめ==、ワインも{人気|にんき}です。 > フランスの文化はパン==をはじめ==、ワインも{人気|にんき}です。
> French culture is popular not only for bread, but also for wine. > French culture is popular not only for bread, but also for wine.
## にとって
Means "concerning", "regarding". Focuses on the standpoint of the preceding part.
Used with nouns.
> [!info] Example
> 猫==にとって=={睡眠|すい|みん}は{大切|たいせつ}です。
> Sleeping is important for cats.
## なんか・なんて ## なんか・なんて
Means "such as", "things like". It is used to give examples or to show emphasis. Means "such as", "things like". It is used to give examples or to show emphasis.
@ -101,3 +160,38 @@ Means "such as", "things like". It is used to give examples or to show emphasis.
> [!info] Example > [!info] Example
> {虫|むし}が{好|すき}きです。==例えば=={蝉|せみ}です。 > {虫|むし}が{好|すき}きです。==例えば=={蝉|せみ}です。
> I like insect. For example, cicadas. > I like insect. For example, cicadas.
## ものだ・ものではない
<div class="usage">
<div class="left">
<p><span class="box">V (る・ない)</span></p>
<p><span class="box">い-Adj </span></p>
<p><span class="box">な-Adj</span></p>
</div>
<p class="right">+ ものだ・ものではない</p>
</div>
ものだ is used when something is common knowledge, custom, etc. That it is something that is natural or expected.
ものではない is used for something that is not expected.
> [!info] Example
> {車|くるま}はいつも{高|たか}い==ものだ==。
> Cars are always expensive.
## というふうに
Means "as if to say", "in such a way that", "like". Used to describe the manner in which something is done, give examples.
> [!info] Examples
> {彼|かれ}は{泥棒|どろぼう}==というふうに=={立|た}ち{去|さ}ってしました。
> He departed like a thief.
## ふうに
Means "in the way of".
Used after words like こんな, そんな, あんな, どんな and verbs.
> [!info] Examples
> こんな==ふうに==はだめ!
> Do not do it like this!

View File

@ -0,0 +1,19 @@
# Thanks
## せっかく
Means "with trouble", "thank you for the trouble", etc.
Used at the beginning of a phrase.
> [!info] Example
> ==せっかく==ケーキを{持|も}てきてくれてありがとう。
> Thank you for bringing the cake.
## 幸い・幸いなことに
{幸|さいわ}い・{幸|さいわ}いなことに means "luckily", "fortunately".
Used at the beginning of a phrase.
> [!info] Example
> ==幸い==、{一番|いちばん}{欲|ほ}しかったガシャポンが{手|て}に{入|い}れった。
> Luckily, I got the gashapon I wanted the most.

View File

@ -0,0 +1,81 @@
# Time - close
## ところ
Means "just about to". Used when describing what we're about to do. Can also mean "just after something happened".
Used by combining to a verb.
> [!info] Example
> 今ご{飯|はん}を作る==ところ==です。
> I'm about to make dinner.
## かと思ったら
かと{思|おも}ったら means "just when".
Can also be used as かと思うと and かと思えば.
Used with a verb in the past (た) form.
> [!info] Examples
> スーパーに{行|い}った==かと思ったら==、{雪|ゆき}が{降|ふ}り{出|だ}した。
> Just as I went to the supermarket, it started snowing.
## か~ないかのうちに
<div class="usage">
<div class="">
<p><span class="box">V (る)</span></p>
</div>
<p class="r">+ か +</p>
<div class="">
<p><span class="box">V (ない)</span></p>
</div>
<p class="r">+ か + のちに</p>
</div>
か~ないかのうちに means "right after", "as soon as". It is formal.
> [!info] Examples
> {彼|かれ}は{電車|でんしゃ}が{駅|えき}に{着|つ}く==か=={着|つ}かない==かのうちに=={走|はし}り{始|はじ}めた。
> He started running as soon as the train arrived at the station.
## 次第
{次第|しだい} means "as soon as". Made by removing the ます stem of a verb.
> [!info] Examples
> {食|たべ}べ==次第==、オフィスに行ってください。
> As soon as you've eaten, please go to the office.
With に at the end, it means "gradually".
> [!info] Examples
> {彼|かれ}は==次第に=={上手|じょうず}になってきた。
> He's gradually gotten better.
## 直ちに
{直|ただ}ちに means "immediately", "at once".
> [!info] Examples
> ==直ちに=={出|で}かけなきゃ!
> I need to get going right now!
## ところに
Means "at the time", "when", "while", "just as". Used with verbs in the ている form.
Focuses on the scene or situation rather than the action.
> [!info] Examples
> ばかばかしいことをしていた==ところに==、{先輩|せんぱい}{入|はい}りました。
> While I was doing something stupid, my senior came in.
## 一気に
{一気|いっき}に means "at once", "all at once" and "instantly", "right away".
> [!info] Examples
> ==一気に=={全部|ぜんぶ}{食|た}べちゃった。
> I ate it all in one go.
>
> {彼|かれ}を{叱|しか}った{後|あと}で、==一気に=={止|や}めました。
> After scolding him, he stopped right away.

View File

@ -37,7 +37,7 @@ Can also be used to talk about a distance between two physical places or the tim
A first meaning is similar to {間|あいだ} (while), but with intentionality. A first meaning is similar to {間|あいだ} (while), but with intentionality.
> [!info] Example > [!info] Example
> 電車に{乗|の}っ==間に==、本を読みました。 > 電車に{乗|の}っている==間に==、本を読みました。
> While I was on the train, I read a book. > While I was on the train, I read a book.
A second meaning is a statement of something that happened during a time period, independently of your actions. A second meaning is a statement of something that happened during a time period, independently of your actions.
@ -56,7 +56,7 @@ Contrary to 間, it doesn't include the whole time period. So 間に means that
<p class="r"> + ながら + ...</p> <p class="r"> + ながら + ...</p>
</div> </div>
Means "while", "simultaneously". The difference with ついでに is that here the main action is the second one. Means "while", "simultaneously". The difference with ついでに is that here the main action is the second one. Happens at the same time.
> [!info] Example > [!info] Example
> {歩|ある}き==ながら=={電話|でん|わ}を見ています。 > {歩|ある}き==ながら=={電話|でん|わ}を見ています。
@ -73,12 +73,30 @@ Means "while", "simultaneously". The difference with ついでに is that here t
<p class="right">+ ついでに</p> <p class="right">+ ついでに</p>
</div> </div>
Means "while", "at the same time". The difference with ながら is that here the main action is the first one. Means "while", "at the same time". The difference with ながら is that here the main action is the first one. An opportunity of doing something during the occurrence of the first one (but not for the entire time).
> [!info] Example > [!info] Example
> スーパーに行く==ついでに==、おにぎりを{買|か}ってくれませんか。 > スーパーに行く==ついでに==、おにぎりを{買|か}ってくれませんか。
> While you're going to the supermarket, could you bring onigiri? > While you're going to the supermarket, could you bring onigiri?
## と同時に
<div class="usage">
<div class="left">
<p><span class="box">V (る)</span></p>
<p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + である</span></p>
<p><span class="box">N</span></p>
</div>
<p class="right">+ と同時に</p>
</div>
と{同時|どうじ}に means "at the same time as", "while". Contrary to ながら, it is used for something that happens at a precise moment, not during the whole time.
> [!info] Example
> {電車|でんしゃ}に{乗|の}っている==と同時に==、おじいさんが{落|お}ちた。
> While on the train, an old man fell off.
## 中 ## 中
{中|ちゅう}・{中|じゅう} means different things depending on its pronunciation: {中|ちゅう}・{中|じゅう} means different things depending on its pronunciation:
@ -110,6 +128,25 @@ Means "while". The nuance is that the time is optimal and should be taken advant
> {晴|は}れる==うちに=={散歩|さんぽ}しましょう。 > {晴|は}れる==うちに=={散歩|さんぽ}しましょう。
> Let's take a walk while the weather is nice. > Let's take a walk while the weather is nice.
## 限り
<div class="usage">
<div class="left">
<p><span class="box">V (る・た・ない・ている・)</span></p>
<p><span class="box">N + である</span></p>
</div>
<p class="right">+ 限り</p>
</div>
{限|かぎ}り means "as long as", "while". Also means "limited to".
> [!info] Example
> この{映画|えいが}は{来週|らいしゅう}==限り=={劇場|げきじょう}で{上映|じょうえい}されます。
> This movie will be in theaters the next week only.
>
> {仕事|しごと}を{真面目|まじめ}にする==限り==、{大丈夫|だいじょうぶ}。
> As long as you're serious doing your job, it will be fine.
## 途中で・途中に ## 途中で・途中に
<div class="usage"> <div class="usage">

View File

@ -2,7 +2,8 @@
## やっと ## やっと
Means that something happened at last. More rarely means "barely". Means that something happened at last, with efforts. More rarely means "barely".
Used at the beginning of a phrase.
> [!info] Example > [!info] Example
> ==やっと=={論文|ろん|ぶん}を書き{終|お}わった。 > ==やっと=={論文|ろん|ぶん}を書き{終|お}わった。
@ -10,8 +11,50 @@ Means that something happened at last. More rarely means "barely".
## ついに ## ついに
Means "finally", "at last". Something happened after working to accomplish the goal. Means "finally", "at last". Something happened after working to accomplish the goal. Positive implications.
Used at the beginning of a phrase.
> [!info] Example > [!info] Example
> ==ついに== {新|あたら}しい{地下鉄|ちかてつ}が{出来上|で|き|あ}がった。 > ==ついに== {新|あたら}しい{地下鉄|ちかてつ}が{出来上|で|き|あ}がった。
> At last, the new subway was completed. > At last, the new subway was completed.
## あげく
<div class="usage">
<div class="left">
<p><span class="box">V (た)</span></p>
<p><span class="box">N + の</span></p>
</div>
<p class="right">+ あげく</p>
</div>
Means "in the end", "finally". Implies a negative result, despite effort given.
> [!info] Examples
> {一緒|いっしょ}に{暮|く}らした==あげく==、{別|わか}れることに{決|き}めました。
> After living together, we decided to break up.
## いよいよ
Means "finally". Explains that something finally happened (after preparation, waiting, etc).
Used at the beginning of a phrase.
> [!info] Examples
> ==いよいよ=={作|つく}り{終|お}わりました。
> I finally finished it.
## 末に
<div class="usage">
<div class="left">
<p><span class="box">V (た)</span></p>
<p><span class="box">N + の</span></p>
</div>
<p class="right">+ 末に</p>
</div>
{末|すえ}に means "finally". Focuses on the end of the preparation.
> [!info] Examples
> ==末に=={準備|じゅんび}を{終|お}わりました。
> Finally, I finished the preparations.

View File

@ -50,5 +50,21 @@ The way the intervals are counted between these two grammar structure is differe
> 1日==おきに== =2日==ごとに== = every other day = every second day > 1日==おきに== =2日==ごとに== = every other day = every second day
> ●○●○●○● > ●○●○●○●
> >
> 2日==おきに== =3日==ごとに== (every three days = every third day) > 2日==おきに== =3日==ごとに== = every three days = every third day
> ●○○●○○●○○● > ●○○●○○●○○●
## につけ
<div class="usage">
<div class="left">
<p><span class="box">V (る)</span></p>
<p><span class="box">N</span></p>
</div>
<p class="right">+ につけ・につけて</p>
</div>
Means "every time", "whenever". Formal and rarely used nowadays.
> [!info] Examples
> 私が{掃除機|そうじき}を{使|つか}う==につけ==、うちの{犬|いぬ}が{怖|こわ}がります。
> Every time I use the vacuum cleaner, my dog is scared.

View File

@ -16,6 +16,14 @@ This means "suddenly", "unexpectedly", "unintentionally". Emphasis is on the lac
> ==ふと=={通|とお}りに1000円を{見|み}つけた。 > ==ふと=={通|とお}りに1000円を{見|み}つけた。
> I found 1000 yen on the street by chance. > I found 1000 yen on the street by chance.
## いきなり
Means "suddenly". Used before a phrase containing an action. It implies something that is more surprising than with 急に, puts more emotion into it.
> [!info] Examples
> ==いきなり=={雨|あめ}が{降|ふ}ってきた。
> It suddenly started raining.
## たとたん ## たとたん
Means "just as". Used for an action that happens just at the moment something else occurs. Can convey a nuance of something unexpected or surprising. Means "just as". Used for an action that happens just at the moment something else occurs. Can convey a nuance of something unexpected or surprising.

View File

@ -0,0 +1,18 @@
# Time - throughout
## から〜にかけて
Means "through", "from... until". Indicates that something happens over a period of time.
> [!info] Example
> {朝|あさ}==から=={夜|よる}==にかかて==ゲームしたい。
> I want to play games from morning to night.
## にわたって
Means "throughout", "over (a period)". It is formal.
Used with nouns.
> [!info] Example
> {今日|きょう}==にわたって=={不運|ふうん}だった。
> I've had bad luck throughout the day.

View File

@ -44,15 +44,6 @@ Used by combining to a verb.
> {時々|とき|どき}パリへ行く==ことがある==。 > {時々|とき|どき}パリへ行く==ことがある==。
> I sometimes go to Paris. > I sometimes go to Paris.
## ところ
Means "just about to". Used when describing what we're about to do.
Used by combining to a verb.
> [!info] Example
> 今ご{飯|はん}を作る==ところ==です。
> I'm about to make dinner.
## から~まで ## から~まで
See から: [[🔰 Particles (2)#From, since]] (from). See から: [[🔰 Particles (2)#From, since]] (from).
@ -158,13 +149,22 @@ Used with nouns measuring time.
> {年|ねん}==ぶりに==ブラジルを{戻|もど}ります。 > {年|ねん}==ぶりに==ブラジルを{戻|もど}ります。
> For the first time in 3 years, I'm returning to Brazil. > For the first time in 3 years, I'm returning to Brazil.
## から〜にかけて ## に先立ち
Means "through", "from... until". Indicates that something happens over a period of time. <div class="usage">
<div class="left">
<p><span class="box">V (る)</span></p>
<p><span class="box">N</span></p>
</div>
<p class="right">+ に先立ち・に先立って</p>
</div>
> [!info] Example に{先|さき}{立|だ}ち means "before", "prior to". It is formal.
> {朝|あさ}==から=={夜|よる}==にかかて==ゲームしたい。 Also used as に先立つ when a second noun follows a first one.
> I want to play games from morning to night.
> [!info] Examples
> {初|はじ}める==に先立って==、{準備|じゅんび}しないといけない。
> Before starting, you need to prepare.
## 上で ## 上で
@ -181,3 +181,61 @@ Means "through", "from... until". Indicates that something happens over a period
> [!info] Examples > [!info] Examples
> {面接|めんせつ}の==上で==、{連絡|れんらく}します。 > {面接|めんせつ}の==上で==、{連絡|れんらく}します。
> We will contact you after the interview. > We will contact you after the interview.
## にあたって
<div class="usage">
<div class="left">
<p><span class="box">V (る)</span></p>
<p><span class="box">N</span></p>
</div>
<p class="right">+ にあたって</p>
</div>
Means "at the time of", "on the occasion of". It is formal. Used when talking about the preparation.
Can also be used as にあたり.
Used with verbs and nouns.
> [!info] Examples
> {試験|しけん}を{受|う}ける==にあたって==、{鉛筆|えんぴつ}と{消|け}しゴムを{持|も}ってきてください。
> Please bring a pencil and an eraser in preparation for the test.
## に際して
<div class="usage">
<div class="left">
<p><span class="box">V (る)</span></p>
<p><span class="box">N</span></p>
</div>
<p class="right">+ に際して</p>
</div>
に{際|さい}して means "at the time of", "on the occasion of". It is formal. Used when talking about the moment of the situation.
> [!info] Examples
> {試験|しけん}を{受|う}ける==に際して==、{静|しず}かにしてください。
> During the test, please be quiet.
## とっくに
Means "long ago", "a long time ago".
> [!info] Examples
> {彼女|かのじょ}は==とっくに=={帰|かえ}ってしまった。
> She went home long ago.
## やがて
Means "before long", "eventually".
> [!info] Examples
> ==やがて==この{新|あたら}しいゲームは{売|う}り{出|だ}すはずです。
> This new game should be put on sale soon.
## ところだった
Means "almost", "about to", "almost happened". Used with a dictionary form verb (る) by adding ところだった.
> [!info] Examples
> {車|くるま}の{事故|じこ}が{起|お}こる==ところだった==。{無事|ぶじ}よかった。
> A car accident almost happened. Thankfully we're safe.

View File

@ -19,6 +19,14 @@ Used with nouns.
> この{建物|たてもの}は{南|みなみ}==向き==です。 > この{建物|たてもの}は{南|みなみ}==向き==です。
> This building is facing south. > This building is facing south.
## に向かって・に向けて
に{向|む}かって means "to face", "towards".
> [!info] Example
> {今|いま}{名古屋|なごや}==に向かっています==。
> I'm heading towards Nagoya now.
## を中心に ## を中心に
を{中心|ちゅう|しん}に means "mainly", "focused on". を{中心|ちゅう|しん}に means "mainly", "focused on".
@ -48,7 +56,7 @@ Used with a noun.
<div class="left"> <div class="left">
<p><span class="box">V + の</span></p> <p><span class="box">V + の</span></p>
<p><span class="box">い-Adj</span></p> <p><span class="box">い-Adj</span></p>
<p><span class="box">な-Adj + な + の</span></p> <p><span class="box">な-Adj + (な + の)</span></p>
<p><span class="box">N + な + の</span></p> <p><span class="box">N + な + の</span></p>
</div> </div>
<p class="right">+ に対して</p> <p class="right">+ に対して</p>

View File

@ -9,12 +9,78 @@ It is a bit more casual than ずに.
> {勉強|べんきょう}し==ないで=={卒業|そつぎょう}した。 > {勉強|べんきょう}し==ないで=={卒業|そつぎょう}した。
> I graduated without studying. > I graduated without studying.
## ず ## ず(に)
Means "without doing". Formed with a verb in the negative tense (ない) by removing the -ない stem and adding ず. Means "without doing". Formed with a verb in the negative tense (ない) by removing the -ない stem and adding ず(に).
する transforms to せずに. する transforms to せずに.
It is a bit more formal than ないで. It is a bit more formal than ないで. Used more often in written form than ないで.
> [!info] Example > [!info] Example
> 毎日食べ==ずに==出かける。 > 毎日食べ==ずに==出かける。
> Everyday, I go out without eating. > Everyday, I go out without eating.
## ずに済む・なくて済む
<div class="usage">
<div class="">
<p><span class="box">V-<strike>ない</strike></span></p>
</div>
<p class="r">+ ずに済む</p>
</div>
<div class="usage">
<div class="">
<p><span class="box">V-ない</span></p>
</div>
<p class="r">+ なくて済む</p>
</div>
<div class="usage">
<div class="">
<p><span class="box">V-ない</span></p>
</div>
<p class="r">+ で済む</p>
</div>
ずに{済|す}む and なくて{済|す}む mean "get by without doing". Used with a negative verb.
> [!info] Example
> {天才|てんさい}ので、彼は{勉強|べんきょう}==せずに済んだ=={合格|ごうかく}できました。
> He passed the exam without having to study, since he's a genius.
## ことなく
Means "without doing". Implies that it is regretful that it happened.
Used with a verb (dictionary form).
> [!info] Example
> {私|わたし}が{作|つく}ったケーキを{食|た}べる==ことなく=={友達|ともだち}は{帰|かえ}ってしまた。
> My friend went home without eating the cake I made.
## 抜きで・抜きにして
{抜|ぬ}きにして・{抜|ぬ}きで means "without".
Used with nouns.
> [!info] Example
> {彼女|かのじょ}==抜きで==何もできない。
> I can't do anything without her.
## もかまわず
<div class="usage">
<div class="">
<p><span class="box">V + の</span></p>
</div>
<p class="r">+ も構わず</p>
</div>
<div class="usage">
<div class="">
<p><span class="box">N</span></p>
</div>
<p class="r">+ も構わず</p>
</div>
も{構|かま}わず means "without worrying about".
> [!info] Example
> {未来|みらい}==も構わず==、{全然|ぜんぜん}{勉強|べんきょう}した。
> Without worrying about the future, I didn't studied at all.

View File

@ -14,7 +14,7 @@ When a sentence is negative, は is usually used instead of が and を.
> 肉==は==食べません。 > 肉==は==食べません。
> I don't eat meat. > I don't eat meat.
When used with a noun that is a number or an amount, it takes the meaning of "at least" or "around". Can be mixed with [[Amount#くらい]]. When used with a noun that is a number or an amount, it takes the meaning of "at least" or "around". Can be mixed with [[Amounts#くらい・ぐらい]].
> [!info] Example > [!info] Example
> {毎週|まいしゅう}{回|かい}==は=={映画館|えいがかん}に行きます。 > {毎週|まいしゅう}{回|かい}==は=={映画館|えいがかん}に行きます。
@ -37,7 +37,7 @@ It is also used for making a contrast.
In a noun modifying clause, は becomes が. In a noun modifying clause, は becomes が.
> [!info] Example > [!info] Example
> {彼|かれ}はラメんを{作|つく}。 > {彼|かれ}はラメんを{作|つく}った
> He made ramen. > He made ramen.
> >
> {彼|かれ}==が=={作|つく}ったラメんはおいしいです。 > {彼|かれ}==が=={作|つく}ったラメんはおいしいです。
@ -62,7 +62,7 @@ The first sentence would most likely be the answer to "where are you from?", whi
This particle is used for the target of the action of a verb. This particle is used for the target of the action of a verb.
> [!info] Examples > [!info] Examples
> ケーキ==を==る。 > ケーキ==を=={作|つく}る。
> I prepare a cake. > I prepare a cake.
## に ## に

View File

@ -44,7 +44,7 @@ Means "until" or "to".
These two particles are frequently used together. It means "from X to Y". These two particles are frequently used together. It means "from X to Y".
> [!info] Example > [!info] Example
> {朝|あさ}に6時==から==7時==まで==電車で{通|かよ}うっています。 > {朝|あさ}に6時==から==7時==まで=={電車|でんしゃ}で{通|かよ}うっています。
> I commute by train from 6am to 7am. > I commute by train from 6am to 7am.
## っけ ## っけ
@ -73,7 +73,7 @@ Used with nouns.
⚠ Replaces the を and が particle. It is, in a certain way, a stronger way than が to highlight information. ⚠ Replaces the を and が particle. It is, in a certain way, a stronger way than が to highlight information.
> [!info] Example > [!info] Example
> {今年|ことし}==こそ=={日本|にほん}{住|す}む。 > {今年|ことし}==こそ=={日本|にほん}{住|す}む。
> This year, for sure I'll live in Japan. > This year, for sure I'll live in Japan.
## さえ ## さえ
@ -96,6 +96,24 @@ Means "even", "not even" (with negative verbs).
⚠ With conditional verbs, it means "only". See [[State#さえ~ば]]. ⚠ With conditional verbs, it means "only". See [[State#さえ~ば]].
## にて
This particle is a formal version of [[🔰 Particles (1)#で]], and is used the same way.
> [!info] Example
> {電話|でんわ}==にて=={連絡|れんらく}ください。
> Please contact us by phone.
## より
It is a more formal form of から ([[#From, since]]).
> [!info] Example
> 明日==より=={毎日|まいにち}{運動|うんどう}するつもりです。
> Starting tomorrow, I'm going to exercise every day.
Do not confuse with [[Comparison#より]].
## Sentence ending ## Sentence ending
At the end of a sentence, some particles can be added to put emphasis on a meaning. At the end of a sentence, some particles can be added to put emphasis on a meaning.

7
custom/compose.yaml Normal file
View File

@ -0,0 +1,7 @@
services:
web:
image: quartz-jpg
container_name: quartz-jpg
ports:
- "8080:80"

View File

@ -1,14 +0,0 @@
version: '3.4'
services:
quartz:
image: quartz-jpg
build:
context: .
dockerfile: Dockerfile
environment:
NODE_ENV: production
container_name: quartz-jpg-container
restart: always
ports:
- 8080:8080

3
custom/init-repos.sh Normal file
View File

@ -0,0 +1,3 @@
git remote add content https://git.marchal.dev/keb/jpg-content.git
git remote add convert-furigana https://git.marchal.dev/keb/jpg-convert-furigana.git
git remote add convert-usage https://git.marchal.dev/keb/jpg-convert-usage.git

13
custom/nginx/default.conf Normal file
View File

@ -0,0 +1,13 @@
server {
listen 80;
listen [::]:80;
server_name localhost;
root /usr/share/nginx/html;
index index.html
error_page 404 /404.html;
location / {
try_files $uri $uri.html $uri/ =404;
}
}

View File

@ -129,11 +129,11 @@ export default (() => {
return <button id="btn">Click me</button> return <button id="btn">Click me</button>
} }
YourComponent.beforeDOM = ` YourComponent.beforeDOMLoaded = `
console.log("hello from before the page loads!") console.log("hello from before the page loads!")
` `
YourComponent.afterDOM = ` YourComponent.afterDOMLoaded = `
document.getElementById('btn').onclick = () => { document.getElementById('btn').onclick = () => {
alert('button clicked!') alert('button clicked!')
} }
@ -161,6 +161,18 @@ document.addEventListener("nav", () => {
}) })
``` ```
You can also add the equivalent of a `beforeunload` event for [[SPA Routing]] via the `prenav` event.
```ts
document.addEventListener("prenav", () => {
// executed after an SPA navigation is triggered but
// before the page is replaced
// one usage pattern is to store things in sessionStorage
// in the prenav and then conditionally load then in the consequent
// nav
})
```
It is best practice to track any event handlers via `window.addCleanup` to prevent memory leaks. It is best practice to track any event handlers via `window.addCleanup` to prevent memory leaks.
This will get called on page navigation. This will get called on page navigation.
@ -180,7 +192,7 @@ export default (() => {
return <button id="btn">Click me</button> return <button id="btn">Click me</button>
} }
YourComponent.afterDOM = script YourComponent.afterDOMLoaded = script
return YourComponent return YourComponent
}) satisfies QuartzComponentConstructor }) satisfies QuartzComponentConstructor
``` ```

View File

@ -25,10 +25,11 @@ The following sections will go into detail for what methods can be implemented f
- `BuildCtx` is defined in `quartz/ctx.ts`. It consists of - `BuildCtx` is defined in `quartz/ctx.ts`. It consists of
- `argv`: The command line arguments passed to the Quartz [[build]] command - `argv`: The command line arguments passed to the Quartz [[build]] command
- `cfg`: The full Quartz [[configuration]] - `cfg`: The full Quartz [[configuration]]
- `allSlugs`: a list of all the valid content slugs (see [[paths]] for more information on what a `ServerSlug` is) - `allSlugs`: a list of all the valid content slugs (see [[paths]] for more information on what a slug is)
- `StaticResources` is defined in `quartz/resources.tsx`. It consists of - `StaticResources` is defined in `quartz/resources.tsx`. It consists of
- `css`: a list of URLs for stylesheets that should be loaded - `css`: a list of CSS style definitions that should be loaded. A CSS style is described with the `CSSResource` type which is also defined in `quartz/resources.tsx`. It accepts either a source URL or the inline content of the stylesheet.
- `js`: a list of scripts that should be loaded. A script is described with the `JSResource` type which is also defined in `quartz/resources.tsx`. It allows you to define a load time (either before or after the DOM has been loaded), whether it should be a module, and either the source URL or the inline content of the script. - `js`: a list of scripts that should be loaded. A script is described with the `JSResource` type which is also defined in `quartz/resources.tsx`. It allows you to define a load time (either before or after the DOM has been loaded), whether it should be a module, and either the source URL or the inline content of the script.
- `additionalHead`: a list of JSX elements or functions that return JSX elements to be added to the `<head>` tag of the page. Functions receive the page's data as an argument and can conditionally render elements.
## Transformers ## Transformers
@ -37,7 +38,7 @@ Transformers **map** over content, taking a Markdown file and outputting modifie
```ts ```ts
export type QuartzTransformerPluginInstance = { export type QuartzTransformerPluginInstance = {
name: string name: string
textTransform?: (ctx: BuildCtx, src: string | Buffer) => string | Buffer textTransform?: (ctx: BuildCtx, src: string) => string
markdownPlugins?: (ctx: BuildCtx) => PluggableList markdownPlugins?: (ctx: BuildCtx) => PluggableList
htmlPlugins?: (ctx: BuildCtx) => PluggableList htmlPlugins?: (ctx: BuildCtx) => PluggableList
externalResources?: (ctx: BuildCtx) => Partial<StaticResources> externalResources?: (ctx: BuildCtx) => Partial<StaticResources>
@ -85,8 +86,10 @@ export const Latex: QuartzTransformerPlugin<Options> = (opts?: Options) => {
if (engine === "katex") { if (engine === "katex") {
return { return {
css: [ css: [
// base css {
"https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/katex.min.css", // base css
content: "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/katex.min.css",
},
], ],
js: [ js: [
{ {
@ -97,8 +100,6 @@ export const Latex: QuartzTransformerPlugin<Options> = (opts?: Options) => {
}, },
], ],
} }
} else {
return {}
} }
}, },
} }
@ -220,12 +221,26 @@ export type QuartzEmitterPlugin<Options extends OptionType = undefined> = (
export type QuartzEmitterPluginInstance = { export type QuartzEmitterPluginInstance = {
name: string name: string
emit(ctx: BuildCtx, content: ProcessedContent[], resources: StaticResources): Promise<FilePath[]> emit(
ctx: BuildCtx,
content: ProcessedContent[],
resources: StaticResources,
): Promise<FilePath[]> | AsyncGenerator<FilePath>
partialEmit?(
ctx: BuildCtx,
content: ProcessedContent[],
resources: StaticResources,
changeEvents: ChangeEvent[],
): Promise<FilePath[]> | AsyncGenerator<FilePath> | null
getQuartzComponents(ctx: BuildCtx): QuartzComponent[] getQuartzComponents(ctx: BuildCtx): QuartzComponent[]
} }
``` ```
An emitter plugin must define a `name` field, an `emit` function, and a `getQuartzComponents` function. `emit` is responsible for looking at all the parsed and filtered content and then appropriately creating files and returning a list of paths to files the plugin created. An emitter plugin must define a `name` field, an `emit` function, and a `getQuartzComponents` function. It can optionally implement a `partialEmit` function for incremental builds.
- `emit` is responsible for looking at all the parsed and filtered content and then appropriately creating files and returning a list of paths to files the plugin created.
- `partialEmit` is an optional function that enables incremental builds. It receives information about which files have changed (`changeEvents`) and can selectively rebuild only the necessary files. This is useful for optimizing build times in development mode. If `partialEmit` is undefined, it will default to the `emit` function.
- `getQuartzComponents` declares which Quartz components the emitter uses to construct its pages.
Creating new files can be done via regular Node [fs module](https://nodejs.org/api/fs.html) (i.e. `fs.cp` or `fs.writeFile`) or via the `write` function in `quartz/plugins/emitters/helpers.ts` if you are creating files that contain text. `write` has the following signature: Creating new files can be done via regular Node [fs module](https://nodejs.org/api/fs.html) (i.e. `fs.cp` or `fs.writeFile`) or via the `write` function in `quartz/plugins/emitters/helpers.ts` if you are creating files that contain text. `write` has the following signature:
@ -234,7 +249,7 @@ export type WriteOptions = (data: {
// the build context // the build context
ctx: BuildCtx ctx: BuildCtx
// the name of the file to emit (not including the file extension) // the name of the file to emit (not including the file extension)
slug: ServerSlug slug: FullSlug
// the file extension // the file extension
ext: `.${string}` | "" ext: `.${string}` | ""
// the file content to add // the file content to add
@ -260,11 +275,11 @@ export const ContentPage: QuartzEmitterPlugin = () => {
...defaultContentPageLayout, ...defaultContentPageLayout,
pageBody: Content(), pageBody: Content(),
} }
const { head, header, beforeBody, pageBody, left, right, footer } = layout const { head, header, beforeBody, pageBody, afterBody, left, right, footer } = layout
return { return {
name: "ContentPage", name: "ContentPage",
getQuartzComponents() { getQuartzComponents() {
return [head, ...header, ...beforeBody, pageBody, ...left, ...right, footer] return [head, ...header, ...beforeBody, pageBody, ...afterBody, ...left, ...right, footer]
}, },
async emit(ctx, content, resources, emit): Promise<FilePath[]> { async emit(ctx, content, resources, emit): Promise<FilePath[]> {
const cfg = ctx.cfg.configuration const cfg = ctx.cfg.configuration
@ -272,7 +287,7 @@ export const ContentPage: QuartzEmitterPlugin = () => {
const allFiles = content.map((c) => c[1].data) const allFiles = content.map((c) => c[1].data)
for (const [tree, file] of content) { for (const [tree, file] of content) {
const slug = canonicalizeServer(file.data.slug!) const slug = canonicalizeServer(file.data.slug!)
const externalResources = pageResources(slug, resources) const externalResources = pageResources(slug, file.data, resources)
const componentData: QuartzComponentProps = { const componentData: QuartzComponentProps = {
fileData: file.data, fileData: file.data,
externalResources, externalResources,

View File

@ -29,11 +29,14 @@ Some common frontmatter fields that are natively supported by Quartz:
- `title`: Title of the page. If it isn't provided, Quartz will use the name of the file as the title. - `title`: Title of the page. If it isn't provided, Quartz will use the name of the file as the title.
- `description`: Description of the page used for link previews. - `description`: Description of the page used for link previews.
- `permalink`: A custom URL for the page that will remain constant even if the path to the file changes.
- `aliases`: Other names for this note. This is a list of strings. - `aliases`: Other names for this note. This is a list of strings.
- `tags`: Tags for this note. - `tags`: Tags for this note.
- `draft`: Whether to publish the page or not. This is one way to make [[private pages|pages private]] in Quartz. - `draft`: Whether to publish the page or not. This is one way to make [[private pages|pages private]] in Quartz.
- `date`: A string representing the day the note was published. Normally uses `YYYY-MM-DD` format. - `date`: A string representing the day the note was published. Normally uses `YYYY-MM-DD` format.
See [[Frontmatter]] for a complete list of frontmatter.
## Syncing your Content ## Syncing your Content
When your Quartz is at a point you're happy with, you can save your changes to GitHub. When your Quartz is at a point you're happy with, you can save your changes to GitHub.

View File

@ -21,3 +21,7 @@ This will start a local web server to run your Quartz on your computer. Open a w
> - `--serve`: run a local hot-reloading server to preview your Quartz > - `--serve`: run a local hot-reloading server to preview your Quartz
> - `--port`: what port to run the local preview server on > - `--port`: what port to run the local preview server on
> - `--concurrency`: how many threads to use to parse notes > - `--concurrency`: how many threads to use to parse notes
> [!warning] Not to be used for production
> Serve mode is intended for local previews only.
> For production workloads, see the page on [[hosting]].

View File

@ -21,16 +21,19 @@ const config: QuartzConfig = {
This part of the configuration concerns anything that can affect the whole site. The following is a list breaking down all the things you can configure: This part of the configuration concerns anything that can affect the whole site. The following is a list breaking down all the things you can configure:
- `pageTitle`: title of the site. This is also used when generating the [[RSS Feed]] for your site. - `pageTitle`: title of the site. This is also used when generating the [[RSS Feed]] for your site.
- `pageTitleSuffix`: a string added to the end of the page title. This only applies to the browser tab title, not the title shown at the top of the page.
- `enableSPA`: whether to enable [[SPA Routing]] on your site. - `enableSPA`: whether to enable [[SPA Routing]] on your site.
- `enablePopovers`: whether to enable [[popover previews]] on your site. - `enablePopovers`: whether to enable [[popover previews]] on your site.
- `analytics`: what to use for analytics on your site. Values can be - `analytics`: what to use for analytics on your site. Values can be
- `null`: don't use analytics; - `null`: don't use analytics;
- `{ provider: 'google', tagId: '<your-google-tag>' }`: use Google Analytics; - `{ provider: 'google', tagId: '<your-google-tag>' }`: use Google Analytics;
- `{ provider: 'plausible' }` (managed) or `{ provider: 'plausible', host: '<your-plausible-host>' }` (self-hosted): use [Plausible](https://plausible.io/); - `{ provider: 'plausible' }` (managed) or `{ provider: 'plausible', host: 'https://<your-plausible-host>' }` (self-hosted, make sure to include the `https://` protocol prefix): use [Plausible](https://plausible.io/);
- `{ provider: 'umami', host: '<your-umami-host>', websiteId: '<your-umami-website-id>' }`: use [Umami](https://umami.is/); - `{ provider: 'umami', host: '<your-umami-host>', websiteId: '<your-umami-website-id>' }`: use [Umami](https://umami.is/);
- `{ provider: 'goatcounter', websiteId: 'my-goatcounter-id' }` (managed) or `{ provider: 'goatcounter', websiteId: 'my-goatcounter-id', host: 'my-goatcounter-domain.com', scriptSrc: 'https://my-url.to/counter.js' }` (self-hosted) use [GoatCounter](https://goatcounter.com); - `{ provider: 'goatcounter', websiteId: 'my-goatcounter-id' }` (managed) or `{ provider: 'goatcounter', websiteId: 'my-goatcounter-id', host: 'my-goatcounter-domain.com', scriptSrc: 'https://my-url.to/counter.js' }` (self-hosted) use [GoatCounter](https://goatcounter.com);
- `{ provider: 'posthog', apiKey: '<your-posthog-project-apiKey>', host: '<your-posthog-host>' }`: use [Posthog](https://posthog.com/); - `{ provider: 'posthog', apiKey: '<your-posthog-project-apiKey>', host: '<your-posthog-host>' }`: use [Posthog](https://posthog.com/);
- `{ provider: 'tinylytics', siteId: '<your-site-id>' }`: use [Tinylytics](https://tinylytics.app/); - `{ provider: 'tinylytics', siteId: '<your-site-id>' }`: use [Tinylytics](https://tinylytics.app/);
- `{ provider: 'cabin' }` or `{ provider: 'cabin', host: 'https://cabin.example.com' }` (custom domain): use [Cabin](https://withcabin.com);
- `{provider: 'clarity', projectId: '<your-clarity-id-code' }`: use [Microsoft clarity](https://clarity.microsoft.com/). The project id can be found on top of the overview page.
- `locale`: used for [[i18n]] and date formatting - `locale`: used for [[i18n]] and date formatting
- `baseUrl`: this is used for sitemaps and RSS feeds that require an absolute URL to know where the canonical 'home' of your site lives. This is normally the deployed URL of your site (e.g. `quartz.jzhao.xyz` for this site). Do not include the protocol (i.e. `https://`) or any leading or trailing slashes. - `baseUrl`: this is used for sitemaps and RSS feeds that require an absolute URL to know where the canonical 'home' of your site lives. This is normally the deployed URL of your site (e.g. `quartz.jzhao.xyz` for this site). Do not include the protocol (i.e. `https://`) or any leading or trailing slashes.
- This should also include the subpath if you are [[hosting]] on GitHub pages without a custom domain. For example, if my repository is `jackyzha0/quartz`, GitHub pages would deploy to `https://jackyzha0.github.io/quartz` and the `baseUrl` would be `jackyzha0.github.io/quartz`. - This should also include the subpath if you are [[hosting]] on GitHub pages without a custom domain. For example, if my repository is `jackyzha0/quartz`, GitHub pages would deploy to `https://jackyzha0.github.io/quartz` and the `baseUrl` would be `jackyzha0.github.io/quartz`.
@ -38,11 +41,12 @@ This part of the configuration concerns anything that can affect the whole site.
- `ignorePatterns`: a list of [glob](<https://en.wikipedia.org/wiki/Glob_(programming)>) patterns that Quartz should ignore and not search through when looking for files inside the `content` folder. See [[private pages]] for more details. - `ignorePatterns`: a list of [glob](<https://en.wikipedia.org/wiki/Glob_(programming)>) patterns that Quartz should ignore and not search through when looking for files inside the `content` folder. See [[private pages]] for more details.
- `defaultDateType`: whether to use created, modified, or published as the default date to display on pages and page listings. - `defaultDateType`: whether to use created, modified, or published as the default date to display on pages and page listings.
- `theme`: configure how the site looks. - `theme`: configure how the site looks.
- `cdnCaching`: If `true` (default), use Google CDN to cache the fonts. This will generally will be faster. Disable (`false`) this if you want Quartz to download the fonts to be self-contained. - `cdnCaching`: if `true` (default), use Google CDN to cache the fonts. This will generally be faster. Disable (`false`) this if you want Quartz to download the fonts to be self-contained.
- `typography`: what fonts to use. Any font available on [Google Fonts](https://fonts.google.com/) works here. - `typography`: what fonts to use. Any font available on [Google Fonts](https://fonts.google.com/) works here.
- `header`: Font to use for headers - `title`: font for the title of the site (optional, same as `header` by default)
- `code`: Font for inline and block quotes. - `header`: font to use for headers
- `body`: Font for everything - `code`: font for inline and block quotes
- `body`: font for everything
- `colors`: controls the theming of the site. - `colors`: controls the theming of the site.
- `light`: page background - `light`: page background
- `lightgray`: borders - `lightgray`: borders
@ -52,6 +56,7 @@ This part of the configuration concerns anything that can affect the whole site.
- `secondary`: link colour, current [[graph view|graph]] node - `secondary`: link colour, current [[graph view|graph]] node
- `tertiary`: hover states and visited [[graph view|graph]] nodes - `tertiary`: hover states and visited [[graph view|graph]] nodes
- `highlight`: internal link background, highlighted text, [[syntax highlighting|highlighted lines of code]] - `highlight`: internal link background, highlighted text, [[syntax highlighting|highlighted lines of code]]
- `textHighlight`: markdown highlighted text background
## Plugins ## Plugins
@ -99,8 +104,30 @@ transformers: [
] ]
``` ```
Some plugins are included by default in the[ `quartz.config.ts`](https://github.com/jackyzha0/quartz/blob/v4/quartz.config.ts), but there are more available. Some plugins are included by default in the [`quartz.config.ts`](https://github.com/jackyzha0/quartz/blob/v4/quartz.config.ts), but there are more available.
You can see a list of all plugins and their configuration options [[tags/plugin|here]]. You can see a list of all plugins and their configuration options [[tags/plugin|here]].
If you'd like to make your own plugins, see the [[making plugins|making custom plugins]] guide. If you'd like to make your own plugins, see the [[making plugins|making custom plugins]] guide.
## Fonts
Fonts can be specified as a `string` or a `FontSpecification`:
```ts
// string
typography: {
header: "Schibsted Grotesk",
...
}
// FontSpecification
typography: {
header: {
name: "Schibsted Grotesk",
weights: [400, 700],
includeItalic: true,
},
...
}
```

View File

@ -0,0 +1,31 @@
---
title: Citations
tags:
- feature/transformer
---
Quartz uses [rehype-citation](https://github.com/timlrx/rehype-citation) to support parsing of a BibTex bibliography file.
Under the default configuration, a citation key `[@templeton2024scaling]` will be exported as `(Templeton et al., 2024)`.
> [!example]- BibTex file
>
> ```bib title="bibliography.bib"
> @article{templeton2024scaling,
> title={Scaling Monosemanticity: Extracting Interpretable Features from Claude 3 Sonnet},
> author={Templeton, Adly and Conerly, Tom and Marcus, Jonathan and Lindsey, Jack and Bricken, Trenton and Chen, Brian and Pearce, Adam and Citro, Craig and Ameisen, Emmanuel and Jones, Andy and Cunningham, Hoagy and Turner, Nicholas L and McDougall, Callum and MacDiarmid, Monte and Freeman, C. Daniel and Sumers, Theodore R. and Rees, Edward and Batson, Joshua and Jermyn, Adam and Carter, Shan and Olah, Chris and Henighan, Tom},
> year={2024},
> journal={Transformer Circuits Thread},
> url={https://transformer-circuits.pub/2024/scaling-monosemanticity/index.html}
> }
> ```
> [!note] Behaviour of references
>
> By default, the references will be included at the end of the file. To control where the references to be included, uses `[^ref]`
>
> Refer to `rehype-citation` docs for more information.
## Customization
Citation parsing is a functionality of the [[plugins/Citations|Citation]] plugin. **This plugin is not enabled by default**. See the plugin page for customization options.

View File

@ -3,5 +3,5 @@ Quartz comes shipped with a Docker image that will allow you to preview your Qua
You can run the below one-liner to run Quartz in Docker. You can run the below one-liner to run Quartz in Docker.
```sh ```sh
docker run --rm -itp 8080:8080 $(docker build -q .) docker run --rm -itp 8080:8080 -p 3001:3001 -v ./content:/usr/src/app/content $(docker build -q .)
``` ```

View File

@ -1,5 +1,10 @@
Quartz emits an RSS feed for all the content on your site by generating an `index.xml` file that RSS readers can subscribe to. Because of the RSS spec, this requires the `baseUrl` property in your [[configuration]] to be set properly for RSS readers to pick it up properly. Quartz emits an RSS feed for all the content on your site by generating an `index.xml` file that RSS readers can subscribe to. Because of the RSS spec, this requires the `baseUrl` property in your [[configuration]] to be set properly for RSS readers to pick it up properly.
> [!info]
> After deploying, the generated RSS link will be available at `https://${baseUrl}/index.xml` by default.
>
> The `index.xml` path can be customized by passing the `rssSlug` option to the [[ContentIndex]] plugin.
## Configuration ## Configuration
This functionality is provided by the [[ContentIndex]] plugin. See the plugin page for customization options. This functionality is provided by the [[ContentIndex]] plugin. See the plugin page for customization options.

View File

@ -0,0 +1,28 @@
---
title: "Roam Research Compatibility"
tags:
- feature/transformer
---
[Roam Research](https://roamresearch.com) is a note-taking tool that organizes your knowledge graph in a unique and interconnected way.
Quartz supports transforming the special Markdown syntax from Roam Research (like `{{[[components]]}}` and other formatting) into
regular Markdown via the [[RoamFlavoredMarkdown]] plugin.
```typescript title="quartz.config.ts"
plugins: {
transformers: [
// ...
Plugin.RoamFlavoredMarkdown(),
Plugin.ObsidianFlavoredMarkdown(),
// ...
],
},
```
> [!warning]
> As seen above placement of `Plugin.RoamFlavoredMarkdown()` within `quartz.config.ts` is very important. It must come before `Plugin.ObsidianFlavoredMarkdown()`.
## Customization
This functionality is provided by the [[RoamFlavoredMarkdown]] plugin. See the plugin page for customization options.

View File

@ -9,6 +9,7 @@ A backlink for a note is a link from another note to that note. Links in the bac
## Customization ## Customization
- Removing backlinks: delete all usages of `Component.Backlinks()` from `quartz.layout.ts`. - Removing backlinks: delete all usages of `Component.Backlinks()` from `quartz.layout.ts`.
- Hide when empty: hide `Backlinks` if given page doesn't contain any backlinks (default to `true`). To disable this, use `Component.Backlinks({ hideWhenEmpty: false })`.
- Component: `quartz/components/Backlinks.tsx` - Component: `quartz/components/Backlinks.tsx`
- Style: `quartz/components/styles/backlinks.scss` - Style: `quartz/components/styles/backlinks.scss`
- Script: `quartz/components/scripts/search.inline.ts` - Script: `quartz/components/scripts/search.inline.ts`

View File

@ -19,7 +19,6 @@ Component.Breadcrumbs({
spacerSymbol: "", // symbol between crumbs spacerSymbol: "", // symbol between crumbs
rootName: "Home", // name of first/root element rootName: "Home", // name of first/root element
resolveFrontmatterTitle: true, // whether to resolve folder names through frontmatter titles resolveFrontmatterTitle: true, // whether to resolve folder names through frontmatter titles
hideOnRoot: true, // whether to hide breadcrumbs on root `index.md` page
showCurrentPage: true, // whether to display the current page in the breadcrumbs showCurrentPage: true, // whether to display the current page in the breadcrumbs
}) })
``` ```

133
docs/features/comments.md Normal file
View File

@ -0,0 +1,133 @@
---
title: Comments
tags:
- component
---
Quartz also has the ability to hook into various providers to enable readers to leave comments on your site.
![[giscus-example.png]]
As of today, only [Giscus](https://giscus.app/) is supported out of the box but PRs to support other providers are welcome!
## Providers
### Giscus
First, make sure that the [[setting up your GitHub repository|GitHub]] repository you are using for your Quartz meets the following requirements:
1. The **repository is [public](https://docs.github.com/en/github/administering-a-repository/managing-repository-settings/setting-repository-visibility#making-a-repository-public)**, otherwise visitors will not be able to view the discussion.
2. The **[giscus](https://github.com/apps/giscus) app is installed**, otherwise visitors will not be able to comment and react.
3. The **Discussions feature is turned on** by [enabling it for your repository](https://docs.github.com/en/github/administering-a-repository/managing-repository-settings/enabling-or-disabling-github-discussions-for-a-repository).
Then, use the [Giscus site](https://giscus.app/#repository) to figure out what your `repoId` and `categoryId` should be. Make sure you select `Announcements` for the Discussion category.
![[giscus-repo.png]]
![[giscus-discussion.png]]
After entering both your repository and selecting the discussion category, Giscus will compute some IDs that you'll need to provide back to Quartz. You won't need to manually add the script yourself as Quartz will handle that part for you but will need these values in the next step!
![[giscus-results.png]]
Finally, in `quartz.layout.ts`, edit the `afterBody` field of `sharedPageComponents` to include the following options but with the values you got from above:
```ts title="quartz.layout.ts"
afterBody: [
Component.Comments({
provider: 'giscus',
options: {
// from data-repo
repo: 'jackyzha0/quartz',
// from data-repo-id
repoId: 'MDEwOlJlcG9zaXRvcnkzODcyMTMyMDg',
// from data-category
category: 'Announcements',
// from data-category-id
categoryId: 'DIC_kwDOFxRnmM4B-Xg6',
// from data-lang
lang: 'en'
}
}),
],
```
### Customization
Quartz also exposes a few of the other Giscus options as well and you can provide them the same way `repo`, `repoId`, `category`, and `categoryId` are provided.
```ts
type Options = {
provider: "giscus"
options: {
repo: `${string}/${string}`
repoId: string
category: string
categoryId: string
// Url to folder with custom themes
// defaults to 'https://${cfg.baseUrl}/static/giscus'
themeUrl?: string
// filename for light theme .css file
// defaults to 'light'
lightTheme?: string
// filename for dark theme .css file
// defaults to 'dark'
darkTheme?: string
// how to map pages -> discussions
// defaults to 'url'
mapping?: "url" | "title" | "og:title" | "specific" | "number" | "pathname"
// use strict title matching
// defaults to true
strict?: boolean
// whether to enable reactions for the main post
// defaults to true
reactionsEnabled?: boolean
// where to put the comment input box relative to the comments
// defaults to 'bottom'
inputPosition?: "top" | "bottom"
// set your preference language here
// defaults to 'en'
lang?: string
}
}
```
#### Custom CSS theme
Quartz supports custom theme for Giscus. To use a custom CSS theme, place the `.css` file inside the `quartz/static` folder and set the configuration values.
For example, if you have a light theme `light-theme.css`, a dark theme `dark-theme.css`, and your Quartz site is hosted at `https://example.com/`:
```ts
afterBody: [
Component.Comments({
provider: 'giscus',
options: {
// Other options
themeUrl: "https://example.com/static/giscus", // corresponds to quartz/static/giscus/
lightTheme: "light-theme", // corresponds to light-theme.css in quartz/static/giscus/
darkTheme: "dark-theme", // corresponds to dark-theme.css quartz/static/giscus/
}
}),
],
```
#### Conditionally display comments
Quartz can conditionally display the comment box based on a field `comments` in the frontmatter. By default, all pages will display comments, to disable it for a specific page, set `comments` to `false`.
```
---
title: Comments disabled here!
comments: false
---
```

View File

@ -27,12 +27,10 @@ Component.Explorer({
folderClickBehavior: "collapse", // what happens when you click a folder ("link" to navigate to folder page on click or "collapse" to collapse folder on click) folderClickBehavior: "collapse", // what happens when you click a folder ("link" to navigate to folder page on click or "collapse" to collapse folder on click)
folderDefaultState: "collapsed", // default state of folders ("collapsed" or "open") folderDefaultState: "collapsed", // default state of folders ("collapsed" or "open")
useSavedState: true, // whether to use local storage to save "state" (which folders are opened) of explorer useSavedState: true, // whether to use local storage to save "state" (which folders are opened) of explorer
// Sort order: folders first, then files. Sort folders and files alphabetically // omitted but shown later
sortFn: (a, b) => { sortFn: ...,
... // default implementation shown later filterFn: ...,
}, mapFn: ...,
filterFn: filterFn: (node) => node.name !== "tags", // filters out 'tags' folder
mapFn: undefined,
// what order to apply functions in // what order to apply functions in
order: ["filter", "map", "sort"], order: ["filter", "map", "sort"],
}) })
@ -45,26 +43,30 @@ Want to customize it even more?
- Removing explorer: remove `Component.Explorer()` from `quartz.layout.ts` - Removing explorer: remove `Component.Explorer()` from `quartz.layout.ts`
- (optional): After removing the explorer component, you can move the [[table of contents | Table of Contents]] component back to the `left` part of the layout - (optional): After removing the explorer component, you can move the [[table of contents | Table of Contents]] component back to the `left` part of the layout
- Changing `sort`, `filter` and `map` behavior: explained in [[#Advanced customization]] - Changing `sort`, `filter` and `map` behavior: explained in [[#Advanced customization]]
- Component: - Component: `quartz/components/Explorer.tsx`
- Wrapper (Outer component, generates file tree, etc): `quartz/components/Explorer.tsx`
- Explorer node (recursive, either a folder or a file): `quartz/components/ExplorerNode.tsx`
- Style: `quartz/components/styles/explorer.scss` - Style: `quartz/components/styles/explorer.scss`
- Script: `quartz/components/scripts/explorer.inline.ts` - Script: `quartz/components/scripts/explorer.inline.ts`
## Advanced customization ## Advanced customization
This component allows you to fully customize all of its behavior. You can pass a custom `sort`, `filter` and `map` function. This component allows you to fully customize all of its behavior. You can pass a custom `sort`, `filter` and `map` function.
All functions you can pass work with the `FileNode` class, which has the following properties: All functions you can pass work with the `FileTrieNode` class, which has the following properties:
```ts title="quartz/components/ExplorerNode.tsx" {2-5} ```ts title="quartz/components/Explorer.tsx"
export class FileNode { class FileTrieNode {
children: FileNode[] // children of current node isFolder: boolean
name: string // last part of slug children: Array<FileTrieNode>
displayName: string // what actually should be displayed in the explorer data: ContentDetails | null
file: QuartzPluginData | null // if node is a file, this is the file's metadata. See `QuartzPluginData` for more detail }
depth: number // depth of current node ```
... // rest of implementation ```ts title="quartz/plugins/emitters/contentIndex.tsx"
export type ContentDetails = {
slug: FullSlug
title: string
links: SimpleSlug[]
tags: string[]
content: string
} }
``` ```
@ -74,15 +76,14 @@ Every function you can pass is optional. By default, only a `sort` function will
// Sort order: folders first, then files. Sort folders and files alphabetically // Sort order: folders first, then files. Sort folders and files alphabetically
Component.Explorer({ Component.Explorer({
sortFn: (a, b) => { sortFn: (a, b) => {
if ((!a.file && !b.file) || (a.file && b.file)) { if ((!a.isFolder && !b.isFolder) || (a.isFolder && b.isFolder)) {
// sensitivity: "base": Only strings that differ in base letters compare as unequal. Examples: a ≠ b, a = á, a = A
// numeric: true: Whether numeric collation should be used, such that "1" < "2" < "10"
return a.displayName.localeCompare(b.displayName, undefined, { return a.displayName.localeCompare(b.displayName, undefined, {
numeric: true, numeric: true,
sensitivity: "base", sensitivity: "base",
}) })
} }
if (a.file && !b.file) {
if (!a.isFolder && b.isFolder) {
return 1 return 1
} else { } else {
return -1 return -1
@ -100,41 +101,23 @@ For more information on how to use `sort`, `filter` and `map`, you can check [Ar
Type definitions look like this: Type definitions look like this:
```ts ```ts
sortFn: (a: FileNode, b: FileNode) => number type SortFn = (a: FileTrieNode, b: FileTrieNode) => number
filterFn: (node: FileNode) => boolean type FilterFn = (node: FileTrieNode) => boolean
mapFn: (node: FileNode) => void type MapFn = (node: FileTrieNode) => void
``` ```
> [!tip]
> You can check if a `FileNode` is a folder or a file like this:
>
> ```ts
> if (node.file) {
> // node is a file
> } else {
> // node is a folder
> }
> ```
## Basic examples ## Basic examples
These examples show the basic usage of `sort`, `map` and `filter`. These examples show the basic usage of `sort`, `map` and `filter`.
### Use `sort` to put files first ### Use `sort` to put files first
Using this example, the explorer will alphabetically sort everything, but put all **files** above all **folders**. Using this example, the explorer will alphabetically sort everything.
```ts title="quartz.layout.ts" ```ts title="quartz.layout.ts"
Component.Explorer({ Component.Explorer({
sortFn: (a, b) => { sortFn: (a, b) => {
if ((!a.file && !b.file) || (a.file && b.file)) { return a.displayName.localeCompare(b.displayName)
return a.displayName.localeCompare(b.displayName)
}
if (a.file && !b.file) {
return -1
} else {
return 1
}
}, },
}) })
``` ```
@ -147,42 +130,47 @@ Using this example, the display names of all `FileNodes` (folders + files) will
Component.Explorer({ Component.Explorer({
mapFn: (node) => { mapFn: (node) => {
node.displayName = node.displayName.toUpperCase() node.displayName = node.displayName.toUpperCase()
return node
}, },
}) })
``` ```
### Remove list of elements (`filter`) ### Remove list of elements (`filter`)
Using this example, you can remove elements from your explorer by providing an array of folders/files using the `omit` set. Using this example, you can remove elements from your explorer by providing an array of folders/files to exclude.
Note that this example filters on the title but you can also do it via slug or any other field available on `FileTrieNode`.
```ts title="quartz.layout.ts" ```ts title="quartz.layout.ts"
Component.Explorer({ Component.Explorer({
filterFn: (node) => { filterFn: (node) => {
// set containing names of everything you want to filter out // set containing names of everything you want to filter out
const omit = new Set(["authoring content", "tags", "hosting"]) const omit = new Set(["authoring content", "tags", "advanced"])
return !omit.has(node.name.toLowerCase())
// can also use node.slug or by anything on node.data
// note that node.data is only present for files that exist on disk
// (e.g. implicit folder nodes that have no associated index.md)
return !omit.has(node.displayName.toLowerCase())
}, },
}) })
``` ```
You can customize this by changing the entries of the `omit` set. Simply add all folder or file names you want to remove.
### Remove files by tag ### Remove files by tag
You can access the frontmatter of a file by `node.file?.frontmatter?`. This allows you to filter out files based on their frontmatter, for example by their tags. You can access the tags of a file by `node.data.tags`.
```ts title="quartz.layout.ts" ```ts title="quartz.layout.ts"
Component.Explorer({ Component.Explorer({
filterFn: (node) => { filterFn: (node) => {
// exclude files with the tag "explorerexclude" // exclude files with the tag "explorerexclude"
return node.file?.frontmatter?.tags?.includes("explorerexclude") !== true return node.data.tags?.includes("explorerexclude") !== true
}, },
}) })
``` ```
### Show every element in explorer ### Show every element in explorer
To override the default filter function that removes the `tags` folder from the explorer, you can set the filter function to `undefined`. By default, the explorer will filter out the `tags` folder.
To override the default filter function, you can set the filter function to `undefined`.
```ts title="quartz.layout.ts" ```ts title="quartz.layout.ts"
Component.Explorer({ Component.Explorer({
@ -194,10 +182,12 @@ Component.Explorer({
> [!tip] > [!tip]
> When writing more complicated functions, the `layout` file can start to look very cramped. > When writing more complicated functions, the `layout` file can start to look very cramped.
> You can fix this by defining your functions in another file. > You can fix this by defining your sort functions outside of the component
> and passing it in.
>
> ```ts title="quartz.layout.ts"
> import { Options } from "./quartz/components/Explorer"
> >
> ```ts title="functions.ts"
> import { Options } from "./quartz/components/ExplorerNode"
> export const mapFn: Options["mapFn"] = (node) => { > export const mapFn: Options["mapFn"] = (node) => {
> // implement your function here > // implement your function here
> } > }
@ -207,16 +197,12 @@ Component.Explorer({
> export const sortFn: Options["sortFn"] = (a, b) => { > export const sortFn: Options["sortFn"] = (a, b) => {
> // implement your function here > // implement your function here
> } > }
> ```
> >
> You can then import them like this:
>
> ```ts title="quartz.layout.ts"
> import { mapFn, filterFn, sortFn } from "./functions.ts"
> Component.Explorer({ > Component.Explorer({
> mapFn: mapFn, > // ... your other options
> filterFn: filterFn, > mapFn,
> sortFn: sortFn, > filterFn,
> sortFn,
> }) > })
> ``` > ```
@ -227,93 +213,11 @@ To add emoji prefixes (📁 for folders, 📄 for files), you could use a map fu
```ts title="quartz.layout.ts" ```ts title="quartz.layout.ts"
Component.Explorer({ Component.Explorer({
mapFn: (node) => { mapFn: (node) => {
// dont change name of root node if (node.isFolder) {
if (node.depth > 0) { node.displayName = "📁 " + node.displayName
// set emoji for file/folder } else {
if (node.file) { node.displayName = "📄 " + node.displayName
node.displayName = "📄 " + node.displayName
} else {
node.displayName = "📁 " + node.displayName
}
} }
}, },
}) })
``` ```
### Putting it all together
In this example, we're going to customize the explorer by using functions from examples above to [[#Add emoji prefix | add emoji prefixes]], [[#remove-list-of-elements-filter| filter out some folders]] and [[#use-sort-to-put-files-first | sort with files above folders]].
```ts title="quartz.layout.ts"
Component.Explorer({
filterFn: sampleFilterFn,
mapFn: sampleMapFn,
sortFn: sampleSortFn,
order: ["filter", "sort", "map"],
})
```
Notice how we customized the `order` array here. This is done because the default order applies the `sort` function last. While this normally works well, it would cause unintended behavior here, since we changed the first characters of all display names. In our example, `sort` would be applied based off the emoji prefix instead of the first _real_ character.
To fix this, we just changed around the order and apply the `sort` function before changing the display names in the `map` function.
### Use `sort` with pre-defined sort order
Here's another example where a map containing file/folder names (as slugs) is used to define the sort order of the explorer in quartz. All files/folders that aren't listed inside of `nameOrderMap` will appear at the top of that folders hierarchy level.
It's also worth mentioning, that the smaller the number set in `nameOrderMap`, the higher up the entry will be in the explorer. Incrementing every folder/file by 100, makes ordering files in their folders a lot easier. Lastly, this example still allows you to use a `mapFn` or frontmatter titles to change display names, as it uses slugs for `nameOrderMap` (which is unaffected by display name changes).
```ts title="quartz.layout.ts"
Component.Explorer({
sortFn: (a, b) => {
const nameOrderMap: Record<string, number> = {
"poetry-folder": 100,
"essay-folder": 200,
"research-paper-file": 201,
"dinosaur-fossils-file": 300,
"other-folder": 400,
}
let orderA = 0
let orderB = 0
if (a.file && a.file.slug) {
orderA = nameOrderMap[a.file.slug] || 0
} else if (a.name) {
orderA = nameOrderMap[a.name] || 0
}
if (b.file && b.file.slug) {
orderB = nameOrderMap[b.file.slug] || 0
} else if (b.name) {
orderB = nameOrderMap[b.name] || 0
}
return orderA - orderB
},
})
```
For reference, this is how the quartz explorer window would look like with that example:
```
📖 Poetry Folder
📑 Essay Folder
⚗️ Research Paper File
🦴 Dinosaur Fossils File
🔮 Other Folder
```
And this is how the file structure would look like:
```
index.md
poetry-folder
index.md
essay-folder
index.md
research-paper-file.md
dinosaur-fossils-file.md
other-folder
index.md
```

View File

@ -30,4 +30,4 @@ As with folder listings, you can also provide a description and title for a tag
## Customization ## Customization
The folder listings are a functionality of the [[FolderPage]] plugin, the tag listings of the [[TagPage]] plugin. See the plugin pages for customization options. Quartz allows you to define a custom sort ordering for content on both page types. The folder listings are a functionality of the [[FolderPage]] plugin, the tag listings of the [[TagPage]] plugin. See the plugin pages for customization options.

View File

@ -36,6 +36,7 @@ Component.Graph({
opacityScale: 1, // how quickly do we fade out the labels when zooming out? opacityScale: 1, // how quickly do we fade out the labels when zooming out?
removeTags: [], // what tags to remove from the graph removeTags: [], // what tags to remove from the graph
showTags: true, // whether to show tags in the graph showTags: true, // whether to show tags in the graph
enableRadial: false, // whether to constrain the graph, similar to Obsidian
}, },
globalGraph: { globalGraph: {
drag: true, drag: true,
@ -49,6 +50,7 @@ Component.Graph({
opacityScale: 1, opacityScale: 1,
removeTags: [], // what tags to remove from the graph removeTags: [], // what tags to remove from the graph
showTags: true, // whether to show tags in the graph showTags: true, // whether to show tags in the graph
enableRadial: true, // whether to constrain the graph, similar to Obsidian
}, },
}) })
``` ```

View File

@ -13,9 +13,7 @@ There may be some notes you want to avoid publishing as a website. Quartz suppor
If you'd like to only publish a select number of notes, you can instead use [[ExplicitPublish]] which will filter out all notes except for any that have `publish: true` in the frontmatter. If you'd like to only publish a select number of notes, you can instead use [[ExplicitPublish]] which will filter out all notes except for any that have `publish: true` in the frontmatter.
> [!warning] > [!warning]
> Regardless of the filter plugin used, **all non-markdown files will be emitted and available publically in the final build.** This includes files such as images, voice recordings, PDFs, etc. One way to prevent this and still be able to embed local images is to create a folder specifically for public media and add the following two patterns to the ignorePatterns array. > Regardless of the filter plugin used, **all non-markdown files will be emitted and available publically in the final build.** This includes files such as images, voice recordings, PDFs, etc.
>
> `"!(PublicMedia)**/!(*.md)", "!(*.md)"`
## `ignorePatterns` ## `ignorePatterns`
@ -28,7 +26,7 @@ Common examples include:
- `some/folder`: exclude the entire of `some/folder` - `some/folder`: exclude the entire of `some/folder`
- `*.md`: exclude all files with a `.md` extension - `*.md`: exclude all files with a `.md` extension
- `!*.md` exclude all files that _don't_ have a `.md` extension - `!(*.md)` exclude all files that _don't_ have a `.md` extension. Note that negations _must_ parenthesize the rest of the pattern!
- `**/private`: exclude any files or folders named `private` at any level of nesting - `**/private`: exclude any files or folders named `private` at any level of nesting
> [!warning] > [!warning]

View File

@ -0,0 +1,44 @@
---
title: Reader Mode
tags:
- component
---
Reader Mode is a feature that allows users to focus on the content by hiding the sidebars and other UI elements. When enabled, it provides a clean, distraction-free reading experience.
## Configuration
Reader Mode is enabled by default. To disable it, you can remove the component from your layout configuration in `quartz.layout.ts`:
```ts
// Remove or comment out this line
Component.ReaderMode(),
```
## Usage
The Reader Mode toggle appears as a button with a book icon. When clicked:
- Sidebars are hidden
- Hovering over the content area reveals the sidebars temporarily
Unlike Dark Mode, Reader Mode state is not persisted between page reloads but is maintained during SPA navigation within the site.
## Customization
You can customize the appearance of Reader Mode through CSS variables and styles. The component uses the following classes:
- `.readermode`: The toggle button
- `.readerIcon`: The book icon
- `[reader-mode="on"]`: Applied to the root element when Reader Mode is active
Example customization in your custom CSS:
```scss
.readermode {
// Customize the button
svg {
stroke: var(--custom-color);
}
}
```

View File

@ -0,0 +1,19 @@
---
title: "Social Media Preview Cards"
---
A lot of social media platforms can display a rich preview for your website when sharing a link (most notably, a cover image, a title and a description).
Quartz can also dynamically generate and use new cover images for every page to be used in link previews on social media for you.
## Showcase
After enabling the [[CustomOgImages]] emitter plugin, the social media link preview for [[authoring content | Authoring Content]] looks like this:
| Light | Dark |
| ----------------------------------- | ---------------------------------- |
| ![[social-image-preview-light.png]] | ![[social-image-preview-dark.png]] |
## Configuration
This functionality is provided by the [[CustomOgImages]] plugin. See the plugin page for customization options.

Some files were not shown because too many files have changed in this diff Show More