mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-21 00:30:12 -06:00
* feat: initial mkdocs setup * chore: lock * fix: config + start getting docs working * fix: remove lots more redundant :type docs, update config more * feat: split up clients * feat: add pydoclint * fix: rm defaults from docstrings * fix: pydoclint errors * feat: run pydoclint in ci * fix: lint on 3.13 * debug: try explicit config path * fix: ignore venv * feat: index, styling * fix: rm footer * fix: more style tweaks * feat: generated docs * fix: refactor a bit * fix: regen * Revert "fix: regen" This reverts commit 7f66adc77840ad96d0eafe55c8dd467f71eb50fb. * feat: improve prompting * feat: add docs, modify theme config to enable toc for docs * fix: lint * fix: lint * feat: regenerate * feat: bs4 for html parsing * feat: preview correctly * fix: exclude site subdir from all the linters * refactor: break up script into components * feat: remove a bunch more stuff from the html * feat: prettier, enable toc * fix: enable tocs in more places + sort properly * fix: code blocks, ordering * fix: ordering * feat: finish up feature clients * fix: rm unused deps * fix: routing + property tags + sidebar * fix: hatchet client + formatting * fix: allow selecting single set of files * fix: lint * rm: cruft * fix: naming * fix: runs client attrs * fix: rm cruft page * feat: internal linking + top level description * [Python]: Fixing some more issues (#1573) * fix: pass priority through from the task * fix: improve eof handling slightly * chore: version * fix: improve eof handling * fix: send prio from durable * fix: naming * cleanup: use a variable * chore: version * feat: comment explaining page depth thing * chore: bump ver * feat: standalone docs * fix: prompting + heading levels
64 lines
1.4 KiB
TypeScript
64 lines
1.4 KiB
TypeScript
import React from "react";
|
|
import Image from "next/image";
|
|
import { useConfig } from "nextra-theme-docs";
|
|
|
|
const config = {
|
|
logo: (
|
|
<Image src="/hatchet_logo.png" alt="Hatchet logo" width={120} height={35} />
|
|
),
|
|
head: () => {
|
|
const { title } = useConfig();
|
|
|
|
const fallbackTitle = "Hatchet Documentation";
|
|
|
|
return (
|
|
<>
|
|
<title>{title ? `${title} - ${fallbackTitle}` : fallbackTitle}</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="icon" type="image/png" href="/favicon.ico" />
|
|
</>
|
|
);
|
|
},
|
|
primaryHue: {
|
|
dark: 210,
|
|
light: 210,
|
|
},
|
|
primarySaturation: {
|
|
dark: 60,
|
|
light: 60,
|
|
},
|
|
logoLink: "https://hatchet.run",
|
|
project: {
|
|
link: "https://github.com/hatchet-dev/hatchet",
|
|
},
|
|
chat: {
|
|
link: "https://hatchet.run/discord",
|
|
},
|
|
docsRepositoryBase:
|
|
"https://github.com/hatchet-dev/hatchet/blob/main/frontend/docs",
|
|
feedback: {
|
|
labels: "Feedback",
|
|
useLink: (...args: unknown[]) =>
|
|
`https://github.com/hatchet-dev/hatchet/issues/new`,
|
|
},
|
|
footer: false,
|
|
sidebar: {
|
|
defaultMenuCollapseLevel: 2,
|
|
toggleButton: true,
|
|
},
|
|
darkMode: true,
|
|
nextThemes: {
|
|
defaultTheme: "dark",
|
|
},
|
|
themeSwitch: {
|
|
useOptions() {
|
|
return {
|
|
dark: "Dark",
|
|
light: "Light",
|
|
};
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|