Skip to main content

fly-january

fly-january is a ProperDocs/MkDocs theme built on MaterialX. It adds a baseline grid, per-page typography and colour, margin figures, and a choice of FontLab, Vexy or native MaterialX navigation. The Python package includes the compiled CSS and JavaScript. A documentation site can build with Python alone.

Installation

With Python 3.12 or later, install the package using either command.

pip install fly-january
# or
uv add fly-january

A minimal mkdocs.yml enables both the theme and its plugin.

site_name: My documentation
theme:
  name: fly-january
plugins: [search, fly]

Create docs/index.md and run properdocs build --strict.

Adopting fly-january in an existing MaterialX site

  1. Change theme.name to fly-january and add fly to your plugin list. Keep your existing features and bare plugin names such as search, blog and tags. The theme registers MaterialX’s implementations and makes them available to its templates.
  2. Remove old menu/footer overrides and fltheme26 styles or scripts that duplicate the new theme. Keep site-specific templates. Choose extra.fly.chrome and set the control ownership described below.
  3. Move site typography and colours into roles and options. Use links: accent for coloured article links, h1: accent for site-wide accent titles, and fonts.roles.em: {style: italic} for italic emphasis. See Customising for component links and direct CSS overrides.
  4. Check your own rem lengths. The default MaterialX root is 20px. Fly’s normal root is 14.4px and grows on wide displays. The plugin rescales the CSS shipped by the installed MaterialX theme by 20/14.4. Site and third-party plugin stylesheets keep their original values. The plugin logs the names of other CSS files it finds under assets/stylesheets/. To preserve the old dimensions at the normal root, multiply your rem values by 20/14.4.
  5. Enable extra.fly.utilities: true if your markup uses the prebuilt tw: utilities. With the default false, the consumer site omits the utility sheet.

Configuration

Body paragraphs and lists use Sole Serif Small at weight 400. H1 uses Polymath Display at 900 with -0.01em letter-spacing. H2 uses Polymath at 500 with zero letter-spacing. The lead paragraph follows the H2 family. Navigation, H3–H6 and inline strong and emphasis use Grtsk. Use extra.fly.fonts.roles to override a role’s family, weight or heading tracking.

extra.fly is optional. Site defaults include FontLab chrome that scrolls with the page, ink titles, inherited article link colour and a left margin. Set a site hue, define reusable font/hue presets, or override individual type roles. Pages select a preset with fly.preset in their front matter. Page settings take precedence over preset settings, which take precedence over site settings. A page hue colours its H1 unless the page sets fly.h1: ink.

extra:
  fly:
    chrome: fontlab
    chrome_options:
      site-label: Product manual
      site-url: /manual/
      mobile-menu: materialx
      mobile-search: materialx
      sticky: false
    hue: cobalt
    links: accent
    fonts:
      roles:
        em: {style: italic}
Chrome option Behaviour
site-label, site-url Menu label and destination. Defaults come from site_name and site_url. Supply an absolute HTTP(S) URL or a root-relative path.
mobile-menu materialx (default) opens the documentation drawer. global selects the brand menu.
mobile-search materialx (default) opens the local documentation search. global selects the brand search. This setting also applies on desktop.
search-from Identifies the originating site to the brand search.
sticky A YAML boolean. true pins the brand bar. Defaults to false.

Use chrome: vexy for Vexy branding or chrome: none for MaterialX’s native header and footer. A custom chrome takes an HTTPS script URL and header and footer custom-element names. The demo documents every site and page key with examples. Configuration · Chrome

Customising

Prefer extra.fly options and fonts.roles, or set a --fly-* variable on the element that consumes it. For example, add a stylesheet to extra_css and adjust heading tracking with an ordinary selector.

.md-typeset h2 { --fly-h2-tracking: 0.02em; }

Fly applies its general article-link rule to every link except links with a class starting with md-, links with .headerlink, and links with data-fly-plain on themselves or an ancestor. Put data-fly-plain on a site-owned component to style its links with ordinary CSS such as .md-typeset .signup-link. Theme cards, headings and tables also supply their own contextual styles. To override those properties inside a theme component, use its tokens or the selector technique below.

For direct overrides of fly-styled properties, source order alone is insufficient. The build flattens cascade layers to beat MaterialX’s unlayered rules. Each generated selector has a maximum of 10 ID boosts. Copy this prefix into your site stylesheet and change the target and declaration as needed.

.md-typeset:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) h2 {
  text-align: center;
}

Match the competing rule’s ID specificity and at least its remaining specificity. At equal specificity the later declaration wins. Normal declarations still yield to !important. Design tokens · Theme specification

Privacy and external assets

