A command-line static site generator.
Project description
TextHTMLPress
A command-line static site generator to generate a complete HTML website from raw data and files (txt files or MarkDown files).
Features
- Name: TextHTMLPress
- Github Repo
- MIT License
- README.md
- requirements.txt
- title of .html file
- customized output destination
- CSS stylesheet
- customized option from config file
Dependencies
This tool is written by Python 3.9
, with pip 21.1.2
.
Check the requirements.txt
.
How To Use
- Download the code (the TextHTMLPress folder)
- Using a command line tool (CLI) such as
Windows cmd
,git bash
,Unix shell
orMaxOS Terminal
. - In the CLI:
# install requirements
pip install -r requirements.txt
# redirect into the package folder
cd ~/yourpath/TextHTMLPress
# check help
# it might be python3 __main__.py --help on your machine
# python3 instead of python
python __main__.py --help
# generate .html from a .txt file
python __main__.py -i ./tests/inputs/Silver\ Blaze.txt
# generate .html files from a folder
python __main__.py -i ./tests/inputs/
# use multiple options
python __main__.py -i ./tests/inputs/Silver\ Blaze.txt -s https://cdn.jsdelivr.net/npm/water.css@2/out/water.css
# use config file
# or python __main__.py -c config.yml
#
python __main__.py --config config.yml
# specify the lang attribute in root element of HTML, default en-CA
python __main__.py -i ./tests/inputs/ -l fr
Example Output
Please find here.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
TextHTMLPress-1.0.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for TextHTMLPress-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30ccde08d9e196f0c751f32adba243f8ec6de184678ae78b40d0893f34353df8 |
|
MD5 | 3beb30e6b0e7b314ca37316d4aea0ed9 |
|
BLAKE2b-256 | 547ea576f11e1e57b63e7e1e94f45364a118662381e60619b4aeec1cfc39cfc7 |