Skip to content

Commit

Permalink
36-change-wiki-logo (#73)
Browse files Browse the repository at this point in the history
* * Completes Change wiki logo #36
* Trying preview step in `build-deploy-wiki.yml`
* Docs on change at `wiki/development/quartz-wiki-dev/Modifying `quarts.config.ts`.md`

* * Update action to only trigger on pull requests

* * Add checkout step

* * Update wiki download step

* * Consolidated wiki build workflow into single job

* * Disabled preview step
* Added config copy

---------

Co-authored-by: ehharvey <[email protected]>
  • Loading branch information
github-actions[bot] and ehharvey authored Sep 29, 2024
1 parent 5d23585 commit 0426b3c
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-deploy-wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
- name: Install dependencies
run: npm install
working-directory: quartz

- name: Copy quarts.config.ts from wiki
run: cp wiki/quartz.config.ts quartz/quartz.config.ts

- name: Build wiki
run: npx quartz build -d '../wiki' -o '../wiki-public'
Expand Down
3 changes: 2 additions & 1 deletion wiki/.obsidian/app.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"autoPairMarkdown": false,
"attachmentFolderPath": "screenshots"
"attachmentFolderPath": "screenshots",
"showUnsupportedFiles": true
}
17 changes: 9 additions & 8 deletions wiki/.obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"state": {
"type": "markdown",
"state": {
"file": "development/Typical Development Workflow.md",
"file": "development/quartz-wiki-dev/Modifying `quarts.config.ts`.md",
"mode": "source",
"source": false
}
Expand Down Expand Up @@ -85,7 +85,7 @@
"state": {
"type": "backlink",
"state": {
"file": "development/Typical Development Workflow.md",
"file": "development/quartz-wiki-dev/Modifying `quarts.config.ts`.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
Expand All @@ -102,7 +102,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "development/Typical Development Workflow.md",
"file": "development/quartz-wiki-dev/Modifying `quarts.config.ts`.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
Expand All @@ -125,7 +125,7 @@
"state": {
"type": "outline",
"state": {
"file": "development/Typical Development Workflow.md"
"file": "development/quartz-wiki-dev/Modifying `quarts.config.ts`.md"
}
}
}
Expand All @@ -143,14 +143,14 @@
"canvas:Create new canvas": false,
"daily-notes:Open today's daily note": false,
"templates:Insert template": false,
"command-palette:Open command palette": false,
"publish:Publish changes...": false
"command-palette:Open command palette": false
}
},
"active": "279246194ced8bbf",
"lastOpenFiles": [
"development/How to complete issues.md",
"development/Typical Development Workflow.md",
"development/quartz-wiki-dev/Modifying `quarts.config.ts`.md",
"development/quartz-wiki-dev",
"screenshots/Pasted image 20240928150358.png",
"screenshots/Pasted image 20240928150356.png",
"screenshots/Pasted image 20240928150347.png",
Expand All @@ -161,12 +161,13 @@
"screenshots/Pasted image 20240928145237.png",
"screenshots/Pasted image 20240928145157.png",
"screenshots/Pasted image 20240928145033.png",
"development/How to complete issues.md",
"contributors/Daphne Duong.md",
"GitHub CLI.md",
"Git.md",
"development/Getting Started.md",
"contributors/Parth Gajjar.md",
"contributors/Emil Harvey.md",
"contributors/Daphne Duong.md",
"contributors/Boa Im.md",
"Hello World.md",
"index.md",
Expand Down
11 changes: 11 additions & 0 deletions wiki/development/quartz-wiki-dev/Modifying `quarts.config.ts`.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
This page describes notes on modifying [[quartz.config.ts]]
# Overview
* The `.github/workflows/build-deploy-wiki.yml` GitHub Action builds our wiki
* This action clones the `quartz` wiki and runs build scripts
* In order to complete #36, we have a configuration file at `wiki/quartz.config.ts` that the GitHub Action copies and uses
# How-to's
## Changing header image
* By default, quartz will create a "Title" image using the `config.configuration.pageTitle` property
# References
* https://preemchro.me/Datadump/site-modifications#home-image
* https://quartz.jzhao.xyz/configuration
99 changes: 99 additions & 0 deletions wiki/quartz.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
// Ignore these import errors
// @ts-ignore
import { QuartzConfig } from "./quartz/cfg"
// @ts-ignore
import * as Plugin from "./quartz/plugins"

/**
* Quartz 4.0 Configuration
*
* This is the config that we use to build emilharvey.ca/lms-2024/
*
* Our github action uses this file when building the site.
*
* See https://quartz.jzhao.xyz/configuration for more information.
*/
const config: QuartzConfig = {
configuration: {
pageTitle: "LMS 2024 Wiki",
enableSPA: true,
enablePopovers: true,
analytics: {
provider: "plausible",
},
locale: "en-US",
ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "created",
theme: {
fontOrigin: "googleFonts",
cdnCaching: true,
typography: {
header: "Schibsted Grotesk",
body: "Source Sans Pro",
code: "IBM Plex Mono",
},
colors: {
lightMode: {
light: "#faf8f8",
lightgray: "#e5e5e5",
gray: "#b8b8b8",
darkgray: "#4e4e4e",
dark: "#2b2b2b",
secondary: "#284b63",
tertiary: "#84a59d",
highlight: "rgba(143, 159, 169, 0.15)",
textHighlight: "#fff23688",
},
darkMode: {
light: "#161618",
lightgray: "#393639",
gray: "#646464",
darkgray: "#d4d4d4",
dark: "#ebebec",
secondary: "#7b97aa",
tertiary: "#84a59d",
highlight: "rgba(143, 159, 169, 0.15)",
textHighlight: "#b3aa0288",
},
},
},
},
plugins: {
transformers: [
Plugin.FrontMatter(),
Plugin.CreatedModifiedDate({
priority: ["frontmatter", "filesystem"],
}),
Plugin.SyntaxHighlighting({
theme: {
light: "github-light",
dark: "github-dark",
},
keepBackground: false,
}),
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
Plugin.GitHubFlavoredMarkdown(),
Plugin.TableOfContents(),
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
Plugin.Description(),
Plugin.Latex({ renderEngine: "katex" }),
],
filters: [Plugin.RemoveDrafts()],
emitters: [
Plugin.AliasRedirects(),
Plugin.ComponentResources(),
Plugin.ContentPage(),
Plugin.FolderPage(),
Plugin.TagPage(),
Plugin.ContentIndex({
enableSiteMap: true,
enableRSS: true,
}),
Plugin.Assets(),
Plugin.Static(),
Plugin.NotFoundPage(),
],
},
}

export default config

0 comments on commit 0426b3c

Please sign in to comment.