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.
  • Navigation uses Markdown filenames and preserves headings for README/index section pages. 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.4

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.4
File Size Uploaded Provenance Actions
mdsite-0.1.4.tar.gz 52.9 kB Without provenance Details for mdsite-0.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 73.2 kB

Release files / mdsite-0.1.4.tar.gz

Download URL mdsite-0.1.4.tar.gz
Size 52.9 kB
Tags Source
SHA-256 checksum
How to use checksums
56f12d94bf87602ce810d224d1f71eb36999576d0447e4ae2399c1dd28cacf95
BLAKE2b-256 checksum
How to use checksums
f2a0f1254ad7f9f3f47af3f39f2585c7bf1409225d08d8d6c5add4330958c3e8
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.4-py3-none-any.whl

Download URL mdsite-0.1.4-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e7948e7a40aef9981f733610072ec0425330b6f1430eb269ba9a7c65baa8cd85
BLAKE2b-256 checksum
How to use checksums
5139e7d30fd4f0ef7fd45ea6770e9e7640c77317dd46af8046769c47bdc2f6d7
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.4

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