From 3ab2bff52b92a745dcfb329d4d088b56fe5c1781 Mon Sep 17 00:00:00 2001 From: Darakuu Date: Tue, 12 Dec 2023 17:53:30 +0100 Subject: [PATCH] Adds pages deploy workflow and changes some values in the config --- .github/workflows/deploy.yml | 45 ++++++++++++++++++++++++++++++++++++ quartz.config.ts | 8 +++---- 2 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/deploy.yml 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/quartz.config.ts b/quartz.config.ts index f677a18..c394139 100644 --- a/quartz.config.ts +++ b/quartz.config.ts @@ -3,13 +3,13 @@ import * as Plugin from "./quartz/plugins" const config: QuartzConfig = { configuration: { - pageTitle: "🪴 Quartz 4.0", + pageTitle: "📚 Algoritmi", enableSPA: true, enablePopovers: true, analytics: { provider: "plausible", }, - baseUrl: "quartz.jzhao.xyz", + baseUrl: "quartz.Darakuu.algoritmi", ignorePatterns: ["private", "templates", ".obsidian"], defaultDateType: "created", theme: { @@ -50,10 +50,10 @@ const config: QuartzConfig = { priority: ["frontmatter", "filesystem"], // you can add 'git' here for last modified from Git but this makes the build slower }), Plugin.SyntaxHighlighting(), - Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }), + Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: true }), Plugin.GitHubFlavoredMarkdown(), Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }), - Plugin.Latex({ renderEngine: "katex" }), + Plugin.Latex({ renderEngine: "mathjax" }), Plugin.Description(), ], filters: [Plugin.RemoveDrafts()],