Write Markdown and have it published and hosted on Cloudflare Workers
A system to write Markdown and have it published and hosted via Cloudflare Workers
- Python 3
pip3 install workdown
wrangler generate site https://github.com/eldridgea/workdown-example-site. This will generate a folder called
sitecontaining the folder structure
workdownrequires 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
- Make a markdown file ending in
content/directory If you want it to be your main page, name it
- From the
sitefolder (or whatever you named it) run
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
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.
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
Install directly from Github
pip3 install git+https://github.com/eldridgea/workdown
git clone https://github.com/eldridgea/workdown
python3 setup.py install
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size workdown-0.0.4.tar.gz (2.9 kB)||File type Source||Python version None||Upload date||Hashes View|
|Filename, size workdown-0.0.4-py3-none-any.whl (3.5 kB)||File type Wheel||Python version py3||Upload date||Hashes View|