mirror of
https://github.com/quartz-community/citations.git
synced 2026-07-22 02:50:26 +00:00
No description
| .github/workflows | ||
| dist | ||
| src | ||
| types | ||
| .eslintrc.json | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsup.config.ts | ||
| vitest.config.ts | ||
@quartz-community/citations
Adds academic citation support using a BibTeX bibliography file and configurable citation styles.
Installation
npx quartz plugin add github:quartz-community/citations
Usage
plugins:
- source: github:quartz-community/citations
enabled: true
options:
bibliographyFile: "./bibliography.bib"
csl: apa
For advanced use cases, you can override in TypeScript:
import * as ExternalPlugin from "./.quartz/plugins";
ExternalPlugin.Citations({
bibliographyFile: "./bibliography.bib",
csl: "apa",
});
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
bibliographyFile |
string |
"./bibliography.bib" |
The path to the BibTeX bibliography file. |
suppressBibliography |
boolean |
false |
Whether to suppress the bibliography at the end of the page. |
linkCitations |
boolean |
false |
Whether to link citations to the bibliography. |
csl |
string |
"apa" |
The CSL style to use for citations. |
Documentation
See the Quartz documentation for more information.
License
MIT