Compare commits

...

10 Commits

6 changed files with 181 additions and 21 deletions

146
.gitignore vendored
View File

@@ -1,6 +1,4 @@
.DS_Store
.gitignore
node_modules
public
prof
tsconfig.tsbuildinfo
@@ -11,3 +9,147 @@ private/
replit.nix
content/
**/*.bak
package-lock.json
/quartz/styles/custom.scss
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional stylelint cache
.stylelintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variable files
.env
.env.*
!.env.example
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
.output
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# vuepress v2.x temp and cache directory
.temp
.cache
# Sveltekit cache directory
.svelte-kit/
# vitepress build output
**/.vitepress/dist
# vitepress cache directory
**/.vitepress/cache
# Docusaurus cache and generated files
.docusaurus
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# Firebase cache directory
.firebase/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v3
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
# Vite files
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
.vite/

View File

@@ -1,4 +1,8 @@
# Quartz v4
# skato-obsidian
The engine that rendes Obsidians vaults as navigable websites, Quartz 4.
## Quartz v4
> “[One] who works with the door open gets all kinds of interruptions, but [they] also occasionally gets clues as to what the world is and what might be important.” — Richard Hamming
@@ -9,7 +13,7 @@ Quartz v4 features a from-the-ground rewrite focusing on end-user extensibility
[Join the Discord Community](https://discord.gg/cRFFHYye7t)
## Sponsors
### Sponsors
<p align="center">
<a href="https://github.com/sponsors/jackyzha0">

View File

@@ -8,7 +8,7 @@ import * as Plugin from "./quartz/plugins"
*/
const config: QuartzConfig = {
configuration: {
pageTitle: "The SUKAATO Codex",
pageTitle: "SUKAATO's Hypomnema",
pageTitleSuffix: "a Zettelkasten collection",
enableSPA: true,
enablePopovers: true,
@@ -17,7 +17,7 @@ const config: QuartzConfig = {
},
locale: "en-US",
baseUrl: "notes.sukaato.moe",
ignorePatterns: ["**/_private", "**/_bib", "**/_scripts", "**/_templates", "**/_mediadb"],
ignorePatterns: ["**/_private", "*.priv.md", "**/_bib", "**/_scripts", "**/_templates", "**/_mediadb"],
defaultDateType: "modified",
theme: {
fontOrigin: "googleFonts",

View File

@@ -41,7 +41,15 @@ export const defaultContentPageLayout: PageLayout = {
Component.Explorer(),
],
right: [
Component.Graph(),
Component.Graph({
localGraph: {
showTags: false,
zoom: false
},
globalGraph: {
showTags: false
}
}),
Component.DesktopOnly(Component.TableOfContents()),
Component.Backlinks(),
],

View File

@@ -11,8 +11,8 @@ import {
import { Element, Literal, Root as HtmlRoot } from "hast"
import { ReplaceFunction, findAndReplace as mdastFindReplace } from "mdast-util-find-and-replace"
import rehypeRaw from "rehype-raw"
import { argdown } from "@argdown/core"
import { remarkArgdownPlugin } from "@argdown/remark-plugin"
// import { argdown } from "@argdown/core"
// import { remarkArgdownPlugin } from "@argdown/remark-plugin"
import { SKIP, visit } from "unist-util-visit"
import path from "path"
import { splitAnchor } from "../../util/path"
@@ -36,7 +36,7 @@ export interface Options {
wikilinks: boolean
callouts: boolean
mermaid: boolean
argdown: boolean
// argdown: boolean
parseTags: boolean
parseArrows: boolean
parseBlockReferences: boolean
@@ -53,7 +53,7 @@ const defaultOptions: Options = {
wikilinks: true,
callouts: true,
mermaid: true,
argdown: true,
// argdown: true,
parseTags: true,
parseArrows: true,
parseBlockReferences: true,
@@ -542,11 +542,11 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
})
}
if (opts.argdown) {
plugins.push(() => {
return [remarkArgdownPlugin]
})
}
// if (opts.argdown) {
// plugins.push(() => {
// return [remarkArgdownPlugin]
// })
// }
return plugins
},
@@ -753,9 +753,9 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
})
}
if (opts.argdown) {
return [[remarkArgdownPlugin, { webComponent: { withoutHeader: true }}]]
}
// if (opts.argdown) {
// return [[remarkArgdownPlugin, { webComponent: { withoutHeader: true }}]]
// }
return plugins
},

View File

@@ -32,11 +32,17 @@ div.page-listing ul.tags {
}
article.popover-hint p, article.popover-hint span {
font-size: clamp(9pt, 15pt, 20pt);
font-size: clamp(11pt, 13pt, 18pt);
}
article.popover-hint ol > li {
font-size: clamp(9pt, 13pt, 15pt);
font-size: clamp(10pt, 14pt, 16pt);
}
article.popover-hint p > img {
display: block;
margin: 0 auto;
max-width: 50%;
}
blockquote.callout.quote {