Workdown
A system to write Markdown and have it published and hosted via Cloudflare Workers
Pre-requisites
- Python 3
- Install
wrangler
Usage
pip3 install workdown- Run
wrangler generate site https://github.com/eldridgea/workdown-example-site. This will generate a folder calledsitecontaining the folder structureworkdownrequires to work. - Configure wrangler.toml with your Cloudflare details, make sure your route ends in a wildcard e.g.
route = "https://example.com/*". - Create a KV Namespace and bind in to
pagesin yourwrangler.tomlfile. - Make a markdown file ending in
.mdin thecontent/directory If you want it to be your main page, name itindex.md. - From the
sitefolder (or whatever you named it) runworkdown - Done!
CSS
CSS should go in the assets/ directory. They will be available as their full filename under css. For example if you make main.css, it will be example.com/css/main.css
Partials
Here is where you can customize the header and footer of pages in HTML. Currently all partials apply to all pages generated. Good things to do here would be if you have a static CSS file in css/ or would like to include a a fonts CDN, add it into the <head> in the partials/header.html so it will be usable on your pages.
Notes
The path for content will be the name of the markdown file with no extension. For example if you make contact.md, it will be example.com/contact.
Install directly from Github
pip3 install git+https://github.com/eldridgea/workdown
Manual Install
git clone https://github.com/eldridgea/workdowncd workdownpython3 setup.py install
Metadata
Release files for workdown 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| workdown-0.0.4.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| workdown-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.4 kB
Release files / workdown-0.0.4.tar.gz
| Download URL | workdown-0.0.4.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d9af359e67c10cebac1bc1fba013d531f14c3af058f109a1fb41bdddeb24683
|
|
BLAKE2b-256 checksum How to use checksums |
b2899b54a6697e2bcbc577931f2d49d581a3e3013cf08306bea3b18569aa028c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
|
Release files / workdown-0.0.4-py3-none-any.whl
| Download URL | workdown-0.0.4-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20e35b1ab96ba2cddfcd689c089c6c4aa407c3de6491f57ef1609b1e366d6d91
|
|
BLAKE2b-256 checksum How to use checksums |
2b0994008920331c5eac292fef054d91cc841b7f301480bf47c253458e314fb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
|