A CLI static site generator written in Python
Project description
cool_ssg_generator
A simple SSG generator made with Python. Current version is 0.1.0
Dependencies
- Python 3.8.5 (or higher)
Installation
Make sure you have installed Python version 3.8.5 or above. No other dependencies is currently needed.
To clone this project, use:
git clone https://github.com/lmpham1/cool_ssg_generator.git
Then, you'll probably want to navigate to the project's root folder:
cd cool_ssg_generator
Basic Usage
Navigate to the project folder (if you haven't done so already):
cd cool_ssg_generator
Generate a website from a file or folder:
python cool_ssg --input <INPUT_FILE_OR_FOLDER>
Default output folder is ./dist/, to specify a custom output folder:
python cool_ssg --input <INPUT_FILE_OR_FOLDER> --output <OUTPUT_FOLDER>
CSS can be used via the --stylesheet flag:
python cool_ssg --input <INPUT_FILE_OR_FOLDER> --stylesheet <STYLESHEET_URL>
For more usage, please refer to:
python cool_ssg -h
Cool Features
Wanna know what make the cool_ssg_generator so cool? Aside from the totally-intentional doubled 'generator' in the name, it offers the following awesome features:
- Support multiple stylesheets! Simply use the
-sor--stylesheetflags and separate each stylesheet link with space' ', i.e.:
python cool_ssg -i index.txt -s sheet1.css sheet2.css sheet3.css
- Markdown (.md files) support for bold (
**example**or__example__), italics (*example*or_example_), and links ([Example](www.example.com)) - Language for the output HTML documents can be configured with
-lor--langflag (default isen-CA):
python cool_ssg -i test.txt -l en-UK
Note: No validation for --lang/-l option is implemented yet. See issue #14 for more information
- You can save your command-line options in a config file! No need to manually type all the options everytime, just use
--config/-cflag with a json file:
python cool_ssg -c config.json
Note: Using --config/-c option will ignore/override other options
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cool_ssg-lmpham1-1.0.0.tar.gz.
File metadata
- Download URL: cool_ssg-lmpham1-1.0.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
339e563c69ef25199a49c1ce4ddddd78f14886e793775139b81b2c7c9e808f8c
|
|
| MD5 |
a0a34e4da932f793748b8922ec60ac0b
|
|
| BLAKE2b-256 |
cd34eba870f8c7327773631b9f17a2572172f35ef4ffd946746b24b4fd694f3c
|
File details
Details for the file cool_ssg_lmpham1-1.0.0-py3-none-any.whl.
File metadata
- Download URL: cool_ssg_lmpham1-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2786f6a27c6db8efc093d0b9c9d18d81ae256c8b3f076b8e20e9fd6a565fd3ce
|
|
| MD5 |
c0f4d7b9ebfecb13fd1456459c7ea549
|
|
| BLAKE2b-256 |
4e4f34e5423d7a1aff6704868b7a5f5bd18462e93d4c9e25ded4377c461c2fab
|