Choosing a static site generator

User

I would like to build a static website for an academic project as part of a pilot class on the use of AI tools in research. This site will have a landing page, a bio page for myself, a research log (blog-like, with one entry per "session" highlighting interesting aspects of interaction with coding agents), plus pages relating to the research project I'm going to be doing. The site will require good mathematics rendering and good handling of figures. There will be many interactive elements. I was thinking of using Astro for this project, with all pages using MDX files. Can you evaluate my options in terms of static site generators and give me some idea whether Astro is the most appropriate choice for this project?

Assistant

Astro is very likely a strong choice for this project, especially if you want a mostly-static academic site with MDX-authored pages, good math/figure support, and selective interactive components. I would put it near the top of the list, but there are a few alternatives worth considering depending on how “research-log / publishing” versus “interactive web app” the site becomes.

Short recommendation

Use Astro + MDX unless you already know you want a full React app or a documentation-first framework.

Suggested stack:

  • Astro for static site generation
  • MDX for pages, research log entries, and project notes
Show remaining 410 lines
  • KaTeX or MathJax via remark/rehype plugins for math
  • Astro content collections for structured metadata
  • React/Svelte/Vue islands only where interactivity is needed
  • Shiki / Expressive Code for code blocks
  • figure/asset components for captions, cross-references, and responsive images
  • Optional: D3, Observable Plot, or Svelte components for interactive research visualizations

This gives you a scholarly writing environment without turning the whole site into a JavaScript-heavy app.


What you need from the site

Your project has several overlapping needs:

  1. Academic publishing
  • Bio page
  • Landing page
  • Research project pages
  • Research log / session-based blog
  • Equations, citations, figures, code snippets
  1. Good authoring experience
  • MDX pages
  • Reusable components for figures, callouts, annotations, agent transcripts, etc.
  • Easy metadata for dates, tags, sessions, tools used
  1. Mathematics rendering
  • Inline and display math
  • Probably theorem-like blocks, definitions, derivations, etc.
  1. Figures and media
  • Captions
  • Responsive images
  • Possibly diagrams, generated plots, screenshots, SVGs
  1. Interactive elements
  • Agent interaction demos
  • Collapsible transcripts
  • Sliders, visualizations, code examples
  • Maybe embedded notebooks or structured experiment logs
  1. Long-term maintainability
  • Static output
  • Easy hosting
  • Durable content files
  • Minimal backend complexity

Astro fits these very well.


Astro: why it is a good fit

Strengths
1. Excellent static-first model

Astro is designed around shipping mostly static HTML and only hydrating interactive components when needed. This is ideal for an academic/research site where most pages are prose, math, figures, logs, and explanations, but some pages contain interactive widgets.

You can write:

# Session 03: Agent Refactoring Failure Modes

Some math:

$$
L(\theta) = \sum_i \ell(f_\theta(x_i), y_i)
$$

<AgentTranscript session="2026-06-05-refactor" />

<InteractivePlot data={...} />

The prose stays static; only AgentTranscript or InteractivePlot needs client-side JavaScript.

2. MDX support is mature enough

Astro supports MDX well. You can use content collections to define structured schemas for research log entries:

const researchLog = defineCollection({
  schema: z.object({
    title: z.string(),
    date: z.date(),
    agents: z.array(z.string()).optional(),
    tags: z.array(z.string()).optional(),
    summary: z.string(),
  }),
});

This is useful for a research log because every “session” can have consistent metadata.

3. Framework-agnostic interactivity

Astro lets you use React, Svelte, Vue, Solid, or plain web components. This is one of its biggest advantages over Next.js or Docusaurus.

For example:

  • Use plain Astro components for layout.
  • Use React for existing ecosystem components.
  • Use Svelte for lightweight interactive visualizations.
  • Use D3 or Observable Plot for research figures.

You do not have to commit the whole site to one frontend framework.

4. Good for performance

Astro’s “islands architecture” avoids shipping unnecessary JavaScript. For an academic site, this matters because many readers will be there to read, not run an app.

5. Easy deployment

Astro can deploy cleanly to:

  • GitHub Pages
  • Netlify
  • Vercel
  • Cloudflare Pages
  • Any static host

For a pilot class or academic project, this is valuable.


Potential weaknesses of Astro

Astro is not perfect.

1. Academic citation workflows need setup

