A static site generator for generating a Tufte-like website from markdown files.
356
A static site generator for generating a Tufte-like website from markdown files.
This is a dead-simple, < 200LOC that leverages some nice Pandoc tools for creating a really nice looking website from markdown files.
git clone https://github.com/schollz/markdown2tufte.git
cd markdown2tufte/examples
docker pull schollz/markdown2tufte
docker run -it -v `pwd`:/data schollz/markdown2tufte /bin/bash -c "cd /data && markdown2tufte && useradd $USER && chown -R $USER:$USER public/"
cd public && python3 -m http.server
pandoc version 1.18wget https://github.com/jgm/pandoc/releases/download/1.18/pandoc-1.18-1-amd64.deb
dpkg --install pandoc-1.18-1-amd64.deb
pandoc-sidenotewget https://github.com/schollz/pandoc-sidenote/releases/download/v1.0/pandoc-sidenote
chmod +x pandoc-sidenote
sudo mv pandoc-sidenote /usr/local/bin
Follow these instructions if you don't want to run this binary.
imagemagickapt-get install imagemagick
markdown2tuftepip install markdown2tufte
Create a file markdown2tufte.toml with the data about your site. Copy the example and suite it to what you need.
Just run
markdown2tufte
and now you have a static site in the public/ folder with your website.
This would not exist without:
Content type
Image
Digest
Size
342.7 MB
Last updated
about 6 years ago
docker pull schollz/markdown2tufte