-
Notifications
You must be signed in to change notification settings - Fork 8
chore: upgrading docual and marked #442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| .cache |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,17 +1,26 @@ | ||||||||||||||||||
| import type { DoculaOptions } from 'docula'; | ||||||||||||||||||
| import fs from 'node:fs'; | ||||||||||||||||||
| import path from 'node:path'; | ||||||||||||||||||
| import process from 'node:process'; | ||||||||||||||||||
| import dotenv from "dotenv"; | ||||||||||||||||||
|
|
||||||||||||||||||
| export const options = { | ||||||||||||||||||
| dotenv.config({ quiet: true }); | ||||||||||||||||||
|
|
||||||||||||||||||
| export const options: Partial<DoculaOptions> = { | ||||||||||||||||||
| githubPath: 'jaredwray/writr', | ||||||||||||||||||
| siteTitle: 'Writr', | ||||||||||||||||||
| siteDescription: 'Beautiful Website for Your Projects', | ||||||||||||||||||
| siteUrl: 'https://writr.org', | ||||||||||||||||||
| themeMode: 'light', | ||||||||||||||||||
| ai: { | ||||||||||||||||||
| provider: 'anthropic', | ||||||||||||||||||
| apiKey: process.env.ANTHROPIC_API_KEY!, | ||||||||||||||||||
jaredwray marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||
| }, | ||||||||||||||||||
|
Comment on lines
+15
to
+18
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using a non-null assertion
Suggested change
|
||||||||||||||||||
| }; | ||||||||||||||||||
|
|
||||||||||||||||||
| export const onPrepare = async config => { | ||||||||||||||||||
| export const onPrepare = async (options: DoculaOptions) => { | ||||||||||||||||||
| const readmePath = path.join(process.cwd(), './README.md'); | ||||||||||||||||||
| const readmeSitePath = path.join(config.sitePath, 'README.md'); | ||||||||||||||||||
| const readmeSitePath = path.join(options.sitePath, 'README.md'); | ||||||||||||||||||
| const readme = await fs.promises.readFile(readmePath, 'utf8'); | ||||||||||||||||||
| const updatedReadme = readme.replace('', ''); | ||||||||||||||||||
| console.log('writing updated readme to', readmeSitePath); | ||||||||||||||||||
|
|
||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,32 @@ | ||
| :root { | ||
| --font-family: 'Open Sans', sans-serif; | ||
|
|
||
| --color-primary: #373232; | ||
| --color-secondary: #FF6808; | ||
| --color-secondary-dark: #FF6808; | ||
| --color-text: #373232; | ||
|
|
||
| --background: #ffffff; | ||
| --home-background: #ffffff; | ||
| --header-background: #ffffff; | ||
|
|
||
| --sidebar-background: #ffffff; | ||
| --sidebar-text: #322d3c; | ||
| --sidebar-text-active: #7d7887; | ||
|
|
||
| --border: rgba(238,238,245,1); | ||
|
|
||
| --background-search-highlight: var(--color-secondary-dark); | ||
| --color-search-highlight: #ffffff; | ||
| --search-input-background: var(--header-background); | ||
|
|
||
| --code: rgba(238,238,245,1); | ||
| --bg: #121212; | ||
| --fg: #ffffff; | ||
| --border: rgba(255, 255, 255, 0.1); | ||
| --border-strong: rgba(255, 255, 255, 0.2); | ||
| --border-hover: rgba(255, 255, 255, 0.4); | ||
| --surface: #262626; | ||
| --surface-hover: rgba(255, 255, 255, 0.1); | ||
| --muted: #c5cdd3; | ||
| --muted-fg: rgba(255, 255, 255, 0.65); | ||
| --code-bg: rgba(255, 255, 255, 0.075); | ||
| --pre-bg: rgba(255, 255, 255, 0.05); | ||
| --link: #6ea8fe; | ||
| --scrollbar: rgba(255, 255, 255, 0.2); | ||
| --header-height: 81px; | ||
| } | ||
|
|
||
| --pagefind-ui-text: var(--color-text) !important; | ||
| --pagefind-ui-font: var(--font-family) !important; | ||
| --pagefind-ui-background: var(--background) !important; | ||
| --pagefind-ui-border: var(--border) !important; | ||
| --pagefind-ui-scale: .9 !important; | ||
| [data-theme="light"] { | ||
| --bg: #ffffff; | ||
| --fg: #1a1a1a; | ||
| --border: rgba(0, 0, 0, 0.1); | ||
| --border-strong: rgba(0, 0, 0, 0.15); | ||
| --border-hover: rgba(0, 0, 0, 0.3); | ||
| --surface: #f0f0f0; | ||
| --surface-hover: rgba(0, 0, 0, 0.06); | ||
| --muted: #6b7280; | ||
| --muted-fg: rgba(0, 0, 0, 0.5); | ||
| --code-bg: rgba(0, 0, 0, 0.05); | ||
| --pre-bg: rgba(0, 0, 0, 0.03); | ||
| --link: #0969da; | ||
| --scrollbar: rgba(0, 0, 0, 0.2); | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.