Skip to main content

mdsite

CI PyPI License: MIT

Turn a Markdown folder into a browsable website. mdsite reads the original files through a temporary directory link; it does not copy or rewrite them.

mdsite rendering the example Markdown notes as a website

Use

Install uv, then run this from your Markdown folder:

uvx mdsite

The site opens at http://127.0.0.1:8000. Stop it with Ctrl+C.

uvx mdsite build

This creates a static site in site/.

Publish online

Sign in once with GitHub CLI using gh auth login. From your Markdown folder, run:

uvx mdsite publish --repo owner/repository --create-repository

The command creates the public GitHub repository if needed and publishes the site with GitHub Pages. Published sites are public; only publish files that are safe to share.

Run the same command again to update the site. mdsite rebuilds navigation and search, then commits only changed site files; an unchanged build creates no commit. Files removed from the source are removed from the published site. Publish commits use the authenticated GitHub account as author and committer.

Features

  • Markdown, Mermaid diagrams, and MathJax formulas.
  • The homepage shows the source root's README.md or index.md; otherwise it lists browsable files and folders. Folder names link to their README.md or index.md, and folders without either get a generated listing page. Read-only pages for Python and common text/code files appear under their original folders, with syntax highlighting and line numbers. Supported types include .py, .pyi, .txt, .json, YAML, TOML, INI, shell, PowerShell, JavaScript/TypeScript, HTML/CSS, SQL, R, Julia, Rust, Go, Java, C/C++, XML, TeX, CSV, and diff. UTF-8 files up to 1 MiB are shown; hidden files, links, and common build/cache directories are skipped.
  • Source files stay in their original folder.
  • Python 3.11 or newer.

Development

uv sync --locked --all-groups
uv run ruff check .
uv run python -m unittest discover -s tests
uv build

License

MIT; see LICENSE.

Metadata

Release files for mdsite 0.1.5

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

Source distribution (sdist)

Source distribution for mdsite 0.1.5
File Size Uploaded Provenance Actions
mdsite-0.1.5.tar.gz 55.0 kB Without provenance Details for mdsite-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mdsite 0.1.5
File Interpreter ABI Platform Actions
mdsite-0.1.5-py3-none-any.whl Python 3 none any Details for mdsite-0.1.5-py3-none-any.whl

Total release size: 77.5 kB

Release files / mdsite-0.1.5.tar.gz

Download URL mdsite-0.1.5.tar.gz
Size 55.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f53b597bf1f4321f2d30c90ba36c03e984a9df21a24ff682b94fb052ec26747b
BLAKE2b-256 checksum
How to use checksums
4754ef55f1ca7b09367bb8e78a3de10ab6823293a1fcda7261e61e5ac98fd9d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mdsite-0.1.5-py3-none-any.whl

Download URL mdsite-0.1.5-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec29d5f583ede57c4f2f5dbc5fec1731a57dcc416b70ec444f2a19220304803a
BLAKE2b-256 checksum
How to use checksums
805b385210f1004970bb39f467b16ed3bdd4d5e1bb57b22fed40a7889672c24e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for mdsite 0.1.5

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