Markdown is an awesome way to format text in a texteditor and can be interpreted easily by humaneye. On the otherhand, HTML seams simple with its tags approach but can be quite unintuive to write. To allow me to create an a static website based on markdown text this project was concoured. if you inspect the content and its subdirectories you can see the markdown that was written. Glories stuff about LoTR!!! Id you inspect the docs directory you can see the html code which was generated to host my first webpage on Github which you can reach with this Link.
Another cool thing about this project is that there are 76 unittests which hopefully did catch all edgecases for my codebase.
gitclone https://github.com/LS-2ednar/PutToWeb
- Write your content and store it in your content directory
- Using
./main.sh
you can create a locally hosted version of your static site when checking outhttps://localhost:8888/
- When you are ready to push your website to the web,
./build.sh
- On Github in your repo go to
Settings
->Pages
-> at the source selectmain
anddocs
as this is where src/main.py will save the html for your webpage.
- os
- sys
- Unittest for Unittests
- Add documentation on how to host pages on another domain