Skip to content
myst-contribPublic

About

A prototype for a MyST Theme built on top of Jinja templates.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Fog theme

image

The MyST Book Theme is a web application built on top of Remix, TypeScript, React, and Tailwind. The use of modern web frameworks makes it easy to build stateful and powerful web applications. The downside of this approach is that it requires an understanding of several complex frameworks, and doesn't lean in to the kinds of SSR skills that many developers are familiar with.

This theme exists as an intentional counterpart to MyST Theme. It's designed with the following explicit choices in mind:

  1. Site layout should be handled via Jinja templates, that users can bring.
  2. Components should be styled by global stylesheets, not inline CSS.

Although I had hopes to build this theme as a Python application, the difficulty in robustly sharing code between the renderer and the browser (e.g. when rendering hover previews) led to a rebuild of this theme in TypeScript. I hope that the theme itself will be fairly lightweight, justifying this trade-off from the original design vision.

Table of Contents

Installation

pnpm install

License

fog-theme is distributed under the terms of the MIT license.

Using the Renderer

Start MyST server in content

env -C content myst start --headless

Run the theme server

pnpm run start

About

A prototype for a MyST Theme built on top of Jinja templates.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages