Skip to content

Commit

Permalink
feat(docs): support GitHub mentions rendering (#77)
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
  • Loading branch information
aarnphm authored Oct 2, 2024
1 parent d529f2e commit cf90ba0
Show file tree
Hide file tree
Showing 11 changed files with 449 additions and 35 deletions.
12 changes: 0 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,3 @@ venv/
_version.py
target
.env

.DS_Store
.gitignore
node_modules
public
prof
tsconfig.tsbuildinfo
.obsidian
.quartz-cache
private/
.replit
replit.nix
10 changes: 5 additions & 5 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@jackyzha0/quartz",
"description": "🌱 publish your digital garden and notes as a website",
"name": "@aarnphm/tinymorph",
"description": "Documentation for tinymorph",
"private": true,
"version": "4.4.0",
"type": "module",
"author": "jackyzha0 <j.zhao2k19@gmail.com>",
"author": "aarnphm <contact@aarnphm.xyz>",
"license": "MIT",
"homepage": "https://quartz.jzhao.xyz",
"homepage": "https://tinymorph.aarnphm.xyz",
"repository": {
"type": "git",
"url": "https://github.com/jackyzha0/quartz.git"
"url": "https://github.com/aarnphm/tinymorph.git"
},
"scripts": {
"quartz": "./quartz/bootstrap-cli.mjs",
Expand Down
1 change: 1 addition & 0 deletions docs/quartz.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const config: QuartzConfig = {
}),
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false, enableCheckbox: true }),
Plugin.GitHubFlavoredMarkdown(),
Plugin.GitHub(),
Plugin.TableOfContents(),
Plugin.CrawlLinks({
markdownLinkResolution: "absolute",
Expand Down
9 changes: 9 additions & 0 deletions docs/quartz/cli/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,15 @@ export async function handleBuild(argv) {
source: "**/*.*",
headers: [{ key: "Content-Disposition", value: "inline" }],
},
{
source: "**/*.webp",
headers: [{ key: "Content-Type", value: "image/webp" }],
},
// fixes bug where avif images are displayed as text instead of images (future proof)
{
source: "**/*.avif",
headers: [{ key: "Content-Type", value: "image/avif" }],
},
],
})
const status = res.statusCode
Expand Down
1 change: 1 addition & 0 deletions docs/quartz/components/styles/toc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ button#toc {
}
> ul.overflow {
max-height: none;
width: 100%;
}

@for $i from 0 through 6 {
Expand Down
Loading

0 comments on commit cf90ba0

Please sign in to comment.