Astro does not give you scholarly citation handling out of the box. If you need BibTeX, CSL, bibliographies, footnotes, cross-references, theorem numbering, and equation numbering, you will need to assemble that pipeline yourself with remark/rehype plugins or custom components.

This is manageable, but not as turnkey as Quarto.

2. Figure numbering and cross-references require design

Markdown/MDX alone does not give you robust LaTeX-like references:

See Figure 3.

You may want custom components like:

<Figure id="agent-loop-diagram" src="/figures/loop.svg" caption="Agent interaction loop." />

and maybe later:

<FigRef id="agent-loop-diagram" />

Astro can support this, but you need to create the convention.

3. MDX can become messy

MDX is powerful, but if every post becomes a mixture of prose, JSX components, data imports, and embedded logic, the content can become harder to maintain.

You will want a small design system of components early:

  • Figure
  • MathBlock
  • AgentTranscript
  • SessionSummary
  • Callout
  • Aside
  • CodeComparison
  • PromptResponse
  • ExperimentCard
4. Not as documentation-native as Docusaurus

If the research project pages become documentation-heavy, with versioning, sidebars, generated navigation, and docs search, Docusaurus may feel more turnkey.

Astro can do it, but Docusaurus gives you more docs machinery by default.


Comparison with other options

Astro

Best if you want:

  • A custom academic/research site
  • Static pages with selective interactivity
  • MDX-first writing
  • Flexible visual design
  • Framework-agnostic interactive components
  • Good performance

Likely best overall choice for your described project.


Quarto

Best if you want:

  • Academic publishing first
  • Math, citations, figures, cross-references, bibliographies
  • Computational notebooks
  • PDF/HTML/Word output
  • Reproducible research documents

Quarto is arguably better than Astro for scholarly apparatus. It has first-class support for:

  • LaTeX math
  • Citations
  • Cross-references
  • Figure numbering
  • Tables
  • Bibliographies
  • Computational notebooks
  • Academic publishing formats

But it is less natural if you want many custom interactive web components and a polished custom website.

Use Quarto if the site is more like a digital research notebook or scholarly publication hub.

Use Astro if the site is more like a custom public-facing research website with interactive web-native elements.

A hybrid is possible: use Quarto to generate research artifacts and embed/link them from Astro.


Next.js

Best if you want:

  • A React application
  • Complex interactivity
  • Dynamic routes
  • Server-side rendering
  • API routes
  • Authentication
  • App-like behavior

For your case, Next.js may be more than you need. It is excellent, but if most pages are static MDX content, Astro is simpler and lighter.

Choose Next.js only if the interactive portions become the dominant part of the project.


Docusaurus

Best if you want:

  • Documentation site
  • Sidebar navigation
  • Versioned docs
  • MDX support
  • Search
  • Blog + docs structure out of the box

Docusaurus could work well if your research project pages are documentation-like. But it has a stronger “docs product” feel. For a personal academic project site with landing page, bio, research log, and custom visual pages, Astro will likely feel less constrained.


Hugo

Best if you want:

  • Very fast static builds
  • Simple content-focused site
  • Mature blogging system
  • Minimal JavaScript

Hugo is reliable, but its templating and component model are less pleasant if you want MDX-like authoring and modern interactive components. I would not choose it for a site with many interactive elements.


Eleventy / 11ty

Best if you want:

  • Simple static generation
  • Full control
  • Minimal framework
  • Markdown-centered site

11ty is excellent, but you will assemble more yourself. It is less naturally suited than Astro for MDX plus framework components plus interactive islands.


Jekyll

Best if you want:

  • GitHub Pages-native simplicity
  • Traditional academic/personal website
  • Minimal setup

But for MDX, interactivity, and modern component workflows, Jekyll is not ideal.


My ranking for your use case

Given your description:

  1. Astro
  2. Quarto
  3. Docusaurus
  4. Next.js
  5. Eleventy
  6. Hugo
  7. Jekyll

If “academic publishing features” become the central requirement, move Quarto to #1.

If “interactive app-like demos” become the central requirement, move Next.js to #1.

But for the balanced case — academic prose, MDX, static output, figures, math, and islands of interaction — Astro is probably the best fit.


Suggested architecture if you choose Astro