A reader’s browser sends its IP address to each host it contacts. These are the theme’s external resources and the controls for serving a local-only site.

Host Resource and how to avoid the request
use.typekit.net, p.typekit.net The default Adobe kits supply Polymath Display and Polymath (xht3uat), Sole Serif Small (cna4jfp) and Grtsk (wck5koo). Set extra.fly.fonts.sources: [] and omit Typekit sources from presets and pages to use system stacks or your own licensed fonts. Setting only roles keeps the kits.
fonts.googleapis.com, fonts.gstatic.com Fly requests the Material Symbols stylesheet and font for arrows and the palette toggle. MaterialX can also request Roboto and Roboto Mono, and the brand menus request Work Sans. For a Google-free page, use theme.font: false, omit google: font sources, use chrome: none and override the symbols partial below. The native SVG icons remain available.
cdn.jsdelivr.net PhotoSwipe 5.4.4 supplies the lightbox stylesheet on every page. Its two scripts load on pages with .md-content a.lightbox. All three files have SHA-384 integrity checks and anonymous CORS. Override the PhotoSwipe partial below to use ordinary image links.
i.fontlab.com, optionally i.vexy.art The default FontLab chrome loads /menu/fontlab.js and brand assets. Vexy chrome selects /menu/vexy.js on the Vexy host and uses res.cloudinary.com for its logo. The unversioned menu scripts are trusted first-party code served without SRI. Use chrome: none or your own audited chrome to avoid these requests.

To omit Material Symbols or PhotoSwipe, set theme.custom_dir: overrides and create an empty overrides/partials/fly-symbols.html or overrides/partials/fly-photoswipe.html, respectively. Site-authored embeds, plugins and additional font sources can introduce other hosts.

Development

The package sources are in theme/fly_january/. Edit CSS and browser code in src/fly/. The demo sources are in src_docs/.

npm ci
npm run build
npm test
uv run --python 3.13 pytest tests/py
./build.sh
npm run verify:fly

The browser check uses the agent-browser CLI and a locally installed Chrome. The strict demo build checks internal links and writes the Pages site, its versioned CDN directories and their SHA-256 manifest under docs/. Demo · CDN asset reference

Release

  1. Set NEXT_VERSION in scripts/build-cdn.mjs. Publish the required figure-groups dependency first, remove its local uv source, and refresh the lock. Run ./build.sh and the test gates.
  2. Commit the verified sources and generated docs/ (including docs/fly/<version>/, latest/ and manifest.json).
  3. Tag that commit vX.Y.Z, using the same version as NEXT_VERSION.
  4. Run npm run check:release. It requires a clean worktree, fetches main, and checks the tag, package version and CDN tree.
  5. From the tagged commit, choose an empty output directory, for example release-dist. Run uv build --out-dir release-dist and uvx twine check --strict release-dist/*.
  6. Publish the checked distributions, push the release commit and tag, then verify Pages and the public manifest hashes.

The CDN builder fetches main before writing. A version already published there must match its manifest byte for byte. If publication state is unknown, rebuilding an existing version directory requires confirmation that it was never published (FLY_CDN_ALLOW_UNPUBLISHED=1). Bump NEXT_VERSION to prepare the next release.

Legacy fltheme26 bundle

npm run build also produces the fltheme26 bundle in dist/ for existing consumers. Its legacy Playwright suite is retained and is not run in this project. Legacy setup guide and starter

Metadata

Release files for fly-january 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fly-january 0.2.0
File Size Uploaded Provenance Actions
fly_january-0.2.0.tar.gz 237.0 kB Without provenance Details for fly_january-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fly-january 0.2.0
File Interpreter ABI Platform Actions
fly_january-0.2.0-py3-none-any.whl Python 3 none any Details for fly_january-0.2.0-py3-none-any.whl

Total release size: 462.8 kB

Release files / fly_january-0.2.0.tar.gz

Download URL fly_january-0.2.0.tar.gz
Size 237.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ea65d5a70e54765bf31aec044370d109f5da8edbf3683a167bdd42bce64fdc0f
BLAKE2b-256 checksum
How to use checksums
7f1a8868df4cbba151507ed7854a1111c92e6e23ef241c7f0ec20eb0afde0efc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / fly_january-0.2.0-py3-none-any.whl

Download URL fly_january-0.2.0-py3-none-any.whl
Size 225.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c0940cae925edb37cb1c0017bdebcdb3f68e3789351b8f3dbe84f9aa46e995a
BLAKE2b-256 checksum
How to use checksums
29112a35d125fc5f1db7020360a018251e2470a114f21d034ba6b13ccd010280
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for fly-january 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page