mirror of
https://github.com/ZetaKebab/quartz.git
synced 2025-01-14 22:18:43 +00:00
Compare commits
17 Commits
a572f8e701
...
5aabf1faaa
Author | SHA1 | Date | |
---|---|---|---|
5aabf1faaa | |||
fa650bf623 | |||
|
cf1b3f270b | ||
|
a655cec9f6 | ||
|
a97e72f219 | ||
|
e3cfe1f22f | ||
|
535af55ec8 | ||
|
3c4d54352d | ||
|
67f3614f3d | ||
|
438ea6d73b | ||
|
d03fdc235a | ||
abd71c4e3e | |||
91837b8574 | |||
e3f604107a | |||
a65f656192 | |||
f96c408d02 | |||
4decba7b95 |
2
content/.gitignore
vendored
Normal file
2
content/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
.obsidian/workspace.json
|
||||
0- Do-Not-Commit
|
4
content/.obsidian/app.json
vendored
Normal file
4
content/.obsidian/app.json
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"alwaysUpdateLinks": true,
|
||||
"showInlineTitle": false
|
||||
}
|
11
content/.obsidian/appearance.json
vendored
Normal file
11
content/.obsidian/appearance.json
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"accentColor": "",
|
||||
"theme": "moonstone",
|
||||
"enabledCssSnippets": [
|
||||
"usage",
|
||||
"spacing",
|
||||
"highlight-color"
|
||||
],
|
||||
"cssTheme": "AnuPpuccin",
|
||||
"showViewHeader": true
|
||||
}
|
6
content/.obsidian/community-plugins.json
vendored
Normal file
6
content/.obsidian/community-plugins.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
[
|
||||
"obsidian-markdown-furigana",
|
||||
"obsidian-style-settings",
|
||||
"obsidian42-brat",
|
||||
"obsidian-opener"
|
||||
]
|
30
content/.obsidian/core-plugins-migration.json
vendored
Normal file
30
content/.obsidian/core-plugins-migration.json
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"file-explorer": true,
|
||||
"global-search": true,
|
||||
"switcher": true,
|
||||
"graph": true,
|
||||
"backlink": true,
|
||||
"canvas": true,
|
||||
"outgoing-link": true,
|
||||
"tag-pane": true,
|
||||
"properties": false,
|
||||
"page-preview": true,
|
||||
"daily-notes": true,
|
||||
"templates": true,
|
||||
"note-composer": true,
|
||||
"command-palette": true,
|
||||
"slash-command": false,
|
||||
"editor-status": true,
|
||||
"bookmarks": true,
|
||||
"markdown-importer": false,
|
||||
"zk-prefixer": false,
|
||||
"random-note": false,
|
||||
"outline": true,
|
||||
"word-count": true,
|
||||
"slides": false,
|
||||
"audio-recorder": false,
|
||||
"workspaces": false,
|
||||
"file-recovery": true,
|
||||
"publish": false,
|
||||
"sync": false
|
||||
}
|
20
content/.obsidian/core-plugins.json
vendored
Normal file
20
content/.obsidian/core-plugins.json
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
[
|
||||
"file-explorer",
|
||||
"global-search",
|
||||
"switcher",
|
||||
"graph",
|
||||
"backlink",
|
||||
"canvas",
|
||||
"outgoing-link",
|
||||
"tag-pane",
|
||||
"page-preview",
|
||||
"daily-notes",
|
||||
"templates",
|
||||
"note-composer",
|
||||
"command-palette",
|
||||
"editor-status",
|
||||
"bookmarks",
|
||||
"outline",
|
||||
"word-count",
|
||||
"file-recovery"
|
||||
]
|
22
content/.obsidian/graph.json
vendored
Normal file
22
content/.obsidian/graph.json
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"collapse-filter": true,
|
||||
"search": "",
|
||||
"showTags": false,
|
||||
"showAttachments": false,
|
||||
"hideUnresolved": false,
|
||||
"showOrphans": true,
|
||||
"collapse-color-groups": true,
|
||||
"colorGroups": [],
|
||||
"collapse-display": true,
|
||||
"showArrow": false,
|
||||
"textFadeMultiplier": 0,
|
||||
"nodeSizeMultiplier": 1,
|
||||
"lineSizeMultiplier": 1,
|
||||
"collapse-forces": true,
|
||||
"centerStrength": 0.518713248970312,
|
||||
"repelStrength": 10,
|
||||
"linkStrength": 1,
|
||||
"linkDistance": 250,
|
||||
"scale": 1,
|
||||
"close": false
|
||||
}
|
169
content/.obsidian/plugins/obsidian-markdown-furigana/main.js
vendored
Normal file
169
content/.obsidian/plugins/obsidian-markdown-furigana/main.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
content/.obsidian/plugins/obsidian-markdown-furigana/manifest.json
vendored
Normal file
10
content/.obsidian/plugins/obsidian-markdown-furigana/manifest.json
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "obsidian-markdown-furigana",
|
||||
"name": "Markdown Furigana",
|
||||
"version": "1.3.0",
|
||||
"minAppVersion": "0.9.12",
|
||||
"description": "Simple Markdown to Furigana Rendering Plugin for Obsidian.",
|
||||
"author": "Steven Kraft",
|
||||
"authorUrl": "https://github.com/steven-kraft/obsidian-markdown-furigana",
|
||||
"isDesktopOnly": false
|
||||
}
|
377
content/.obsidian/plugins/obsidian-opener/main.js
vendored
Normal file
377
content/.obsidian/plugins/obsidian-opener/main.js
vendored
Normal file
@ -0,0 +1,377 @@
|
||||
/*
|
||||
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
||||
if you want to view the source, please visit the github repository of this plugin
|
||||
*/
|
||||
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// main.ts
|
||||
var main_exports = {};
|
||||
__export(main_exports, {
|
||||
default: () => Opener
|
||||
});
|
||||
module.exports = __toCommonJS(main_exports);
|
||||
var import_obsidian2 = require("obsidian");
|
||||
|
||||
// node_modules/monkey-around/mjs/index.js
|
||||
function around(obj, factories) {
|
||||
const removers = Object.keys(factories).map((key) => around1(obj, key, factories[key]));
|
||||
return removers.length === 1 ? removers[0] : function() {
|
||||
removers.forEach((r) => r());
|
||||
};
|
||||
}
|
||||
function around1(obj, method, createWrapper) {
|
||||
const original = obj[method], hadOwn = obj.hasOwnProperty(method);
|
||||
let current = createWrapper(original);
|
||||
if (original)
|
||||
Object.setPrototypeOf(current, original);
|
||||
Object.setPrototypeOf(wrapper, current);
|
||||
obj[method] = wrapper;
|
||||
return remove;
|
||||
function wrapper(...args) {
|
||||
if (current === original && obj[method] === wrapper)
|
||||
remove();
|
||||
return current.apply(this, args);
|
||||
}
|
||||
function remove() {
|
||||
if (obj[method] === wrapper) {
|
||||
if (hadOwn)
|
||||
obj[method] = original;
|
||||
else
|
||||
delete obj[method];
|
||||
}
|
||||
if (current === original)
|
||||
return;
|
||||
current = original;
|
||||
Object.setPrototypeOf(wrapper, original || Function);
|
||||
}
|
||||
}
|
||||
|
||||
// settings.ts
|
||||
var import_obsidian = require("obsidian");
|
||||
var OpenerSettingTab = class extends import_obsidian.PluginSettingTab {
|
||||
display() {
|
||||
const { containerEl } = this;
|
||||
const plugin = this.plugin;
|
||||
containerEl.empty();
|
||||
new import_obsidian.Setting(containerEl).setName("New Tab Default").setDesc(
|
||||
"Enable to open new files in a new tab (or existing tab, if it was previously opened). Disable for default Obsidian behavior."
|
||||
).addToggle(
|
||||
(toggle) => toggle.setValue(plugin.settings.newTab).onChange((value) => {
|
||||
plugin.settings.newTab = value;
|
||||
plugin.saveSettings();
|
||||
})
|
||||
);
|
||||
new import_obsidian.Setting(containerEl).setName("PDF Default App").setDesc(
|
||||
"Enable to open pdfs with system viewer app. Disable for default behavior (open pdfs in Obsidian)."
|
||||
).addToggle(
|
||||
(toggle) => toggle.setValue(plugin.settings.PDFApp).onChange((value) => {
|
||||
plugin.settings.PDFApp = value;
|
||||
plugin.saveSettings();
|
||||
})
|
||||
);
|
||||
new import_obsidian.Setting(containerEl).setName("Default app only when Ctrl/Cmd-Key is held").setDesc(
|
||||
"Open in default app only when Ctrl/Cmd-Key is held. Disable to always\u201A open with system viewer."
|
||||
).addToggle(
|
||||
(toggle) => toggle.setValue(plugin.settings.extOnlyWhenMetaKey).onChange((value) => {
|
||||
plugin.settings.extOnlyWhenMetaKey = value;
|
||||
plugin.saveSettings();
|
||||
})
|
||||
);
|
||||
new import_obsidian.Setting(containerEl).setName("Open everything outside of Obsidian").setDesc(
|
||||
"Enable to open all obsidian supported extensions with system viewer instead. Disable for default behavior (open within Obsidian). Defaults supported extensions are 'png', 'webp', 'jpg', 'jpeg', 'gif', 'bmp', 'svg', 'mp3', 'webm', 'wav', 'm4a', 'ogg','3gp', 'flac', 'mp4', 'ogv', 'mov', 'mkv'."
|
||||
).addToggle(
|
||||
(toggle) => toggle.setValue(plugin.settings.allExt).onChange((value) => {
|
||||
plugin.settings.allExt = value;
|
||||
plugin.saveSettings();
|
||||
})
|
||||
);
|
||||
new import_obsidian.Setting(containerEl).setName("Open Outside Obsidian: Manual List").setDesc("This shouldn't be necessary, but you can manually enable custom extensions here.").addToggle(
|
||||
(toggle) => toggle.setValue(plugin.settings.custExt).onChange((value) => {
|
||||
plugin.settings.custExt = value;
|
||||
plugin.saveSettings();
|
||||
this.display();
|
||||
})
|
||||
);
|
||||
if (plugin.settings.custExt) {
|
||||
new import_obsidian.Setting(containerEl).setName("Manual List").setDesc("Enter extension names (without the dot, ie, just docx separated by newlines).").addTextArea((textArea) => {
|
||||
textArea.inputEl.rows = 5;
|
||||
textArea.setValue(plugin.settings.custExtList.join("\n")).onChange(async (value) => {
|
||||
plugin.settings.custExtList = value.split("\n");
|
||||
plugin.saveSettings();
|
||||
});
|
||||
}).settingEl.style.borderTop = "none";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// constants.ts
|
||||
var DEFAULT_SETTINGS = {
|
||||
newTab: true,
|
||||
PDFApp: true,
|
||||
extOnlyWhenMetaKey: true,
|
||||
allExt: false,
|
||||
custExt: false,
|
||||
custExtList: []
|
||||
};
|
||||
|
||||
// main.ts
|
||||
var Opener = class extends import_obsidian2.Plugin {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.isMetaKeyHeld = null;
|
||||
this.sameTabOnce = false;
|
||||
// Meta key listeners
|
||||
// arrow syntax to preserve `this` context
|
||||
this.keyDownHandler = (e) => {
|
||||
if (e.key === "Meta" || e.key === "Control") {
|
||||
this.isMetaKeyHeld = true;
|
||||
}
|
||||
};
|
||||
this.keyUpHandler = (e) => {
|
||||
if (e.key === "Meta" || e.key === "Control") {
|
||||
this.isMetaKeyHeld = false;
|
||||
}
|
||||
};
|
||||
// Mouse handler is needed because the key handler will not fire if the app is out of focus
|
||||
this.mouseDownHandler = (e) => {
|
||||
if (e.metaKey || e.ctrlKey) {
|
||||
this.isMetaKeyHeld = true;
|
||||
} else {
|
||||
this.isMetaKeyHeld = false;
|
||||
}
|
||||
};
|
||||
}
|
||||
async onload() {
|
||||
console.log("loading " + this.manifest.name + " plugin");
|
||||
await this.loadSettings();
|
||||
this.addSettingTab(new OpenerSettingTab(this.app, this));
|
||||
this.updateMetaKeyListeners();
|
||||
this.monkeyPatchOpenFile();
|
||||
this.addCommands();
|
||||
this.addMenuItem();
|
||||
}
|
||||
onunload() {
|
||||
this.uninstallMonkeyPatchOpenFile && this.uninstallMonkeyPatchOpenFile();
|
||||
this.removeMetaKeyListeners();
|
||||
console.log("unloading " + this.manifest.name + " plugin");
|
||||
}
|
||||
async loadSettings() {
|
||||
const data = await this.loadData();
|
||||
this.settings = Object.assign({}, DEFAULT_SETTINGS, data);
|
||||
}
|
||||
async saveSettings() {
|
||||
await this.saveData(this.settings);
|
||||
this.updateMetaKeyListeners();
|
||||
}
|
||||
addCommands() {
|
||||
this.addCommand({
|
||||
id: "same-tab-once",
|
||||
name: "Open next file in same tab (Obsidian default behavior)",
|
||||
checkCallback: (checking) => {
|
||||
if (checking) {
|
||||
return this.settings.newTab;
|
||||
}
|
||||
this.sameTabOnce = true;
|
||||
new import_obsidian2.Notice("Next file will open in same tab");
|
||||
}
|
||||
});
|
||||
this.addCommand({
|
||||
id: "enable-new-tab",
|
||||
name: "Enable new tab for all files",
|
||||
checkCallback: (checking) => {
|
||||
if (checking) {
|
||||
return !this.settings.newTab;
|
||||
}
|
||||
this.settings.newTab = true;
|
||||
this.saveSettings();
|
||||
new import_obsidian2.Notice("Opener: New tab for all files enabled");
|
||||
}
|
||||
});
|
||||
this.addCommand({
|
||||
id: "disable-new-tab",
|
||||
name: "Disable new tab for all files",
|
||||
checkCallback: (checking) => {
|
||||
if (checking) {
|
||||
return this.settings.newTab;
|
||||
}
|
||||
this.settings.newTab = false;
|
||||
this.saveSettings();
|
||||
new import_obsidian2.Notice("Opener: New tab for all files disabled");
|
||||
}
|
||||
});
|
||||
this.addCommand({
|
||||
id: "enable-pdf",
|
||||
name: "Enable open all PDFs with default app",
|
||||
checkCallback: (checking) => {
|
||||
if (checking) {
|
||||
return !this.settings.PDFApp;
|
||||
}
|
||||
this.settings.PDFApp = true;
|
||||
this.saveSettings();
|
||||
new import_obsidian2.Notice("Opener: Open all PDFs with default app enabled");
|
||||
}
|
||||
});
|
||||
this.addCommand({
|
||||
id: "disable-pdf",
|
||||
name: "Disable open all PDFs with default app",
|
||||
checkCallback: (checking) => {
|
||||
if (checking) {
|
||||
return this.settings.PDFApp;
|
||||
}
|
||||
this.settings.PDFApp = false;
|
||||
this.saveSettings();
|
||||
new import_obsidian2.Notice("Opener: Open all PDFs with default app disabled");
|
||||
}
|
||||
});
|
||||
this.addCommand({
|
||||
id: "open-graph-view-in-new-tab",
|
||||
name: "Open Graph View in new tab",
|
||||
callback: () => {
|
||||
this.app.commands.executeCommandById("workspace:new-tab");
|
||||
this.app.commands.executeCommandById("graph:open");
|
||||
}
|
||||
});
|
||||
}
|
||||
// add command to right-click menu
|
||||
addMenuItem() {
|
||||
this.registerEvent(
|
||||
this.app.workspace.on("file-menu", (menu, file, source, leaf) => {
|
||||
if (file instanceof import_obsidian2.TFile) {
|
||||
menu.addItem((item) => {
|
||||
item.setSection("open");
|
||||
item.setTitle("Open in same tab").onClick(() => {
|
||||
this.sameTabOnce = true;
|
||||
this.app.workspace.getLeaf().openFile(file);
|
||||
});
|
||||
});
|
||||
}
|
||||
})
|
||||
);
|
||||
}
|
||||
addMetaKeyListeners() {
|
||||
if (this.isMetaKeyHeld !== null)
|
||||
return;
|
||||
this.isMetaKeyHeld = false;
|
||||
document.addEventListener("keydown", this.keyDownHandler);
|
||||
document.addEventListener("keyup", this.keyUpHandler);
|
||||
document.addEventListener("mousedown", this.mouseDownHandler, { capture: true });
|
||||
}
|
||||
removeMetaKeyListeners() {
|
||||
if (this.isMetaKeyHeld === null)
|
||||
return;
|
||||
document.removeEventListener("keydown", this.keyDownHandler);
|
||||
document.removeEventListener("keyup", this.keyUpHandler);
|
||||
document.removeEventListener("mousedown", this.mouseDownHandler, { capture: true });
|
||||
this.isMetaKeyHeld = null;
|
||||
}
|
||||
updateMetaKeyListeners() {
|
||||
if (this.settings.extOnlyWhenMetaKey) {
|
||||
this.addMetaKeyListeners();
|
||||
} else {
|
||||
this.removeMetaKeyListeners();
|
||||
}
|
||||
}
|
||||
monkeyPatchOpenFile() {
|
||||
const parentThis = this;
|
||||
this.uninstallMonkeyPatchOpenFile = around(import_obsidian2.WorkspaceLeaf.prototype, {
|
||||
openFile(oldOpenFile) {
|
||||
return async function(file, openState) {
|
||||
var _a, _b, _c, _d, _e, _f, _g, _h;
|
||||
const defaultBehavior = () => {
|
||||
return oldOpenFile.apply(this, [file, openState]);
|
||||
};
|
||||
const preparedEmptyLeave = ((_a = this.getViewState()) == null ? void 0 : _a.type) == "empty";
|
||||
if (((_b = openState == null ? void 0 : openState.state) == null ? void 0 : _b.mode) && preparedEmptyLeave) {
|
||||
return defaultBehavior();
|
||||
}
|
||||
if (file.path == ((_c = app.workspace.getActiveFile()) == null ? void 0 : _c.path) && ((_d = openState == null ? void 0 : openState.eState) == null ? void 0 : _d.subpath)) {
|
||||
return defaultBehavior();
|
||||
}
|
||||
if (parentThis.sameTabOnce) {
|
||||
parentThis.sameTabOnce = false;
|
||||
return defaultBehavior();
|
||||
}
|
||||
const ALLEXT = ["png", "webp", "jpg", "jpeg", "gif", "bmp", "svg", "mp3", "webm", "wav", "m4a", "ogg", "3gp", "flac", "mp4", "ogv", "mov", "mkv"];
|
||||
const OBSID_OPENABLE = ALLEXT.concat(["md", "canvas", "pdf"]);
|
||||
if (parentThis.settings.PDFApp && file.extension == "pdf" || parentThis.settings.allExt && ALLEXT.includes(file.extension) || parentThis.settings.custExt && parentThis.settings.custExtList.includes(file.extension)) {
|
||||
if (!parentThis.settings.extOnlyWhenMetaKey || parentThis.isMetaKeyHeld) {
|
||||
new import_obsidian2.Notice("Opening external file with default app (Opener Plugin)");
|
||||
if (preparedEmptyLeave) {
|
||||
this.detach();
|
||||
}
|
||||
parentThis.app.openWithDefaultApp(file.path);
|
||||
return;
|
||||
} else {
|
||||
new import_obsidian2.Notice("Opener Tip: Hold Cmd/Ctrl key to open with default app");
|
||||
}
|
||||
}
|
||||
if (!parentThis.settings.newTab) {
|
||||
return defaultBehavior();
|
||||
}
|
||||
if (this.group) {
|
||||
new import_obsidian2.Notice("Opener: This is a Linked Tab! Opening in same tab therefore.");
|
||||
return defaultBehavior();
|
||||
}
|
||||
const matchingLeaves = [];
|
||||
const pushLeaveIfMatching = (leaf) => {
|
||||
var _a2;
|
||||
if (((_a2 = leaf.getViewState().state) == null ? void 0 : _a2.file) == file.path) {
|
||||
matchingLeaves.push(leaf);
|
||||
}
|
||||
};
|
||||
app.workspace.iterateRootLeaves(pushLeaveIfMatching);
|
||||
(_g = (_f = (_e = app.workspace.getLayout()) == null ? void 0 : _e.floating) == null ? void 0 : _f.children) == null ? void 0 : _g.forEach((win) => {
|
||||
var _a2;
|
||||
if ((win == null ? void 0 : win.type) !== "window")
|
||||
return console.log("Opener-Plugin: Strange floating object found (no window)", win);
|
||||
(_a2 = win.children) == null ? void 0 : _a2.forEach((tabs) => {
|
||||
var _a3;
|
||||
if ((tabs == null ? void 0 : tabs.type) !== "tabs")
|
||||
return console.log("Opener-Plugin: Strange floating object found (no tabs)", tabs);
|
||||
(_a3 = tabs.children) == null ? void 0 : _a3.forEach((leaf) => {
|
||||
if ((leaf == null ? void 0 : leaf.type) !== "leaf")
|
||||
return console.log("Opener-Plugin: Strange floating object found (no leaf)", leaf);
|
||||
pushLeaveIfMatching(app.workspace.getLeafById(leaf.id));
|
||||
});
|
||||
});
|
||||
});
|
||||
if (matchingLeaves.length) {
|
||||
if (preparedEmptyLeave) {
|
||||
new import_obsidian2.Notice(`File is now open in ${matchingLeaves.length + 1} Tabs`);
|
||||
return defaultBehavior();
|
||||
} else {
|
||||
return oldOpenFile.apply(matchingLeaves[0], [file, openState]);
|
||||
}
|
||||
}
|
||||
if (preparedEmptyLeave) {
|
||||
return defaultBehavior();
|
||||
}
|
||||
if (!((_h = parentThis.app.viewRegistry) == null ? void 0 : _h.getTypeByExtension(file.extension))) {
|
||||
return defaultBehavior();
|
||||
}
|
||||
return oldOpenFile.apply(app.workspace.getLeaf("tab"), [
|
||||
file,
|
||||
openState
|
||||
]);
|
||||
};
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
1
content/.obsidian/plugins/obsidian-opener/manifest.json
vendored
Normal file
1
content/.obsidian/plugins/obsidian-opener/manifest.json
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"id":"obsidian-opener","name":"Opener","minAppVersion":"0.15.9","description":"Open links in new/existing tabs by default. Open PDFs in System App by default. Can open other file formats in System Apps if desired.","author":"Aidan Gibson","authorUrl":"https://github.com/aidan-gibson","isDesktopOnly":false,"version":"2.1.2"}
|
5
content/.obsidian/plugins/obsidian-style-settings/data.json
vendored
Normal file
5
content/.obsidian/plugins/obsidian-style-settings/data.json
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"anuppuccin-theme-settings@@anuppuccin-theme-light": "ctp-latte",
|
||||
"anuppuccin-theme-settings@@anuppuccin-light-theme-accents": "ctp-accent-light-lavender",
|
||||
"anuppuccin-theme-settings@@anuppuccin-theme-accents": "ctp-accent-lavender"
|
||||
}
|
9858
content/.obsidian/plugins/obsidian-style-settings/main.js
vendored
Normal file
9858
content/.obsidian/plugins/obsidian-style-settings/main.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
content/.obsidian/plugins/obsidian-style-settings/manifest.json
vendored
Normal file
10
content/.obsidian/plugins/obsidian-style-settings/manifest.json
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "obsidian-style-settings",
|
||||
"name": "Style Settings",
|
||||
"version": "1.0.8",
|
||||
"minAppVersion": "0.11.5",
|
||||
"description": "Offers controls for adjusting theme, plugin, and snippet CSS variables.",
|
||||
"author": "mgmeyers",
|
||||
"authorUrl": "https://github.com/mgmeyers/obsidian-style-settings",
|
||||
"isDesktopOnly": false
|
||||
}
|
243
content/.obsidian/plugins/obsidian-style-settings/styles.css
vendored
Normal file
243
content/.obsidian/plugins/obsidian-style-settings/styles.css
vendored
Normal file
File diff suppressed because one or more lines are too long
16
content/.obsidian/plugins/obsidian42-brat/data.json
vendored
Normal file
16
content/.obsidian/plugins/obsidian42-brat/data.json
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"pluginList": [
|
||||
"aidan-gibson/obsidian-opener"
|
||||
],
|
||||
"pluginSubListFrozenVersion": [],
|
||||
"themesList": [],
|
||||
"updateAtStartup": true,
|
||||
"updateThemesAtStartup": true,
|
||||
"enableAfterInstall": true,
|
||||
"loggingEnabled": false,
|
||||
"loggingPath": "BRAT-log",
|
||||
"loggingVerboseEnabled": false,
|
||||
"debuggingMode": false,
|
||||
"notificationsEnabled": true,
|
||||
"personalAccessToken": ""
|
||||
}
|
2419
content/.obsidian/plugins/obsidian42-brat/main.js
vendored
Normal file
2419
content/.obsidian/plugins/obsidian42-brat/main.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
15
content/.obsidian/plugins/obsidian42-brat/manifest.json
vendored
Normal file
15
content/.obsidian/plugins/obsidian42-brat/manifest.json
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"id": "obsidian42-brat",
|
||||
"name": "BRAT",
|
||||
"version": "1.0.1",
|
||||
"minAppVersion": "1.4.16",
|
||||
"description": "Easily install a beta version of a plugin for testing.",
|
||||
"author": "TfTHacker",
|
||||
"authorUrl": "https://github.com/TfTHacker/obsidian42-brat",
|
||||
"helpUrl": "https://tfthacker.com/BRAT",
|
||||
"isDesktopOnly": false,
|
||||
"fundingUrl": {
|
||||
"Buy Me a Coffee": "https://bit.ly/o42-kofi",
|
||||
"Visit my site": "https://tfthacker.com"
|
||||
}
|
||||
}
|
3
content/.obsidian/plugins/obsidian42-brat/styles.css
vendored
Normal file
3
content/.obsidian/plugins/obsidian42-brat/styles.css
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.brat-modal .modal-button-container {
|
||||
margin-top: 5px !important;
|
||||
}
|
3
content/.obsidian/snippets/highlight-color.css
vendored
Normal file
3
content/.obsidian/snippets/highlight-color.css
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.cm-s-obsidian span.cm-formatting-highlight, .cm-s-obsidian span.cm-highlight, .markdown-rendered mark {
|
||||
--text-highlight-bg: #e6cee7;
|
||||
}
|
3
content/.obsidian/snippets/spacing.css
vendored
Normal file
3
content/.obsidian/snippets/spacing.css
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.cm-s-obsidian .cm-line.HyperMD-header {
|
||||
padding-top: 0;
|
||||
}
|
34
content/.obsidian/snippets/usage.css
vendored
Normal file
34
content/.obsidian/snippets/usage.css
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
.usage {
|
||||
display:flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.usage p {
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.usage .box {
|
||||
border: 1px solid black;
|
||||
border-radius: 0.5rem;
|
||||
padding: 0.2rem 0.3rem 0.2rem 0.3rem;
|
||||
display: inline-block;
|
||||
width: fit-content;
|
||||
margin: 0.2rem;
|
||||
}
|
||||
|
||||
.usage .left {
|
||||
padding-right: 1.7rem;
|
||||
|
||||
background-image: linear-gradient(black, black), linear-gradient(black, black);
|
||||
background-repeat: no-repeat;
|
||||
background-size: 8px 2px;
|
||||
background-position: top right, bottom right;
|
||||
|
||||
border-right: solid black;
|
||||
border-width: 0 2px;
|
||||
}
|
||||
|
||||
.usage .right {
|
||||
padding-left: 1rem;
|
||||
}
|
7
content/.obsidian/themes/AnuPpuccin/manifest.json
vendored
Normal file
7
content/.obsidian/themes/AnuPpuccin/manifest.json
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "AnuPpuccin",
|
||||
"version": "1.4.5",
|
||||
"minAppVersion": "0.16.0",
|
||||
"author": "Anubis",
|
||||
"authorUrl": "https://github.com/AnubisNekhet"
|
||||
}
|
8490
content/.obsidian/themes/AnuPpuccin/theme.css
vendored
Normal file
8490
content/.obsidian/themes/AnuPpuccin/theme.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
230
content/2- Conjugation/2- TeF - basics.md
Normal file
230
content/2- Conjugation/2- TeF - basics.md
Normal file
@ -0,0 +1,230 @@
|
||||
# 2- Te-Form - basics
|
||||
|
||||
## Rule
|
||||
|
||||
### Verbs
|
||||
|
||||
The easiest way to identify whether to use て or で is by looking at the preceding kana.
|
||||
If the plain (dictionary) form of the verb finishes in ぐ, ぬ, ぶ, or む, then で will be used.
|
||||
る-Verbs never use で.
|
||||
|
||||
| Ending | Ending Te-Form | Verb | Te-Form | Hiragana |
|
||||
| ------------------- | -------------- | -------------- | ----------------------------- | ------------------- |
|
||||
| **る verbs** | | | | |
|
||||
| (い・え)る | て | 食べる | 食べ==て== | たべて |
|
||||
| **う verbs** | | | | |
|
||||
| う<br>つ<br>る | <br>って<br> | 歌う<br>打つ<br>座る | 歌==って==<br>打==って==<br>座==って== | うたって<br>うって<br>すわって |
|
||||
| む<br>ぶ<br>ぬ | <br>んで | 休む<br>飛ぶ<br>死ぬ | 休==んで==<br>飛==んで==<br>死==んで== | やすんで<br>とんで<br>しんで |
|
||||
| く | いて | 歩く | 歩==いて== | あるいて |
|
||||
| ぐ | いで | 泳ぐ | 泳==いで== | およいで |
|
||||
| す | して | 話す | 話==して== | はなして |
|
||||
| **Irregular Verbs** | | | | |
|
||||
| | | する | し==て== | |
|
||||
| | | 行く | 行==って== | いって |
|
||||
| | | 来る | 来==て== | きて |
|
||||
|
||||
### Adjectives and nouns
|
||||
|
||||
| Form | Word | Word Te-Form |
|
||||
| -------------------- | ----- | ------------ |
|
||||
| **いA** + ~~い~~ く + て | おもしろい | おもしろ==くて== |
|
||||
| **なA** + で | しずか | しずか==で== |
|
||||
| **N** + で | 猫 | 猫==で== |
|
||||
|
||||
### Song
|
||||
|
||||
A common way to remember this form is by a song. Here is one sung by Hatsune Miku.
|
||||
|
||||
![Te Song](https://www.youtube.com/watch?v=Cj-P-nEPoe0)
|
||||
|
||||
| Ending | Te-Form |
|
||||
| ------ | ------- |
|
||||
| う・つ・る | って |
|
||||
| む・ぶ・ぬ | んで |
|
||||
| く | いて |
|
||||
| ぐ | いで |
|
||||
| いく | いって |
|
||||
| くる | きて |
|
||||
| する | して |
|
||||
| す | して |
|
||||
|
||||
## Basic functions
|
||||
|
||||
### Connection
|
||||
|
||||
The most basic function of the Te-Form: form connection between **verbs**.
|
||||
|
||||
> [!info] Example
|
||||
> 食べ==て=={寝|ね}る。
|
||||
> To eat, then sleep.
|
||||
|
||||
This also works with **いA**, **なA**, and **nouns**.
|
||||
|
||||
> [!info] Example
|
||||
> あの{自転車|じてんしゃ}は{便利|べんり}==で=={軽|かる}い。
|
||||
> That bicycle is useful and light.
|
||||
|
||||
### Reasons
|
||||
|
||||
Used primarily for reasons beyond control of the speaker.
|
||||
|
||||
> [!info] Example
|
||||
> 大雨==で==バスが止まりました。
|
||||
> The bus stopped with rain. (the reason is the rain)
|
||||
|
||||
### Manners
|
||||
|
||||
Highlights something being used, whether a tool, a circumstance, a situation, etc.
|
||||
|
||||
> [!info] Examples
|
||||
> 私はご{飯|はん}を{急|いそ}い==で==食べる。
|
||||
> I eat food in a hurry.
|
||||
>
|
||||
> ハサミ==で=={野菜|やさい}を{切|き}ります。
|
||||
> I cut my vegetables using scissors.
|
||||
|
||||
## Sequence and non-sequence
|
||||
|
||||
Only for **verbs**.
|
||||
|
||||
### て sequence
|
||||
|
||||
Used to list a sequence of events that happen one after another. Must be used for ordered sequence of what is being said!
|
||||
|
||||
> [!info] Example
|
||||
> パンを買==って==、食べた。
|
||||
> I bought some bread, then ate it.
|
||||
|
||||
### て non-sequence
|
||||
|
||||
The particle can also contrast things that have some sort of relationship. It can mean something like "and" or "while", but is not really similar to "but": it always has the same weight in the sentence, as opposed to expressions like けど・のに, etc.
|
||||
|
||||
> [!info] Examples
|
||||
> 朝は雨が{降|ふ}==って=={夕方|ゆう|がた}は{晴|は}れた。
|
||||
> It rained this morning, **and** then it cleared up in the afternoon. (there is no particular emphasis on either event).
|
||||
>
|
||||
> 朝は雨が降った==けど==夕方は晴れた。
|
||||
> It rained this morning, **but then** it cleared up in the afternoon. (there is emphasis on the fact that it stopped raining).
|
||||
|
||||
### てから
|
||||
|
||||
Used to say that something will happen after something else : "after doing (A), (B)".
|
||||
Only for **verbs**.
|
||||
|
||||
> [!info] Example
|
||||
> {洗濯|せん|たく}をし==てから==、出かける。
|
||||
> After doing the laundry, I will go out.
|
||||
|
||||
⚠ Simple present (るから) and past (たから) have a meaning closer to "because" or "since".
|
||||
|
||||
## States
|
||||
|
||||
### ている form
|
||||
|
||||
| Plain | Polite |
|
||||
| ----- | ------ |
|
||||
| ている | ています |
|
||||
| てる | てます |
|
||||
|
||||
ている is often shortened to てる. This applies to all tenses, including てる, てて, てた, and even てます.
|
||||
Only for **verbs**.
|
||||
|
||||
Sometimes ている can become しとる (like in manga).
|
||||
|
||||
#### 1/ State of existence: is being done
|
||||
|
||||
Used to convey a constant state of the verb being done, executed, etc. It is continuing to exist in a specific state.
|
||||
|
||||
> [!info] Example
|
||||
>今ラーメンを食べ==ています==。
|
||||
>I am eating ramen now.
|
||||
|
||||
#### 2/ State of existence: has been done
|
||||
|
||||
Expresses "existing in a of state of having been done".
|
||||
In English, a different tense would have been used, but in Japanese it is also Te-form.
|
||||
|
||||
> [!info] Examples
|
||||
> お前はもう死==んでいる==。
|
||||
> You are already dead.
|
||||
>
|
||||
> クラスは始ま==っている==。
|
||||
> The class has already started. (existing in the state of having started)
|
||||
>
|
||||
> お母さんは今買い物に行==っています==。
|
||||
> My mom went out to go shopping. (existing in the state of having gone)
|
||||
>
|
||||
> 先生がめちゃ{怒|おこ}==っている==。
|
||||
> My teacher is very angry. (existing in the state of having gotten angry)
|
||||
|
||||
Then, how to differentiate from the past form? Think about if the action can happen twice. For example, something cannot start twice, so it will use ている. The same applies for dying. This will not work for all verbs, but for the majority.
|
||||
|
||||
> [!info] Example
|
||||
> ピアノが{落|お}ち==ている==。
|
||||
> The piano has fallen. (existing in the state of having fallen)
|
||||
> Something has fallen and is already on the ground, so it cannot fall again. ている will be used.
|
||||
|
||||
#### 3/ State of existence: frequent and repeated action
|
||||
|
||||
Used for the repetition of common activities. They are not continuing per se, but are occurring at such a frequency that they are considered to be continuous.
|
||||
For example: going to work, having a hobby, doing sports, etc.
|
||||
|
||||
You can see it as "continuing to exist in a specific state".
|
||||
Expression of time are often used with this meaning.
|
||||
|
||||
> [!info] Examples
|
||||
> 私は毎日ギターを{弾|ひ}い==ている==。
|
||||
> I play my guitar everyday (hobby).
|
||||
>
|
||||
> {毎晩|まい|ばん}9時に{寝|ね}==ている==。
|
||||
> I sleep at 9 every night (habit).
|
||||
>
|
||||
> {彼|かれ}は学校で{働|はたら}い==ている==。
|
||||
> He works at a school (regular activity).
|
||||
|
||||
### ていた・ていました
|
||||
|
||||
Means that something was happening, someone was doing something. If an object has changed state and is still in the state, it can also be used, for example a broken window.
|
||||
Only for **verbs**.
|
||||
|
||||
ていた can be shortened to てた, and ていました to てました.
|
||||
|
||||
> [!info] Example
|
||||
> {勉強|べんきょう}をし==ていた==けど、今は{休|やす}んでいる。
|
||||
> I was studying but am taking a break right now.
|
||||
|
||||
### てある
|
||||
|
||||
Shares with ている the meaning of being in an ongoing state, meaning that something has been done. It is also similar to a simple past form. However, the nuance is that this form is only used with transitive verbs on inanimate objects, meaning either:
|
||||
* the action has been done intentionally (focuses on a person's intention),
|
||||
* the focus is the resulting state of the action.
|
||||
|
||||
> [!info] Examples
|
||||
> 明日の{弁当|べん|とう}はもう作==ってある==。
|
||||
> Tomorrow's lunch has already been prepared.
|
||||
>
|
||||
> ドアが{開|あ}け==てある==。
|
||||
> The door has been left open (intentionally).
|
||||
|
||||
Only for **transitive verbs**.
|
||||
|
||||
### ておく
|
||||
|
||||
Means to do something in advance, to complete something in preparation for something.
|
||||
If used in past form ておいた, means that the completed action was in preparation for the current situation.
|
||||
Only for **verbs**.
|
||||
|
||||
Can be shortened as とく.
|
||||
|
||||
> [!info] Example
|
||||
> メロンパンを買==っておく==。
|
||||
> I'll buy a melon pan (in preparation for a something, for example a picnic).
|
||||
|
||||
### まだ~ていません
|
||||
|
||||
This means "still have not done something".
|
||||
Only for **verbs**.
|
||||
|
||||
> [!info] Example
|
||||
> このゲームは==まだ==し==ていない==。
|
||||
> I haven't played this game yet.
|
118
content/2- Conjugation/3- TeF - manner - give receive.md
Normal file
118
content/2- Conjugation/3- TeF - manner - give receive.md
Normal file
@ -0,0 +1,118 @@
|
||||
# 3- Te-Form - manner of doing - give & receive
|
||||
|
||||
## Manner of doing
|
||||
|
||||
### てしまう
|
||||
|
||||
<div class="usage">
|
||||
<div>
|
||||
<p><span class="box">Vて</span> + しまう</p>
|
||||
<p><span class="box">V<strike>て</strike></span> + ちゃう</p>
|
||||
<p><span class="box">V<strike>で</strike></span> + じゃう</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
This means "by accident, unfortunately" or "completely".
|
||||
Only for **verbs**.
|
||||
|
||||
> [!info] Examples
|
||||
> {宿題|しゅく|だい}もうや==ってしまいました==。
|
||||
> I've already finished my homework.
|
||||
>
|
||||
> もう{全部|ぜん|ぶ}食べ==ちゃった==。。。
|
||||
> I've already eaten everything...
|
||||
|
||||
### てみる
|
||||
|
||||
Used to express the meaning of trying something, usually something new.
|
||||
Can also be used to suggest to someone to try something.
|
||||
Used in past tense, it implies a successful attempt.
|
||||
Only for **verbs**.
|
||||
|
||||
> [!info] Example
|
||||
> これを食べ==てみる==か?
|
||||
> Do you want to try this food?
|
||||
|
||||
### ていく・てくる
|
||||
|
||||
ていく combines the Te-form with the verb 行く.
|
||||
てくる combines the Te-form with the verb 来る.
|
||||
Both can be used when representing time or a physical place. Kanji and hiragana can be used, and they can be conjugated.
|
||||
Only for **verbs**.
|
||||
|
||||
The first meaning is the following:
|
||||
* ていく means to go and do something.
|
||||
* てくる means to do and come back.
|
||||
|
||||
> [!info] Examples
|
||||
> 家で食べ==ていく==か?
|
||||
> Want to go and eat at my home?
|
||||
>
|
||||
> {晩御飯|ばんごはん}を買==ってきた==。
|
||||
> I brought tonight's dinner. (bought and came with).
|
||||
|
||||
The second meaning is:
|
||||
* ていく means to start doing something with your own agency.
|
||||
* てくる on the contrary, is when something comes to the listener without agency from them.
|
||||
|
||||
> [!info] Examples
|
||||
> 彼は駅まで歩い==ていきます==。
|
||||
> He walk to the station.
|
||||
>
|
||||
> 雨が{降|ふ}==ってきた==。
|
||||
> It started raining.
|
||||
|
||||
## Give and receive
|
||||
|
||||
Extends the common forms of あげる, くれる, and もらう, but what is received or given is now a verb, instead of a noun.
|
||||
|
||||
### てあげる
|
||||
|
||||
Expresses that someone is doing or did something for someone else.
|
||||
The person that received the favor is followed by the に particle.
|
||||
Only for **verbs**.
|
||||
|
||||
> [!info] Example
|
||||
> 母にケーキを買==ってあげた==。
|
||||
> I bought a cake for my mother.
|
||||
>
|
||||
|
||||
### てくれる
|
||||
|
||||
Used to ask a favor from someone or to say that something was done to the speaker.
|
||||
The person that received the favor (usually oneself and thus omitted) is followed by the に particle.
|
||||
Only for **verbs**.
|
||||
|
||||
> [!info] Example
|
||||
> {友達|とも|だち}がギターを{教|おし}え==てくれる==。
|
||||
> My friend will teach me the guitar.
|
||||
|
||||
#### てくれてありがとう
|
||||
|
||||
This form expresses gratitude for something that benefited the speaker. It is not used for something expected.
|
||||
Only for **verbs**.
|
||||
|
||||
> [!info] Example
|
||||
> 今日来==てくれてありがとう==!
|
||||
> Thank you for coming today!
|
||||
|
||||
### てもらう
|
||||
|
||||
This form expresses gratitude for a favor that the recipient generally requested for, or where gratitude is the focus.
|
||||
Only for **verbs**.
|
||||
|
||||
> [!info] Example
|
||||
> {友達|とも|だち}が手伝==ってもらった==。
|
||||
> My friend helped me (and I owe him / because I asked him and I am grateful)
|
||||
|
||||
### てくれない・てもらえない
|
||||
|
||||
Used as a mean to ask for a favor like "would you, could you?". Used in a similar form to じゃないか.
|
||||
Only for **verbs**.
|
||||
|
||||
> [!info] Example
|
||||
> {電気|でん|き}をつけ==てもらえない==か。
|
||||
> Could you please turn on the lights?
|
||||
>
|
||||
> 電気をつけ==ないでもらえない==か。
|
||||
> Could you please turn off the light?
|
69
content/2- Conjugation/4- TeF - even if.md
Normal file
69
content/2- Conjugation/4- TeF - even if.md
Normal file
@ -0,0 +1,69 @@
|
||||
# 4- Te-Form - even if
|
||||
|
||||
For **verbs**, **adjectives** and **nouns**.
|
||||
|
||||
## Even if: ても・でも
|
||||
|
||||
Works by adding も to the Te-Form.
|
||||
|
||||
> [!info] Example
|
||||
> 安==くても==、買いません。
|
||||
> Even if it's cheap, I won't buy it.
|
||||
>
|
||||
> 好き==でも==、買えなかった。
|
||||
> Even if I liked it, I didn't bought it.
|
||||
|
||||
### てもいい
|
||||
|
||||
Means that something is "alright". Frequently used for questions.
|
||||
|
||||
> [!info] Example
|
||||
> ここに{座|すわ}==ってもいい==?
|
||||
> Is it okay if I sit here?
|
||||
>
|
||||
> {冷|つめ}たい==でもいい==。
|
||||
> It's okay even if it's cold.
|
||||
|
||||
### ても~なくても
|
||||
|
||||
Means "whether or not". A form a bit strange, where the verb is repeated two times in the following manner: VてもVなくても.
|
||||
|
||||
> [!info] Example
|
||||
> 食べ==ても==食べ==なくても==、{構|かま}いません。
|
||||
> It doesn't matter whether you eat it orb not.
|
||||
|
||||
### ても構わない・てもかまわない
|
||||
|
||||
Means that it doesn't matter or that the speaker doesn't mind.
|
||||
|
||||
> [!info] Example
|
||||
> 雨が{降|ふ}==っても構わない==。
|
||||
> I don't mind if it rains.
|
||||
|
||||
### ても始まらない・てもはじまらない
|
||||
|
||||
Means that even if you do it, it will never start: that it's no use.
|
||||
Only for **verbs**.
|
||||
|
||||
> [!info] Example
|
||||
> この時間に会==っても始まらない==。
|
||||
> There's no point meeting at this time of the day.
|
||||
|
||||
### いくら~ても・どんなに~ても
|
||||
|
||||
Means "no matter how much".
|
||||
|
||||
> [!info] Example
|
||||
> ==いくら==好き==でも==、買えません。
|
||||
> No matter how much you like it, I won't buy it for you.
|
||||
>
|
||||
> ==どんなに==高==くても==、買います。
|
||||
> No matter how expensive, I'll buy it.
|
||||
|
||||
### たとえ〜ても
|
||||
|
||||
Used to make a supposition. Would translate to something like "even if... is the case".
|
||||
|
||||
> [!info] Example
|
||||
> ==たとえ=={新幹線|しん|かん|せん}==でも==、1時間かかる。
|
||||
> Even if you take the Shinkansen, it will take one hour.
|
@ -1,4 +1,4 @@
|
||||
# Japanese Grammar (JPG)
|
||||
# Japanese Grammar
|
||||
|
||||
Welcome to my Japanese Grammar project!
|
||||
|
||||
|
@ -28,8 +28,9 @@ This part of the configuration concerns anything that can affect the whole site.
|
||||
- `{ provider: 'google', tagId: '<your-google-tag>' }`: use Google Analytics;
|
||||
- `{ provider: 'plausible' }` (managed) or `{ provider: 'plausible', host: '<your-plausible-host>' }` (self-hosted): use [Plausible](https://plausible.io/);
|
||||
- `{ provider: 'umami', host: '<your-umami-host>', websiteId: '<your-umami-website-id>' }`: use [Umami](https://umami.is/);
|
||||
- `{ provider: 'goatcounter', websiteId: 'my-goatcounter-id' }` (managed) or `{ provider: 'goatcounter', websiteId: 'my-goatcounter-id', host: 'my-goatcounter-domain.com', scriptSrc: 'https://my-url.to/counter.js' }` (self-hosted) use [GoatCounter](https://goatcounter.com)
|
||||
- `{ provider: 'goatcounter', websiteId: 'my-goatcounter-id' }` (managed) or `{ provider: 'goatcounter', websiteId: 'my-goatcounter-id', host: 'my-goatcounter-domain.com', scriptSrc: 'https://my-url.to/counter.js' }` (self-hosted) use [GoatCounter](https://goatcounter.com);
|
||||
- `{ provider: 'posthog', apiKey: '<your-posthog-project-apiKey>', host: '<your-posthog-host>' }`: use [Posthog](https://posthog.com/);
|
||||
- `{ provider: 'tinylytics', siteId: '<your-site-id>' }`: use [Tinylytics](https://tinylytics.app/);
|
||||
- `locale`: used for [[i18n]] and date formatting
|
||||
- `baseUrl`: this is used for sitemaps and RSS feeds that require an absolute URL to know where the canonical 'home' of your site lives. This is normally the deployed URL of your site (e.g. `quartz.jzhao.xyz` for this site). Do not include the protocol (i.e. `https://`) or any leading or trailing slashes.
|
||||
- This should also include the subpath if you are [[hosting]] on GitHub pages without a custom domain. For example, if my repository is `jackyzha0/quartz`, GitHub pages would deploy to `https://jackyzha0.github.io/quartz` and the `baseUrl` would be `jackyzha0.github.io/quartz`.
|
||||
|
@ -27,5 +27,6 @@ Want to see what Quartz can do? Here are some cool community gardens:
|
||||
- [sspaeti.com's Second Brain](https://brain.sspaeti.com/)
|
||||
- [🪴Aster's notebook](https://notes.asterhu.com)
|
||||
- [🥷🏻🌳🍃 Computer Science & Thinkering Garden](https://notes.yxy.ninja)
|
||||
- [A Pattern Language - Christopher Alexander (Architecture)](https://patternlanguage.cc/)
|
||||
|
||||
If you want to see your own on here, submit a [Pull Request adding yourself to this file](https://github.com/jackyzha0/quartz/blob/v4/docs/showcase.md)!
|
||||
|
466
package-lock.json
generated
466
package-lock.json
generated
@ -22,7 +22,7 @@
|
||||
"github-slugger": "^2.0.0",
|
||||
"globby": "^14.0.1",
|
||||
"gray-matter": "^4.0.3",
|
||||
"hast-util-to-html": "^9.0.0",
|
||||
"hast-util-to-html": "^9.0.1",
|
||||
"hast-util-to-jsx-runtime": "^2.3.0",
|
||||
"hast-util-to-string": "^3.0.0",
|
||||
"is-absolute-url": "^4.0.1",
|
||||
@ -53,9 +53,9 @@
|
||||
"remark-rehype": "^11.1.0",
|
||||
"remark-smartypants": "^2.1.0",
|
||||
"rfdc": "^1.3.1",
|
||||
"rimraf": "^5.0.5",
|
||||
"rimraf": "^5.0.7",
|
||||
"serve-handler": "^6.1.5",
|
||||
"shiki": "^1.2.3",
|
||||
"shiki": "^1.6.0",
|
||||
"source-map-support": "^0.5.21",
|
||||
"to-vfile": "^8.0.0",
|
||||
"toml": "^3.0.0",
|
||||
@ -81,8 +81,8 @@
|
||||
"@types/yargs": "^17.0.32",
|
||||
"esbuild": "^0.19.9",
|
||||
"prettier": "^3.2.4",
|
||||
"tsx": "^4.7.1",
|
||||
"typescript": "^5.4.3"
|
||||
"tsx": "^4.9.3",
|
||||
"typescript": "^5.4.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.14",
|
||||
@ -820,9 +820,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@shikijs/core": {
|
||||
"version": "1.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@shikijs/core/-/core-1.2.3.tgz",
|
||||
"integrity": "sha512-SM+aiQVaEK2P53dEcsvhq9+LJPr0rzwezHbMQhHaSrPN4OlOB4vp1qTdhVEKfMg6atdq8s9ZotWW/CSCzWftwg=="
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@shikijs/core/-/core-1.6.0.tgz",
|
||||
"integrity": "sha512-NIEAi5U5R7BLkbW1pG/ZKu3eb1lzc3/+jD0lFsuxMT7zjaf9bbNwdNyMr7zh/Zl8EXQtQ+MYBAt5G+JLu+5DlA=="
|
||||
},
|
||||
"node_modules/@sindresorhus/merge-streams": {
|
||||
"version": "2.3.0",
|
||||
@ -2432,9 +2432,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/get-tsconfig": {
|
||||
"version": "4.7.2",
|
||||
"resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.2.tgz",
|
||||
"integrity": "sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==",
|
||||
"version": "4.7.4",
|
||||
"resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.4.tgz",
|
||||
"integrity": "sha512-ofbkKj+0pjXjhejr007J/fLf+sW+8H7K5GCm+msC8q3IpvgjobpyPqSRFemNyIMxklC0zeJpi7VDFna19FacvQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"resolve-pkg-maps": "^1.0.0"
|
||||
@ -2710,9 +2710,9 @@
|
||||
"integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
|
||||
},
|
||||
"node_modules/hast-util-to-html": {
|
||||
"version": "9.0.0",
|
||||
"resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.0.tgz",
|
||||
"integrity": "sha512-IVGhNgg7vANuUA2XKrT6sOIIPgaYZnmLx3l/CCOAK0PtgfoHrZwX7jCSYyFxHTrGmC6S9q8aQQekjp4JPZF+cw==",
|
||||
"version": "9.0.1",
|
||||
"resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.1.tgz",
|
||||
"integrity": "sha512-hZOofyZANbyWo+9RP75xIDV/gq+OUKx+T46IlwERnKmfpwp81XBFbT9mi26ws+SJchA4RVUQwIBJpqEOBhMzEQ==",
|
||||
"dependencies": {
|
||||
"@types/hast": "^3.0.0",
|
||||
"@types/unist": "^3.0.0",
|
||||
@ -5419,9 +5419,9 @@
|
||||
"integrity": "sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg=="
|
||||
},
|
||||
"node_modules/rimraf": {
|
||||
"version": "5.0.5",
|
||||
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz",
|
||||
"integrity": "sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==",
|
||||
"version": "5.0.7",
|
||||
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.7.tgz",
|
||||
"integrity": "sha512-nV6YcJo5wbLW77m+8KjH8aB/7/rxQy9SZ0HY5shnwULfS+9nmTtVXAJET5NdZmCzA4fPI/Hm1wo/Po/4mopOdg==",
|
||||
"dependencies": {
|
||||
"glob": "^10.3.7"
|
||||
},
|
||||
@ -5429,7 +5429,7 @@
|
||||
"rimraf": "dist/esm/bin.mjs"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
"node": ">=14.18"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/isaacs"
|
||||
@ -5571,11 +5571,11 @@
|
||||
}
|
||||
},
|
||||
"node_modules/shiki": {
|
||||
"version": "1.2.3",
|
||||
"resolved": "https://registry.npmjs.org/shiki/-/shiki-1.2.3.tgz",
|
||||
"integrity": "sha512-+v7lO5cJMeV2N2ySK4l+51YX3wTh5I49SLjAOs1ch1DbUfeEytU1Ac9KaZPoZJCVBGycDZ09OBQN5nbcPFc5FQ==",
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/shiki/-/shiki-1.6.0.tgz",
|
||||
"integrity": "sha512-P31ROeXcVgW/k3Z+vUUErcxoTah7ZRaimctOpzGuqAntqnnSmx1HOsvnbAB8Z2qfXPRhw61yptAzCsuKOhTHwQ==",
|
||||
"dependencies": {
|
||||
"@shikijs/core": "1.2.3"
|
||||
"@shikijs/core": "1.6.0"
|
||||
}
|
||||
},
|
||||
"node_modules/signal-exit": {
|
||||
@ -5903,13 +5903,13 @@
|
||||
"integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q=="
|
||||
},
|
||||
"node_modules/tsx": {
|
||||
"version": "4.7.1",
|
||||
"resolved": "https://registry.npmjs.org/tsx/-/tsx-4.7.1.tgz",
|
||||
"integrity": "sha512-8d6VuibXHtlN5E3zFkgY8u4DX7Y3Z27zvvPKVmLon/D4AjuKzarkUBTLDBgj9iTQ0hg5xM7c/mYiRVM+HETf0g==",
|
||||
"version": "4.9.3",
|
||||
"resolved": "https://registry.npmjs.org/tsx/-/tsx-4.9.3.tgz",
|
||||
"integrity": "sha512-czVbetlILiyJZI5zGlj2kw9vFiSeyra9liPD4nG+Thh4pKTi0AmMEQ8zdV/L2xbIVKrIqif4sUNrsMAOksx9Zg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"esbuild": "~0.19.10",
|
||||
"get-tsconfig": "^4.7.2"
|
||||
"esbuild": "~0.20.2",
|
||||
"get-tsconfig": "^4.7.3"
|
||||
},
|
||||
"bin": {
|
||||
"tsx": "dist/cli.mjs"
|
||||
@ -5921,10 +5921,416 @@
|
||||
"fsevents": "~2.3.3"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/aix-ppc64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz",
|
||||
"integrity": "sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==",
|
||||
"cpu": [
|
||||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"aix"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/android-arm": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.2.tgz",
|
||||
"integrity": "sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==",
|
||||
"cpu": [
|
||||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"android"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/android-arm64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.2.tgz",
|
||||
"integrity": "sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"android"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/android-x64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.2.tgz",
|
||||
"integrity": "sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"android"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/darwin-arm64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.2.tgz",
|
||||
"integrity": "sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/darwin-x64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.2.tgz",
|
||||
"integrity": "sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/freebsd-arm64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.2.tgz",
|
||||
"integrity": "sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"freebsd"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/freebsd-x64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.2.tgz",
|
||||
"integrity": "sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"freebsd"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/linux-arm": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.2.tgz",
|
||||
"integrity": "sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==",
|
||||
"cpu": [
|
||||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/linux-arm64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.2.tgz",
|
||||
"integrity": "sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/linux-ia32": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.2.tgz",
|
||||
"integrity": "sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==",
|
||||
"cpu": [
|
||||
"ia32"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/linux-loong64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.2.tgz",
|
||||
"integrity": "sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==",
|
||||
"cpu": [
|
||||
"loong64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/linux-mips64el": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.2.tgz",
|
||||
"integrity": "sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==",
|
||||
"cpu": [
|
||||
"mips64el"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/linux-ppc64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.2.tgz",
|
||||
"integrity": "sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==",
|
||||
"cpu": [
|
||||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/linux-riscv64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.2.tgz",
|
||||
"integrity": "sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==",
|
||||
"cpu": [
|
||||
"riscv64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/linux-s390x": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.2.tgz",
|
||||
"integrity": "sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==",
|
||||
"cpu": [
|
||||
"s390x"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/linux-x64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.2.tgz",
|
||||
"integrity": "sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/netbsd-x64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.2.tgz",
|
||||
"integrity": "sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"netbsd"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/openbsd-x64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.2.tgz",
|
||||
"integrity": "sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"openbsd"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/sunos-x64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.2.tgz",
|
||||
"integrity": "sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"sunos"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/win32-arm64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.2.tgz",
|
||||
"integrity": "sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/win32-ia32": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.2.tgz",
|
||||
"integrity": "sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==",
|
||||
"cpu": [
|
||||
"ia32"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/@esbuild/win32-x64": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.2.tgz",
|
||||
"integrity": "sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/tsx/node_modules/esbuild": {
|
||||
"version": "0.20.2",
|
||||
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.2.tgz",
|
||||
"integrity": "sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==",
|
||||
"dev": true,
|
||||
"hasInstallScript": true,
|
||||
"bin": {
|
||||
"esbuild": "bin/esbuild"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@esbuild/aix-ppc64": "0.20.2",
|
||||
"@esbuild/android-arm": "0.20.2",
|
||||
"@esbuild/android-arm64": "0.20.2",
|
||||
"@esbuild/android-x64": "0.20.2",
|
||||
"@esbuild/darwin-arm64": "0.20.2",
|
||||
"@esbuild/darwin-x64": "0.20.2",
|
||||
"@esbuild/freebsd-arm64": "0.20.2",
|
||||
"@esbuild/freebsd-x64": "0.20.2",
|
||||
"@esbuild/linux-arm": "0.20.2",
|
||||
"@esbuild/linux-arm64": "0.20.2",
|
||||
"@esbuild/linux-ia32": "0.20.2",
|
||||
"@esbuild/linux-loong64": "0.20.2",
|
||||
"@esbuild/linux-mips64el": "0.20.2",
|
||||
"@esbuild/linux-ppc64": "0.20.2",
|
||||
"@esbuild/linux-riscv64": "0.20.2",
|
||||
"@esbuild/linux-s390x": "0.20.2",
|
||||
"@esbuild/linux-x64": "0.20.2",
|
||||
"@esbuild/netbsd-x64": "0.20.2",
|
||||
"@esbuild/openbsd-x64": "0.20.2",
|
||||
"@esbuild/sunos-x64": "0.20.2",
|
||||
"@esbuild/win32-arm64": "0.20.2",
|
||||
"@esbuild/win32-ia32": "0.20.2",
|
||||
"@esbuild/win32-x64": "0.20.2"
|
||||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.4.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz",
|
||||
"integrity": "sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==",
|
||||
"version": "5.4.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz",
|
||||
"integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
|
10
package.json
10
package.json
@ -48,7 +48,7 @@
|
||||
"github-slugger": "^2.0.0",
|
||||
"globby": "^14.0.1",
|
||||
"gray-matter": "^4.0.3",
|
||||
"hast-util-to-html": "^9.0.0",
|
||||
"hast-util-to-html": "^9.0.1",
|
||||
"hast-util-to-jsx-runtime": "^2.3.0",
|
||||
"hast-util-to-string": "^3.0.0",
|
||||
"is-absolute-url": "^4.0.1",
|
||||
@ -79,9 +79,9 @@
|
||||
"remark-rehype": "^11.1.0",
|
||||
"remark-smartypants": "^2.1.0",
|
||||
"rfdc": "^1.3.1",
|
||||
"rimraf": "^5.0.5",
|
||||
"rimraf": "^5.0.7",
|
||||
"serve-handler": "^6.1.5",
|
||||
"shiki": "^1.2.3",
|
||||
"shiki": "^1.6.0",
|
||||
"source-map-support": "^0.5.21",
|
||||
"to-vfile": "^8.0.0",
|
||||
"toml": "^3.0.0",
|
||||
@ -104,7 +104,7 @@
|
||||
"@types/yargs": "^17.0.32",
|
||||
"esbuild": "^0.19.9",
|
||||
"prettier": "^3.2.4",
|
||||
"tsx": "^4.7.1",
|
||||
"typescript": "^5.4.3"
|
||||
"tsx": "^4.9.3",
|
||||
"typescript": "^5.4.5"
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ import * as Plugin from "./quartz/plugins"
|
||||
*/
|
||||
const config: QuartzConfig = {
|
||||
configuration: {
|
||||
pageTitle: "[JPG]",
|
||||
pageTitle: "Japanese",
|
||||
enableSPA: true,
|
||||
enablePopovers: true,
|
||||
analytics: {
|
||||
@ -66,7 +66,9 @@ const config: QuartzConfig = {
|
||||
}),
|
||||
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: true, enableYouTubeEmbed: true }),
|
||||
Plugin.GitHubFlavoredMarkdown(),
|
||||
Plugin.TableOfContents(),
|
||||
Plugin.TableOfContents({
|
||||
maxDepth: 4,
|
||||
}),
|
||||
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
|
||||
Plugin.Description(),
|
||||
],
|
||||
|
@ -30,6 +30,10 @@ export type Analytics =
|
||||
apiKey: string
|
||||
host?: string
|
||||
}
|
||||
| {
|
||||
provider: "tinylytics"
|
||||
siteId: string
|
||||
}
|
||||
|
||||
export interface GlobalConfiguration {
|
||||
pageTitle: string
|
||||
|
@ -15,6 +15,8 @@ import zh from "./locales/zh-CN"
|
||||
import vi from "./locales/vi-VN"
|
||||
import pt from "./locales/pt-BR"
|
||||
import hu from "./locales/hu-HU"
|
||||
import fa from "./locales/fa-IR"
|
||||
import pl from "./locales/pl-PL"
|
||||
|
||||
export const TRANSLATIONS = {
|
||||
"en-US": en,
|
||||
@ -54,6 +56,8 @@ export const TRANSLATIONS = {
|
||||
"vi-VN": vi,
|
||||
"pt-BR": pt,
|
||||
"hu-HU": hu,
|
||||
"fa-IR": fa,
|
||||
"pl-PL": pl,
|
||||
} as const
|
||||
|
||||
export const defaultTranslation = "en-US"
|
||||
|
83
quartz/i18n/locales/fa-IR.ts
Normal file
83
quartz/i18n/locales/fa-IR.ts
Normal file
@ -0,0 +1,83 @@
|
||||
import { Translation } from "./definition"
|
||||
|
||||
export default {
|
||||
propertyDefaults: {
|
||||
title: "بدون عنوان",
|
||||
description: "توضیح خاصی اضافه نشده است",
|
||||
},
|
||||
components: {
|
||||
callout: {
|
||||
note: "یادداشت",
|
||||
abstract: "چکیده",
|
||||
info: "اطلاعات",
|
||||
todo: "اقدام",
|
||||
tip: "نکته",
|
||||
success: "تیک",
|
||||
question: "سؤال",
|
||||
warning: "هشدار",
|
||||
failure: "شکست",
|
||||
danger: "خطر",
|
||||
bug: "باگ",
|
||||
example: "مثال",
|
||||
quote: "نقل قول",
|
||||
},
|
||||
backlinks: {
|
||||
title: "بکلینکها",
|
||||
noBacklinksFound: "بدون بکلینک",
|
||||
},
|
||||
themeToggle: {
|
||||
lightMode: "حالت روشن",
|
||||
darkMode: "حالت تاریک",
|
||||
},
|
||||
explorer: {
|
||||
title: "مطالب",
|
||||
},
|
||||
footer: {
|
||||
createdWith: "ساخته شده با",
|
||||
},
|
||||
graph: {
|
||||
title: "نمای گراف",
|
||||
},
|
||||
recentNotes: {
|
||||
title: "یادداشتهای اخیر",
|
||||
seeRemainingMore: ({ remaining }) => `${remaining} یادداشت دیگر →`,
|
||||
},
|
||||
transcludes: {
|
||||
transcludeOf: ({ targetSlug }) => `از ${targetSlug}`,
|
||||
linkToOriginal: "پیوند به اصلی",
|
||||
},
|
||||
search: {
|
||||
title: "جستجو",
|
||||
searchBarPlaceholder: "مطلبی را جستجو کنید",
|
||||
},
|
||||
tableOfContents: {
|
||||
title: "فهرست",
|
||||
},
|
||||
contentMeta: {
|
||||
readingTime: ({ minutes }) => `زمان تقریبی مطالعه: ${minutes} دقیقه`,
|
||||
},
|
||||
},
|
||||
pages: {
|
||||
rss: {
|
||||
recentNotes: "یادداشتهای اخیر",
|
||||
lastFewNotes: ({ count }) => `${count} یادداشت اخیر`,
|
||||
},
|
||||
error: {
|
||||
title: "یافت نشد",
|
||||
notFound: "این صفحه یا خصوصی است یا وجود ندارد",
|
||||
},
|
||||
folderContent: {
|
||||
folder: "پوشه",
|
||||
itemsUnderFolder: ({ count }) =>
|
||||
count === 1 ? ".یک مطلب در این پوشه است" : `${count} مطلب در این پوشه است.`,
|
||||
},
|
||||
tagContent: {
|
||||
tag: "برچسب",
|
||||
tagIndex: "فهرست برچسبها",
|
||||
itemsUnderTag: ({ count }) =>
|
||||
count === 1 ? "یک مطلب با این برچسب" : `${count} مطلب با این برچسب.`,
|
||||
showingFirst: ({ count }) => `در حال نمایش ${count} برچسب.`,
|
||||
totalTags: ({ count }) => `${count} برچسب یافت شد.`,
|
||||
},
|
||||
},
|
||||
} as const satisfies Translation
|
83
quartz/i18n/locales/pl-PL.ts
Normal file
83
quartz/i18n/locales/pl-PL.ts
Normal file
@ -0,0 +1,83 @@
|
||||
import { Translation } from "./definition"
|
||||
|
||||
export default {
|
||||
propertyDefaults: {
|
||||
title: "Bez nazwy",
|
||||
description: "Brak opisu",
|
||||
},
|
||||
components: {
|
||||
callout: {
|
||||
note: "Notatka",
|
||||
abstract: "Streszczenie",
|
||||
info: "informacja",
|
||||
todo: "Do zrobienia",
|
||||
tip: "Wskazówka",
|
||||
success: "Zrobione",
|
||||
question: "Pytanie",
|
||||
warning: "Ostrzeżenie",
|
||||
failure: "Usterka",
|
||||
danger: "Niebiezpieczeństwo",
|
||||
bug: "Błąd w kodzie",
|
||||
example: "Przykład",
|
||||
quote: "Cytat",
|
||||
},
|
||||
backlinks: {
|
||||
title: "Odnośniki zwrotne",
|
||||
noBacklinksFound: "Brak połączeń zwrotnych",
|
||||
},
|
||||
themeToggle: {
|
||||
lightMode: "Trzyb jasny",
|
||||
darkMode: "Tryb ciemny",
|
||||
},
|
||||
explorer: {
|
||||
title: "Przeglądaj",
|
||||
},
|
||||
footer: {
|
||||
createdWith: "Stworzone z użyciem",
|
||||
},
|
||||
graph: {
|
||||
title: "Graf",
|
||||
},
|
||||
recentNotes: {
|
||||
title: "Najnowsze notatki",
|
||||
seeRemainingMore: ({ remaining }) => `Zobacz ${remaining} nastepnych →`,
|
||||
},
|
||||
transcludes: {
|
||||
transcludeOf: ({ targetSlug }) => `Osadzone ${targetSlug}`,
|
||||
linkToOriginal: "Łącze do oryginału",
|
||||
},
|
||||
search: {
|
||||
title: "Szukaj",
|
||||
searchBarPlaceholder: "Search for something",
|
||||
},
|
||||
tableOfContents: {
|
||||
title: "Spis treści",
|
||||
},
|
||||
contentMeta: {
|
||||
readingTime: ({ minutes }) => `${minutes} min. czytania `,
|
||||
},
|
||||
},
|
||||
pages: {
|
||||
rss: {
|
||||
recentNotes: "Najnowsze notatki",
|
||||
lastFewNotes: ({ count }) => `Ostatnie ${count} notatek`,
|
||||
},
|
||||
error: {
|
||||
title: "Nie znaleziono",
|
||||
notFound: "Ta strona jest prywatna lub nie istnieje.",
|
||||
},
|
||||
folderContent: {
|
||||
folder: "Folder",
|
||||
itemsUnderFolder: ({ count }) =>
|
||||
count === 1 ? "W tym folderze jest 1 element." : `Elementów w folderze: ${count}.`,
|
||||
},
|
||||
tagContent: {
|
||||
tag: "Znacznik",
|
||||
tagIndex: "Spis znaczników",
|
||||
itemsUnderTag: ({ count }) =>
|
||||
count === 1 ? "Oznaczony 1 element." : `Elementów z tym znacznikiem: ${count}.`,
|
||||
showingFirst: ({ count }) => `Pokazuje ${count} pierwszych znaczników.`,
|
||||
totalTags: ({ count }) => `Znalezionych wszystkich znaczników: ${count}.`,
|
||||
},
|
||||
},
|
||||
} as const satisfies Translation
|
@ -136,6 +136,14 @@ function addGlobalPageResources(ctx: BuildCtx, componentResources: ComponentReso
|
||||
posthog.init('${cfg.analytics.apiKey}',{api_host:'${cfg.analytics.host ?? "https://app.posthog.com"}'})\`
|
||||
document.head.appendChild(posthogScript)
|
||||
`)
|
||||
} else if (cfg.analytics?.provider === "tinylytics") {
|
||||
const siteId = cfg.analytics.siteId
|
||||
componentResources.afterDOMLoaded.push(`
|
||||
const tinylyticsScript = document.createElement("script")
|
||||
tinylyticsScript.src = "https://tinylytics.app/embed/${siteId}.js"
|
||||
tinylyticsScript.defer = true
|
||||
document.head.appendChild(tinylyticsScript)
|
||||
`)
|
||||
}
|
||||
|
||||
if (cfg.enableSPA) {
|
||||
|
@ -88,6 +88,10 @@ ul.overflow::after, ol.overflow::after {
|
||||
font-size: 1.15rem;
|
||||
}
|
||||
|
||||
& h4 {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
& h3 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
@ -143,7 +147,7 @@ footer {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.usage .p {
|
||||
.usage p {
|
||||
margin:0;
|
||||
}
|
||||
|
||||
@ -171,3 +175,8 @@ footer {
|
||||
.usage .right {
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
.usage .r {
|
||||
margin-left: 0.25rem;
|
||||
margin-right: 0.25rem;
|
||||
}
|
Loading…
Reference in New Issue
Block a user