From 7a9fb6019754435c188d7efd8c78f71fb8ed980b Mon Sep 17 00:00:00 2001 From: k <61808204+killind-dev@users.noreply.github.com> Date: Sun, 5 May 2024 23:40:35 -0700 Subject: [PATCH] Quartz sync: May 5, 2024, 11:40 PM --- .github/workflows/deploy.yml | 45 ++++++++++++++++++++++++++++++++++++ content/Papers/new.md | 8 +++++++ content/{ => Papers}/note.md | 2 +- quartz.config.ts | 12 +++++----- quartz.layout.ts | 7 +++--- 5 files changed, 64 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/deploy.yml create mode 100644 content/Papers/new.md rename content/{ => Papers}/note.md (84%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..47d5cac --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 \ No newline at end of file diff --git a/content/Papers/new.md b/content/Papers/new.md new file mode 100644 index 0000000..8786db4 --- /dev/null +++ b/content/Papers/new.md @@ -0,0 +1,8 @@ +--- +title: Cool Title2 +draft: false +tags: + - example-tag +--- + +The rest of your content lives here. You can use **Markdown** here :) \ No newline at end of file diff --git a/content/note.md b/content/Papers/note.md similarity index 84% rename from content/note.md rename to content/Papers/note.md index a76c035..d9d5a5f 100644 --- a/content/note.md +++ b/content/Papers/note.md @@ -1,5 +1,5 @@ --- -title: Example Title +title: Cool Title draft: false tags: - example-tag diff --git a/quartz.config.ts b/quartz.config.ts index 4b98325..1c987be 100644 --- a/quartz.config.ts +++ b/quartz.config.ts @@ -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: { @@ -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)", }, @@ -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)", }, diff --git a/quartz.layout.ts b/quartz.layout.ts index b5a1639..cd09c0d 100644 --- a/quartz.layout.ts +++ b/quartz.layout.ts @@ -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", }, }), } @@ -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(),