Skip to content

Commit 2876690

Browse files
committed
2 parents 5a8df9f + b050162 commit 2876690

27 files changed

+841
-271
lines changed

.github/workflows/docker-build-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
network=host
3838
- name: Install cosign
3939
if: github.event_name != 'pull_request'
40-
uses: sigstore/cosign-installer@v3.7.0
40+
uses: sigstore/cosign-installer@v3.8.1
4141
- name: Login to GitHub Container Registry
4242
uses: docker/login-action@v3
4343
if: github.event_name != 'pull_request'

docs/authoring content.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ Some common frontmatter fields that are natively supported by Quartz:
3535
- `draft`: Whether to publish the page or not. This is one way to make [[private pages|pages private]] in Quartz.
3636
- `date`: A string representing the day the note was published. Normally uses `YYYY-MM-DD` format.
3737

38+
See [[Frontmatter]] for a complete list of frontmatter.
39+
3840
## Syncing your Content
3941

4042
When your Quartz is at a point you're happy with, you can save your changes to GitHub. First, make sure you've [[setting up your GitHub repository|already setup your GitHub repository]] and then do `npx quartz sync`.

docs/features/Citations.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Citations
3+
tags:
4+
- feature/transformer
5+
---
6+
7+
Quartz uses [rehype-citation](https://github.com/timlrx/rehype-citation) to support parsing of a BibTex bibliography file.
8+
9+
Under the default configuration, a citation key `[@templeton2024scaling]` will be exported as `(Templeton et al., 2024)`.
10+
11+
> [!example]- BibTex file
12+
>
13+
> ```bib title="bibliography.bib"
14+
> @article{templeton2024scaling,
15+
> title={Scaling Monosemanticity: Extracting Interpretable Features from Claude 3 Sonnet},
16+
> 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},
17+
> year={2024},
18+
> journal={Transformer Circuits Thread},
19+
> url={https://transformer-circuits.pub/2024/scaling-monosemanticity/index.html}
20+
> }
21+
> ```
22+
23+
> [!note] Behaviour of references
24+
>
25+
> By default, the references will be included at the end of the file. To control where the references to be included, uses `[^ref]`
26+
>
27+
> Refer to `rehype-citation` docs for more information.
28+
29+
## Customization
30+
31+
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.

docs/features/graph view.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Component.Graph({
3535
opacityScale: 1, // how quickly do we fade out the labels when zooming out?
3636
removeTags: [], // what tags to remove from the graph
3737
showTags: true, // whether to show tags in the graph
38+
enableRadial: false, // whether to constrain the graph, similar to Obsidian
3839
},
3940
globalGraph: {
4041
drag: true,
@@ -48,6 +49,7 @@ Component.Graph({
4849
opacityScale: 1,
4950
removeTags: [], // what tags to remove from the graph
5051
showTags: true, // whether to show tags in the graph
52+
enableRadial: true, // whether to constrain the graph, similar to Obsidian
5153
},
5254
})
5355
```

docs/plugins/Citations.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: "Citations"
3+
tags:
4+
- plugin/transformer
5+
---
6+
7+
This plugin adds Citation support to Quartz.
8+
9+
> [!note]
10+
> For information on how to add, remove or configure plugins, see the [[configuration#Plugins|Configuration]] page.
11+
12+
This plugin accepts the following configuration options:
13+
14+
- `bibliographyFile`: the path to the bibliography file. Defaults to `./bibliography.bib`. This is relative to git source of your vault.
15+
- `suppressBibliography`: whether to suppress the bibliography at the end of the document. Defaults to `false`.
16+
- `linkCitations`: whether to link citations to the bibliography. Defaults to `false`.
17+
- `csl`: the citation style to use. Defaults to `apa`. Reference [rehype-citation](https://rehype-citation.netlify.app/custom-csl) for more options.
18+
- `prettyLink`: whether to use pretty links for citations. Defaults to `true`.
19+
20+
## API
21+
22+
- Category: Transformer
23+
- Function name: `Plugin.Citations()`.
24+
- Source: [`quartz/plugins/transformers/citations.ts`](https://github.com/jackyzha0/quartz/blob/v4/quartz/plugins/transformers/citations.ts).

docs/plugins/Frontmatter.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,54 @@ This plugin accepts the following configuration options:
1515

1616
> [!warning] This plugin must not be removed, otherwise Quartz will break.
1717
18+
## List
19+
20+
Quartz supports the following frontmatter:
21+
22+
- title
23+
- `title`
24+
- description
25+
- `description`
26+
- permalink
27+
- `permalink`
28+
- comments
29+
- `comments`
30+
- lang
31+
- `lang`
32+
- publish
33+
- `publish`
34+
- draft
35+
- `draft`
36+
- enableToc
37+
- `enableToc`
38+
- tags
39+
- `tags`
40+
- `tag`
41+
- aliases
42+
- `aliases`
43+
- `alias`
44+
- cssclasses
45+
- `cssclasses`
46+
- `cssclass`
47+
- socialDescription
48+
- `socialDescription`
49+
- socialImage
50+
- `socialImage`
51+
- `image`
52+
- `cover`
53+
- created
54+
- `created`
55+
- `date`
56+
- modified
57+
- `modified`
58+
- `lastmod`
59+
- `updated`
60+
- `last-modified`
61+
- published
62+
- `published`
63+
- `publishDate`
64+
- `date`
65+
1866
## API
1967

2068
- Category: Transformer

0 commit comments

Comments
 (0)