mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-28 07:14:05 -06:00
updates to index file and for custom layout
This commit is contained in:
parent
2c5b1394c8
commit
580eb00a66
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@ -1 +0,0 @@
|
||||
github: [jackyzha0]
|
||||
@ -1,29 +1,15 @@
|
||||
---
|
||||
layout: OnlyContentPage
|
||||
---
|
||||
|
||||
- #TEAM finalizes repo roles and [list of content]([[Backend Files for Migration]]) for migration to `dealstitch-infra repo`.
|
||||
- #MO deletes agreed content in `dealstitch-backend` and merges to `main` .
|
||||
- #MR updates agreed content in `dealstitch-infra`, #MO reviews/merges to `main`.
|
||||
- #MR restructures `dealstitch-infra` folders based on this [directory structure]([[Revised Infra Directory]]).
|
||||
- #MR works through [[AWS Clean-Up List]], keeping #CW in the loop.
|
||||
- #MO deletes any unneeded `print_loggers` in both repos (displaced by DynamoDB).
|
||||
- #MO Implements WorkOS AuthKit to `dealstitch-backend`
|
||||
- https://workos.com/docs/user-management/authkit
|
||||
- https://github.com/workos/workos-python
|
||||
- [[WorkOS Secrets]] <-- Python keys <mark style="background: #FF5582A6;">!!!</mark>
|
||||
- #MR implements WorkOS AuthKit in `dealstitch-frontend
|
||||
- https://workos.com/docs/user-management/authkit
|
||||
- https://github.com/workos/authkit-nextjs
|
||||
- https://github.com/workos/next-authkit-example
|
||||
- [[WorkOS Secrets]] <-- Next.js keys <mark style="background: #FF5582A6;">!!!</mark>
|
||||
- <mark style="background: #FF5582A6;"> Decision Point: </mark> Create custom login component or skip?
|
||||
- #MO implements IP white list API token with Bright Data, delete IP checks in codebase.
|
||||
- https://docs.brightdata.com/api-reference/proxy-manager/whitelist_implements
|
||||
- https://docs.brightdata.com/proxy-networks/proxy-manager/security
|
||||
- #MR begins rollout of `shad-cn`components to `dealstitch-frontend` with #CW
|
||||
- Ensure consistent/full use of Tailwind CSS props.
|
||||
- Ensure consistent/full use of `shad-cn` default components and file names/locations.
|
||||
- Setup `tailwind.config.js` or `.ts` and `components.json` to support [shad-cn CLI](https://ui.shadcn.com/docs/cli).
|
||||
- Review repo structure/files, advise #CW on clean-up of the directory.
|
||||
- **<mark style="background: #BBFABBA6;">GOAL:</mark>** Removal of all Material UI dependencies, replaced by `shad-cn` 'New York' theme.
|
||||
- #MO creates plan for Pinecone rollout of `entity-matcher` service to prod with #CW
|
||||
- #MR refactors `web_scraper/` based on [this plan](Refactored Web-Scrapers Directory) ahead of agentic `url_originators` development.
|
||||
- **Weekly Work Commitments:** Due by Mon 12pm MDT / Mon 9pm TRT / Tues 3am PHT. Simply send a note on Teams with the GitHub issue numbers you're working on. Include which issues you expect to submit a PR for during the week. This helps us gauge pacing and identify unclear issues before the weekly call. If an issue is listed without a PR expectation, it could be because 1. the issue is unclear (we can discuss), 2. the scope/complexity is unclear (we can discuss), or 3. the effort required exceeds your available time for the week.
|
||||
|
||||
- **Weekly Progress Call:** Tues 10-11am MDT / Tues 7-8pm TRT / Wed 12-1am PHT.
|
||||
|
||||
- **Mark "@" Mentions Availability (Teams / GitHub):** 1-2 hour response time from 12-5am PHT unless explained.
|
||||
|
||||
- **Weekly PRs (Reviewed):** Complete within 48 business hours (Mon-Fri) unless explained via "@" in GitHub.
|
||||
|
||||
- **Blackout Dates (Unavailable):** Communicate any planned unavailability (vacation, holidays, etc.) at least 2 weeks in advance.
|
||||
|
||||
---
|
||||
29
layouts/OnlyLayout.ts
Normal file
29
layouts/OnlyLayout.ts
Normal file
@ -0,0 +1,29 @@
|
||||
import { PageLayout, SharedLayout } from "../quartz/cfg"
|
||||
import * as Component from "../quartz/components"
|
||||
|
||||
// Shared components remain the same
|
||||
export const sharedPageComponents: SharedLayout = {
|
||||
head: Component.Head(),
|
||||
header: [],
|
||||
afterBody: [],
|
||||
footer: Component.Footer({
|
||||
links: {
|
||||
Home: "/",
|
||||
"About Us": "/about",
|
||||
Contact: "/contact",
|
||||
// Add more links as needed
|
||||
},
|
||||
}),
|
||||
}
|
||||
|
||||
// Custom layout without left and right sections
|
||||
export const OnlyContentPageLayout: PageLayout = {
|
||||
beforeBody: [
|
||||
Component.Breadcrumbs(),
|
||||
Component.ArticleTitle(),
|
||||
Component.ContentMeta(),
|
||||
Component.TagList(),
|
||||
],
|
||||
left: [], // Remove left-hand navigation
|
||||
right: [], // Remove right-hand content
|
||||
}
|
||||
@ -1,5 +1,6 @@
|
||||
import { QuartzConfig } from "./quartz/cfg"
|
||||
import * as Plugin from "./quartz/plugins"
|
||||
import { OnlyContentPage } from "./quartz/plugins/emitters/OnlyContentPage"
|
||||
|
||||
/**
|
||||
* Quartz 4.0 Configuration
|
||||
@ -77,6 +78,7 @@ const config: QuartzConfig = {
|
||||
Plugin.AliasRedirects(),
|
||||
Plugin.ComponentResources(),
|
||||
Plugin.ContentPage(),
|
||||
OnlyContentPage(), // Register the custom emitter
|
||||
Plugin.FolderPage(),
|
||||
Plugin.TagPage(),
|
||||
Plugin.ContentIndex({
|
||||
|
||||
@ -6,12 +6,7 @@ export const sharedPageComponents: SharedLayout = {
|
||||
head: Component.Head(),
|
||||
header: [],
|
||||
afterBody: [],
|
||||
footer: Component.Footer({
|
||||
links: {
|
||||
GitHub: "https://github.com/jackyzha0/quartz",
|
||||
"Discord Community": "https://discord.gg/cRFFHYye7t",
|
||||
},
|
||||
}),
|
||||
footer: Component.Footer(),
|
||||
}
|
||||
|
||||
// components for pages that display a single page (e.g. a single note)
|
||||
|
||||
55
quartz/plugins/emitters/OnlyContentPage.tsx
Normal file
55
quartz/plugins/emitters/OnlyContentPage.tsx
Normal file
@ -0,0 +1,55 @@
|
||||
import { OnlyContentPageLayout, sharedPageComponents } from "../../../layouts/OnlyLayout"
|
||||
import Content from "../../components/pages/Content"
|
||||
import { pageResources, renderPage } from "../../components/renderPage" // Update this line
|
||||
import { QuartzComponentProps } from "../../components/types"
|
||||
import { FilePath, pathToRoot } from "../../util/path"
|
||||
import { QuartzEmitterPlugin } from "../types"
|
||||
import { write } from "./helpers"
|
||||
|
||||
export const OnlyContentPage: QuartzEmitterPlugin = () => {
|
||||
const layout = {
|
||||
...sharedPageComponents,
|
||||
...OnlyContentPageLayout,
|
||||
pageBody: Content(),
|
||||
}
|
||||
|
||||
const { head, header, beforeBody, pageBody, afterBody, footer } = layout
|
||||
|
||||
return {
|
||||
name: "OnlyContentPage",
|
||||
getQuartzComponents() {
|
||||
return [head, ...header, ...beforeBody, pageBody, ...afterBody, footer]
|
||||
},
|
||||
async emit(ctx, content, resources) {
|
||||
const cfg = ctx.cfg.configuration
|
||||
const fps: FilePath[] = []
|
||||
const allFiles = content.map((c) => c[1].data)
|
||||
|
||||
for (const [tree, file] of content) {
|
||||
const slug = file.data.slug!
|
||||
const externalResources = pageResources(pathToRoot(slug), resources)
|
||||
const componentData: QuartzComponentProps = {
|
||||
ctx,
|
||||
fileData: file.data,
|
||||
externalResources,
|
||||
cfg,
|
||||
children: [],
|
||||
tree,
|
||||
allFiles,
|
||||
}
|
||||
|
||||
const htmlContent = renderPage(cfg, slug, componentData, layout, externalResources)
|
||||
const fp = (await write({
|
||||
ctx,
|
||||
content: htmlContent,
|
||||
slug,
|
||||
ext: ".html",
|
||||
})) as FilePath
|
||||
|
||||
fps.push(fp)
|
||||
}
|
||||
|
||||
return fps
|
||||
},
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user