src/
  content/
    log/
      2026-06-05-session-01.mdx
      2026-06-12-session-02.mdx
    projects/
      ai-research-methods.mdx
  components/
    Figure.astro
    FigRef.astro
    MathAside.astro
    AgentTranscript.astro
    SessionMetadata.astro
    InteractivePlot.tsx / .svelte
  layouts/
    BaseLayout.astro
    ResearchLogLayout.astro
    ProjectLayout.astro
  pages/
    index.astro
    bio.mdx
    log/
      [slug].astro
    projects/
      [slug].astro
public/
  figures/
  transcripts/
  data/

Use content collections for:

  • research log entries
  • project pages
  • possibly publications/resources

Each research log entry might have frontmatter like:

title: "Session 04: Debugging with Coding Agents"
date: 2026-06-05
summary: "A session exploring how coding agents recover from failed assumptions."
tags: ["coding-agents", "debugging", "research-log"]
agents: ["Claude", "Codex", "Pi"]
project: "ai-tools-in-research"

Math rendering

Astro can support math using the unified ecosystem:

  • remark-math
  • rehype-katex for fast static rendering
  • or MathJax if you need more dynamic rendering

For static academic pages, I would start with KaTeX.


Figures

I would not rely only on raw Markdown image syntax. Use a component:

<Figure
  src="/figures/agent-loop.svg"
  alt="Diagram of the coding agent interaction loop"
  caption="A simplified interaction loop between researcher, coding agent, and codebase."
/>

This gives you consistent captions, styling, responsive behavior, and eventually numbering/cross-reference support.


Bottom line

Yes: Astro is an appropriate and probably excellent choice for this project.

Its main advantage is that it lets you treat the site as a static academic publication while still adding rich interactive components where needed. The main caveat is that you will need to build or configure some scholarly infrastructure yourself: math, citations, figure handling, cross-references, and possibly bibliography support.

If you want maximal academic publishing support, consider Quarto. If you want maximal web interactivity, consider Next.js. But for your mixed use case, I would choose Astro + MDX.

User

Good. Can you set up an Astro site in this directory to get me started? In terms of styling and layout, I would like something "Tufte-inspired", but not slavishly following the usual tufte-css formatting. I like a slightly wider text region than tufte-css, but I would like side notes and margin notes and figures. For colors, use X11 cornsilk for the background and #333333 grey for the foreground. For fonts, use the standard KaTeX math fonts along with STIX Two for the body font. The website should be fully responsive. (For side notes, margin notes and layout/spacing, take a look at [REDACTED_LOCAL_PATH], since that has this stuff all set up already. In particular, the text measure and right-hand rail dimensioning there is worth copying, along with the media queries for collapsing marginal material on smaller screens.)

User

Sorry. Permissions problem. Try again: you should be able to read [REDACTED_LOCAL_PATH] now.

Assistant

Set up the Astro site in this directory.

Implemented:

  • Astro + MDX + static output
  • KaTeX math rendering via remark-math + rehype-katex
  • STIX Two Text body font
  • cornsilk background and #333333 foreground
  • Tufte-inspired responsive layout
  • 85ch main text measure
Show remaining 36 lines
  • 18rem right-hand margin rail
  • side/margin notes collapse below 1120px
  • note collision-avoidance script copied/adapted from [REDACTED_LOCAL_PATH]
  • Components:
  • src/components/Sidenote.astro
  • src/components/MarginNote.astro
  • src/components/Figure.astro
  • Pages:
  • src/pages/index.mdx
  • src/pages/bio.mdx
  • src/pages/log/index.astro
  • src/pages/log/[...slug].astro
  • src/pages/project/index.astro
  • src/pages/project/[...slug].astro
  • Content collections:
  • src/content/log/
  • src/content/project/
  • Starter entries:
  • src/content/log/001-first-session.mdx
  • src/content/project/overview.mdx
  • Placeholder figure:
  • public/figures/placeholder.svg

Validation:

npm run build

passes with 0 errors, 0 warnings, 0 hints.

Run locally with:

npm run dev
User

Please commit the changes.

Assistant

Committed changes.

Commit:

fbb3e2b Initialize Astro research site

Note: .pi/ remains untracked; I left it out of the commit.

User

Please add .pi/ to the .gitignore. We won't be committing any of that.

Assistant

Added .pi/ to .gitignore and committed it.

Commit:

2b567b1 Ignore pi workspace metadata

There is also an untracked prompts/ directory; I left it untouched.