mksite
like mkdir but for websites
mksite helps you to quickly generate static websites with markdown.
Installation
pip install mksite
Quickstart
Create site directory structure and change into site directory:
mkdir -p site/content site/static
cd site
Add some site files:
echo "<h1>Hello, world!</h1>" > content/index.md
echo "h1 {color: darkblue;}" > static/style.css
Add config.toml inside site directory:
base = "https://mksite.com"
lang = "en-us"
[directories]
content = "content"
static = "static"
[nav]
[[nav.items]]
name = "home"
uri = "/"
Build static site using mksite CLI:
mksite build
Serve website using Python's http server:
python -m http.server -d public 8000
Navigate to port 8000.
License
mksite is distributed under the terms of the AGPLv3 license.
Metadata
Release files for mksite 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mksite-0.1.1.tar.gz | 18.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mksite-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.4 kB
Release files / mksite-0.1.1.tar.gz
| Download URL | mksite-0.1.1.tar.gz |
|---|---|
| Size | 18.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9d5492d5d31332dbc470de6c39002671a25d22940cd2358d2a3786fc72d168d
|
|
BLAKE2b-256 checksum How to use checksums |
35f482af3ae7fb390915830054ee845e0bb40a6e1c179f7ab6a6c05df2ab0a16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.0
|
Release files / mksite-0.1.1-py3-none-any.whl
| Download URL | mksite-0.1.1-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a89c46c27485db7c82516f1bdd3363b068cfc24ee6069fc6c4b592715eace6f
|
|
BLAKE2b-256 checksum How to use checksums |
d283a98d999175f2b5a8b7e35e1b96068b901050aa53e22ff40453150be80d9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.0
|