Skip to content

Commit

Permalink
Quartz sync: May 1, 2024, 3:02 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
zenodotus280 committed May 1, 2024
1 parent 4d742cc commit 8aea3dd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
4 changes: 2 additions & 2 deletions content/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ Alexander's approach emphasizes the importance of context-sensitive design and t

I'd like to say that I wrote some clever site scraper and then algorithmically generated everything but the real answer is that it was mostly done by hand with a template for the pattern structure, the help of Obsidian's auto-complete combined with a keyboard macro to convert (and correct) the links, and *many dozens of hours* typing, copy-pasting, and tweaking. I reference these patterns directly in my Obsidian vault. I began in 2020 but I didn't work on it in earnest until November of 2023 with a final push in April of 2024.

The "master" version is my Obsidian vault. I have a custom Fish function (`apl-copy`) using `rsync` to copy from my vault to the Markdown repo that contains the patterns (and list of patterns), the README, and the LICENSE as markdown files. The Quartz repo has a "content" folder that simply symlinks to this markdown folder for a source directory so that a change in one is reflected automatically in the other. I could copy to both folders from my vault but a symlink seems more appropriate despite the total size being <500 KB.
The "master" version is my Obsidian vault. I have a custom Fish function (`apl-copy`) using `rsync` to copy from my vault to the Markdown repo that contains the patterns (and list of patterns), the README, and the LICENSE as markdown files.

I have another custom Fish shell function (`apl-preview`) to build and serve the website locally and then a third function (`apl-deploy`) to push the changes so that GitHub Actions can take over from there. These custom functions save me from the hassle of remembering which commands to use and in which directory.
I have another custom Fish shell function (`apl-preview`) to copy the patterns to the 'content' directory in the Quartz repo then build and serve the website locally. A third function (`apl-deploy`) pushes the changes so that GitHub Actions can take over from there. These custom functions save me from the hassle of remembering which commands to use and in which directory.

## TODO
> [!todo]
Expand Down
2 changes: 1 addition & 1 deletion quartz.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const config: QuartzConfig = {
provider: "null",
},
locale: "en-US",
baseUrl: "google.com",
baseUrl: "zenodotus280.github.io/apl",
ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "modified",
theme: {
Expand Down
3 changes: 2 additions & 1 deletion quartz.layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export const sharedPageComponents: SharedLayout = {
header: [Component.TagList()],
footer: Component.Footer({
links: {
GitHub: "https://github.com/jackyzha0/quartz",
'Website (GitHub)': "https://github.com/zenodotus280/apl",
'Markdown (GitHub)': "https://github.com/zenodotus280/apl-md",
},
}),
}
Expand Down

0 comments on commit 8aea3dd

Please sign in to comment.