Skip to content

Commit

Permalink
site update
Browse files Browse the repository at this point in the history
clipboard fix & upstream updates
  • Loading branch information
jackyzha0 authored and xy-241 committed Dec 21, 2023
1 parent 5e3a73b commit 7a12e40
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 6 deletions.
11 changes: 9 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,19 @@ Steps to reproduce the behavior:
**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
**Screenshots and Source**
If applicable, add screenshots to help explain your problem.

You can help speed up fixing the problem by either

1. providing a simple reproduction
2. linking to your Quartz repository where the problem can be observed

**Desktop (please complete the following information):**

- Device: [e.g. iPhone6]
- Quartz Version: [e.g. v4.1.2]
- `node` Version: [e.g. v18.16]
- `npm` version: [e.g. v10.1.0]
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]

Expand Down
1 change: 1 addition & 0 deletions docs/showcase.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ Want to see what Quartz can do? Here are some cool community gardens:
- [Pedro MC Fernandes's Topo da Mente](https://www.pmcf.xyz/topo-da-mente/)
- [Mau Camargo's Notkesto](https://notes.camargomau.com/)
- [Caicai's Novels](https://imoko.cc/blog/caicai/)
- [🌊 Collapsed Wave](https://collapsedwave.com/)

If you want to see your own on here, submit a [Pull Request adding yourself to this file](https://github.com/jackyzha0/quartz/blob/v4/docs/showcase.md)!
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"remark-parse": "^11.0.0",
"remark-rehype": "^11.0.0",
"remark-smartypants": "^2.0.0",
"rfdc": "^1.3.0",
"rimraf": "^5.0.5",
"serve-handler": "^6.1.5",
"shikiji": "^0.9.9",
Expand Down
1 change: 0 additions & 1 deletion quartz.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const config: QuartzConfig = {
Plugin.CreatedModifiedDate({
priority: ["frontmatter", "filesystem"], // you can add 'git' here for last modified from Git but this makes the build slower
}),
Plugin.Latex({ renderEngine: "katex" }),
Plugin.SyntaxHighlighting(),
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
Plugin.GitHubFlavoredMarkdown(),
Expand Down
4 changes: 3 additions & 1 deletion quartz/components/styles/clipboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
float: right;
right: 0;
padding: 0.4rem;
margin: 0.5rem 0.5rem;
margin-top: 0.5rem;
margin-right: 1.2rem;

color: var(--gray);
border-color: var(--dark);
background-color: var(--light);
Expand Down
1 change: 0 additions & 1 deletion quartz/styles/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ pre {
border-radius: 5px;
overflow-x: auto;
border: 1px solid var(--lightgray);
position: relative;

margin-left: 2.5rem;
margin-right: 0.5rem;
Expand Down
7 changes: 6 additions & 1 deletion quartz/util/path.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { slug as slugAnchor } from "github-slugger"
import type { Element as HastElement } from "hast"
import rfdc from "rfdc"

const clone = rfdc()

// this file must be isomorphic so it can't use node libs (e.g. path)

export const QUARTZ = "quartz"
Expand Down Expand Up @@ -121,7 +125,8 @@ const _rebaseHastElement = (
}
}

export function normalizeHastElement(el: HastElement, curBase: FullSlug, newBase: FullSlug) {
export function normalizeHastElement(rawEl: HastElement, curBase: FullSlug, newBase: FullSlug) {
const el = clone(rawEl) // clone so we dont modify the original page
_rebaseHastElement(el, "src", curBase, newBase)
_rebaseHastElement(el, "href", curBase, newBase)
if (el.children) {
Expand Down

0 comments on commit 7a12e40

Please sign in to comment.