Authoring Thoughts and projects
A file-based guide to publishing thoughts, essays, walkthroughs, and project overviews on this portfolio.
- Publishing
- Markdown
The publishing workflow uses ordinary Markdown files, local previews, and an explicit publication flag. No studio or CMS is required.
The existing Fumadocs collections accept .md and .mdx. Start with Markdown; use .mdx only when a React component helps explain the work. Templates are ordinary files outside the collections, so they cannot become routes.
Templates
Download a plain Markdown starting point: Essay, Field note, Case study, Book note, Walkthrough, Thought, or Project. These are deliberate public copies of the repository’s templates, not published articles. Keep them in sync when changing a template.
Copy, edit, preview, publish
cp templates/thought.md content/thoughts/my-observation.md
# Or: essay.md / field-note.md / case-study.md / book-note.md / walkthrough.md into content/thoughts/
cp templates/project.md content/projects/my-project.md
pnpm devChoose a unique, lowercase, hyphenated filename in the collection root. Its filename is the slug: /thoughts/my-observation or /projects/my-project. Nested content directories are not supported by these single-slug routes. Replace all prompts, including the date. Open the route locally to review; draft badges and draft links are development-only.
Keep draft: true until the piece is ready. Omitted draft also defaults to true. Set draft: false, validate, and deploy separately to publish. Production filters drafts before generating routes, index entries, navigation/search, and series links. The homepage and sitemap always feature published entries only, even during development. Never add manual links to an unpublished future part.
Organize Thoughts
Set section in a thought’s frontmatter to place it in the Thoughts index and sidebar:
| Section | Frontmatter value |
|---|---|
| Process & Transformation | process-and-systems |
| Data & Decision Systems | data-and-decisions |
| AI & Software Development | building-with-ai |
| Finance & Operations | finance-and-ai |
| Investment research | investment-research |
| Family capital & risk | family-capital-and-risk |
| Reading & Influences | reading-and-influences |
Choose the subject of the piece; tags add more detail. Keep all parts of a series in the same section. Series stay together in numeric part order, with standalone articles ordered newest first. Only sections with visible articles appear. An entry without a section appears under Other thoughts, so it never disappears from navigation. Use the existing filename and URL when changing its section.
Most templates start with process-and-systems; book notes start with reading-and-influences. Change the subject to suit the article. Projects do not use this field.
Subject and format are independent. The Thoughts index combines both filters and preserves numeric series order. Use an essay for an argument, a field note for one observation, a case study for a process and its evidence, a book note for an applied idea, and a walkthrough for implementation steps. Related reading is selected from published pieces using the subject and shared tags.
The curated Digital Transformation page connects Lean, Six Sigma, Toyota Production System, re-engineering, data, and AI development. Its reading path is defined in app/transformation/page.tsx; include only published articles. Existing filenames remain valid when moving an article between subjects.
Article reading controls offer permalink copying, printing, and appearance settings. The downloadable authoring templates remain available.
Frontmatter
---
title: "A specific title"
description: "A short summary for readers and metadata."
date: 2026-11-07
draft: true
tags: [Data, Process design]
layout: essay
kind: thought
section: process-and-systems
series: "Working backward from the deliverable"
seriesOrder: 1
---titleanddateare required.descriptionis optional but recommended. Quote strings containing YAML punctuation such as a colon.draftis a boolean, defaulttrue;tagsis a list of strings, default[].layoutcontrols presentation:essay(default),walkthrough(contents rail), orproject. Projects enforceprojectlayout.kindis an optional editorial label:essay,field-note,case-study,book-note, orwalkthrough. Legacythoughtis displayed as Field note. It does not choose a layout or a collection. Omit it for project entries.bookIdis required forbook-note: use an existing numeric ID frombooks-data.json. The corresponding library card links to published notes automatically. Link back to the card with/books#book-ID. Catalogue enrichment remains the source for book metadata; write editorial interpretation in the note.- For case studies, explicitly distinguish documented work from illustrative designs. Separate measured results, estimates, and proposed evaluation criteria.
seriesis an optional nonempty title;seriesOrderis a positive integer. Provide both or neither. Reuse the exact title and choose unique order numbers within a collection. Gaps are allowed; navigation follows the visible parts in numeric order, not imagined future parts.- Series title and part number appear in the article header. Previous/next links use only that collection and series, after publication filtering. A lone part has no empty navigation.
Projects additionally require these fields:
role: "Designer and developer"
stack: [Python, SQL]
issue: "What was not working?"
question: "What question guided the work?"
build: "What did you personally build?"stack defaults to [] and supplies project topic labels. Describe verified contributions and evidence; do not invent results.
Optional MDX blocks
No imports are needed for components registered in mdx-components.tsx. In a .mdx file, for example:
<Insight title="The constraint">
Explain what changed the approach.
</Insight>
<ProcessSteps steps={["Trace the source", "Transform", "Verify"]} />For contributors working in the repository, app/components/publishing/blocks.tsx defines the house blocks and their exact props. Standard Markdown headings, lists, links, images, and fenced code remain the default. There is no studio or generator.
Native Fumadocs components
These names are registered globally for .mdx; no imports are needed. They use the installed Fumadocs UI 16.17.9 APIs. Prefer ordinary Markdown when it communicates the same thing. Examples below demonstrate syntax, not portfolio claims or additional published articles.
Expandable explanations
<Accordions type="single" collapsible>
<Accordion title="How was this checked?" value="verification">
Describe the actual verification and its limitations.
</Accordion>
</Accordions>Use type="multiple" for independently expandable items; its defaultValue is an array, while single mode uses a string.
Tabs and synchronized selections
<Tabs items={["npm", "pnpm"]} groupId="package-manager" persist>
<Tab value="npm">`npm install`</Tab>
<Tab value="pnpm">`pnpm install`</Tab>
</Tabs>Matching groupId values synchronize tab selections; use identical item labels/values in each group. persist remembers the selection in browser storage. Omit both for isolated tabs. defaultIndex={1} selects the second item initially. Advanced composition is available with TabsList, TabsTrigger, and TabsContent; use matching value props. Do not hide essential context exclusively in an inactive tab.
Narrative steps and file trees
<Steps>
<Step>
### Inspect the input
Explain the source and constraints.
</Step>
<Step>
### Check the output
Explain the evidence used to verify the result.
</Step>
</Steps>
<Files>
<Folder name="src" defaultOpen>
<File name="index.ts" />
</Folder>
<File name="README.md" />
</Files>Native Steps / Step provide rich narrative sections. The existing house ProcessSteps steps={[...]} API remains unchanged. A file tree describes authored structure; it does not inspect the repository or make files downloadable.
Type reference tables
<TypeTable type={{
title: {
type: "string",
description: "The visible title.",
required: true,
},
draft: {
type: "boolean",
default: "true",
description: "Not published until explicitly disabled.",
},
}} />Entries can also supply typeDescription, typeDescriptionLink, deprecated, parameters, and returns. This is an authored reference, not generated OpenAPI or SDK documentation.
Images and galleries
Ordinary Markdown images now use native image zoom, retaining their source URL, alt text, title, and any supplied dimensions. They do not require an image optimizer endpoint or mandatory dimensions. Supply meaningful alt text; use empty alt only for decorative images. Explicit native images support dimensions and captions:
<ImageZoom src="/images/actual-screenshot.png"
alt="Describe what the screenshot demonstrates"
width={1200} height={800} title="Actual application screenshot" />
<Lightbox>
<ImageZoom src="/images/first.png" alt="First view" width={1200} height={800} />
<ImageZoom src="/images/second.png" alt="Second view" width={1200} height={800} />
</Lightbox>Use real assets that exist under public/; these example filenames are placeholders, not shipped assets. Explicit ImageZoom is always unoptimized for the static export. Lightbox groups images into one viewer. The house Figure keeps its existing required dimensions/caption and annotation API; it is not silently replaced or made zoomable.
Inline table of contents
<InlineTOC items={[
{ title: "Verification", url: "#verification", depth: 2 },
]} />toc={[...]} is an alias for items. Supply actual heading anchors; do not invent links. An empty <InlineTOC /> does not discover headings automatically. A route may bind its generated page.data.toc through the final getMDXComponents override; the native page TOC already uses generated headings separately.
Code blocks: existing support versus new composition
Fenced code already uses the native CodeBlock / Pre renderer, syntax highlighting, and its copy control. Card, Cards, Callout, heading anchors, CodeBlockTabs, CodeBlockTab, CodeBlockTabsList, and CodeBlockTabsTrigger were already registered; they are not new additions. The named CodeBlock and Pre components are now also available for explicit composition:
<CodeBlock title="example.txt" allowCopy={false}>
<Pre><code>Plain text example</code></Pre>
</CodeBlock>For build-time highlighting, use fenced code instead of a manually composed block. The existing Fumadocs code pipeline accepts filename metadata and line-number/highlight annotations; no client-side highlighter or runtime code fetcher is added by this registry. For example:
```ts title="example.ts" lineNumbers
const ready = true; // [!code highlight]
```Only use supported language names. allowCopy={false} disables copying for explicitly composed blocks. Tabs can contain ordinary fenced code; the existing code-tab primitives support more specialized layouts.
On-demand code and diagrams
Use ordinary fenced code for content known at build time. DynamicCodeBlock is available when code is supplied as a component prop; it loads the native highlighter on demand and retains native copy controls. For example, the publication policy is explicit rather than inferred:
<DynamicCodeBlock lang="ts" code={"const publish = draft === false;"} />Use component syntax in .mdx entries; .md files remain plain Markdown. A live rendering appears after this guide. Fenced Mermaid diagrams work in both formats.
A fenced mermaid block renders a diagram. This example shows the actual publishing flow: local previews include drafts, while production pages and the RSS feed only include published entries.
Diagram loads when visible. Source is available below.
Diagram source: Mermaid diagram
flowchart LR
Author[Markdown and MDX] --> Preview[Local preview]
Author --> Filter[Published entries only]
Filter --> Site[Static site and RSS]For an explicit accessible description, use <Mermaid chart={source} label="A description of the flow" />. Diagram source is always available below the graphic. Diagrams are intentionally non-interactive: author configuration, click actions, embedded HTML, external links/resources, and image/icon declarations are not accepted. Do not use diagrams to introduce facts absent from the article.
Capability inventory
| Status | Capability | Scope |
|---|---|---|
| Already enabled | Markdown/MDX collections, publication filtering, frontmatter, templates, series navigation | Thoughts, Projects, and the single allowlisted authoring guide; no CMS. |
| Already enabled | Cards, callouts, heading anchors, responsive tables, highlighted fenced code, copy controls, code-tab primitives | Supplied by fumadocs-ui/mdx; retained unchanged. |
| Already enabled | Native DocsLayout / DocsPage, collection sidebars, generated page TOCs and mobile navigation | Existing reading layout, not another mutually exclusive layout stacked on top. |
| Added | Accordions, synchronized/persistent tabs, rich steps, file trees, TypeTable | Native installed components, registered globally. |
| Added | Zoomable Markdown images, explicit static ImageZoom, Lightbox | Original alt text and asset URLs retained; no image optimizer service. |
| Added | InlineTOC adapter, named CodeBlock / Pre | Inline TOC needs explicit items or route-bound generated headings; composition does not add runtime highlighting. |
| Added | Static full-text search and RSS | Native search downloads /api/search once and queries locally. The /feed.xml feed includes published Thoughts. Both use production publication filtering. |
| Added | Theme control and reading actions | Light/dark/system appearance, canonical permalink copying, and focused browser printing. Available on Thoughts, Projects, and this guide. |
| Added | Relative .md / .mdx source links | Thoughts and Projects resolve source-relative links through createRelativeLink(source, page). InlineTOC defaults to each page’s generated headings. |
| Added | DynamicCodeBlock | Native Fumadocs highlighting and copy controls load only when the block approaches the viewport. Ordinary fences still highlight at build time; remote source fetching is not enabled. |
| Added | Mermaid | Fenced diagrams and <Mermaid chart={...} label="..." /> load on demand and follow the theme. Strict non-interactive rendering rejects author configuration, HTML, click actions, and external resources. Original diagram source remains accessible on the page. |
| Not enabled | Graph view | No graph-view component is exported by the installed Fumadocs UI version. |
| Not applicable | Studio, CMS, cloud/paid search, AI chat, API/MCP backends | Explicitly outside this file-first, static-export deployment. |
| Not applicable | Multilingual content, generated OpenAPI/Python SDK docs | No translations, API specification, or SDK inputs have been supplied. |
| Not applicable | Alternate Flux/Glass/Notebook layouts | Mutually exclusive reading choices, not additive capabilities. |
| Not applicable | GitHubInfo or public view-source actions | The source repository is private; do not expose tokens or create misleading public source links. |
The registry lives in app/components/publishing/FumadocsComponents.tsx. House components and caller overrides keep precedence, so existing Insight, Figure, ProcessSteps, Results, and section APIs remain compatible. Internal test fixtures are not collection entries or public assets.
Validation and old links
env -u NODE_ENV pnpm lint
env -u NODE_ENV pnpm test:content
env -u NODE_ENV PLAYWRIGHT_PORT=3055 pnpm test
env -u NODE_ENV pnpm buildUse an unused Playwright port. out/ is the static Cloudflare Pages deployment artifact. public/_redirects is copied into it and permanently redirects /writing and /writing/* to Thoughts. Next.js does not implement these hosting redirects in development; no old Writing routes are exported.
The publication rule above, rendered with on-demand native highlighting:
const publish = draft === false;