Compare commits

...

10 Commits

6 changed files with 181 additions and 21 deletions

146
.gitignore vendored
View File

@@ -1,6 +1,4 @@
.DS_Store .DS_Store
.gitignore
node_modules
public public
prof prof
tsconfig.tsbuildinfo tsconfig.tsbuildinfo
@@ -11,3 +9,147 @@ private/
replit.nix replit.nix
content/ content/
**/*.bak **/*.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 > “[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) [Join the Discord Community](https://discord.gg/cRFFHYye7t)
## Sponsors ### Sponsors
<p align="center"> <p align="center">
<a href="https://github.com/sponsors/jackyzha0"> <a href="https://github.com/sponsors/jackyzha0">

View File

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

View File

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

View File

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

View File

@@ -32,11 +32,17 @@ div.page-listing ul.tags {
} }
article.popover-hint p, article.popover-hint span { 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 { 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 { blockquote.callout.quote {