Skip to content

Commit

Permalink
Quartz sync: May 5, 2024, 11:40 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
akiradev0x committed May 6, 2024
1 parent 1d0d1be commit 7a9fb60
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 10 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy Quartz site to GitHub Pages

on:
push:
branches:
- v4

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for git info
- uses: actions/setup-node@v3
with:
node-version: 18.14
- name: Install Dependencies
run: npm ci
- name: Build Quartz
run: npx quartz build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: public

deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
8 changes: 8 additions & 0 deletions content/Papers/new.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Cool Title2
draft: false
tags:
- example-tag
---

The rest of your content lives here. You can use **Markdown** here :)
2 changes: 1 addition & 1 deletion content/note.md → content/Papers/note.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Example Title
title: Cool Title
draft: false
tags:
- example-tag
Expand Down
12 changes: 6 additions & 6 deletions quartz.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import * as Plugin from "./quartz/plugins"
*/
const config: QuartzConfig = {
configuration: {
pageTitle: "🪴 Quartz 4.0",
pageTitle: "Codegen Guide",
enableSPA: true,
enablePopovers: true,
analytics: {
provider: "plausible",
},
locale: "en-US",
baseUrl: "quartz.jzhao.xyz",
baseUrl: "codegen.wiki",
ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "created",
theme: {
Expand All @@ -28,12 +28,12 @@ const config: QuartzConfig = {
},
colors: {
lightMode: {
light: "#faf8f8",
light: "#f5ede4",
lightgray: "#e5e5e5",
gray: "#b8b8b8",
darkgray: "#4e4e4e",
dark: "#2b2b2b",
secondary: "#284b63",
dark: "#1f1d1c",
secondary: "#524f4b",
tertiary: "#84a59d",
highlight: "rgba(143, 159, 169, 0.15)",
},
Expand All @@ -43,7 +43,7 @@ const config: QuartzConfig = {
gray: "#646464",
darkgray: "#d4d4d4",
dark: "#ebebec",
secondary: "#7b97aa",
secondary: "#c2c2c2",
tertiary: "#84a59d",
highlight: "rgba(143, 159, 169, 0.15)",
},
Expand Down
7 changes: 4 additions & 3 deletions quartz.layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ export const sharedPageComponents: SharedLayout = {
header: [],
footer: Component.Footer({
links: {
GitHub: "https://github.com/jackyzha0/quartz",
"Discord Community": "https://discord.gg/cRFFHYye7t",
GitHub: "https://github.com/entropy-research",
},
}),
}
Expand All @@ -26,7 +25,9 @@ export const defaultContentPageLayout: PageLayout = {
Component.MobileOnly(Component.Spacer()),
Component.Search(),
Component.Darkmode(),
Component.DesktopOnly(Component.Explorer()),
Component.DesktopOnly(Component.Explorer({
title: "Table Of Contents"
})),
],
right: [
Component.Graph(),
Expand Down

0 comments on commit 7a9fb60

Please sign in to comment.