Skip to main content

Fast Static Site Generator

Fast Static Site Generator (Fast SSG) - a tool for generating a complete HTML files from raw data like txt and md files. This tool was made with Python language.

Prerequisites

  • Python3
  • BeautifulSoup4

Tool installation

To install the tool run the following command

pip install fast-ssg==1.0.1

Tool features

  • CSS stylesheet support by specifying --stylesheet or s
  • Title parsing support for txt files. First line, indicates title followed by two blank lines. This will populate the <title>...</title> and add <h1>...</h1> to the top of the <body>...</body>.
  • Title parsing support for md files. Line starting with the Markdown syntax # indicates the title. This will populate the <title>...</title> and add <h1>...</h1> to the top of the <body>...</body>.
  • Header parsing support for md files. Lines starting with the Markdown syntax ## or ### will be parsed with <h2>...</h2> and <h3>...</h3> tags respectively.
  • Italic syntax support for md files. Contents surrounded by Markdown Syntax *italics* will be parsed to html <i>...</i> tags.
  • Bold syntax support for md files. Contents surrounded by Markdown Syntax **Bold** will be parsed to html <b>...</b> tags.
  • Bold and Italic syntax support for md files. Contents surrounded by Markdown Syntax ***Bold Italcs *** will be parsed with both italic and bold html tags.
  • Link syntax support for md files. Contents in Markdown Syntax [Link](url) will be parsed to html link tags with working links.
  • <code> block support for md files. Content surround by Markdown Syntax `code content` will be parsed to html <code>...</code>
  • Horizontal rule support for md files. The Markdown --- gets converted to an <hr> tag.
  • If users specifies a folder for the input, automatically generates an index.html, which has relative links to each of the generated files.

Usage with shorthand flags

Description Command
Generate basic HTML file(s) fast_ssg --input "relative path or absolute path to the file or folder"
Generate basic HTML file(s) with CSS stylesheet fast_ssg --input "relative path or absolute path to the file or folder" --stylesheet "URL to CSS stylesheet"
New Feature: Support arguments passed with Config File fast_ssg -c ./ssg-config.json
Help fast_ssg --help
Get current version fast_ssg --version

Shorthand flags

Flag Shorthand version
--input --i
--help --h
--version --v
--stylesheet --s
--config --c

Markdown

Headers

# H1
## H2
## H3
[Inline-style link](https://github.com)

Bold & Italic

**bold text**

**italic text**

***bold and italic text***

Code block

`var x = y + z`

Horizontal rule

---
Markdown syntax HTML equivalent
Header 1 <h1>Test</h1>
Header 2 <h2>Test</h2>
Header 3 <h3>Test</h3>
Bold <b>Test</b>
Italic <i>Test</i>
Link <a href='URL'>Test</a>
Code <code>Code</code>
Horizontal rule <hr>

Live version & Project-package website

https://abatomunkuev.github.io/static_site_generator/

Release files for fast-ssg 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fast-ssg 1.0.1
File Size Uploaded
fast_ssg-1.0.1.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fast-ssg 1.0.1
File Interpreter ABI Platform
fast_ssg-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.5 kB

Release files / fast_ssg-1.0.1.tar.gz

Download URL fast_ssg-1.0.1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d4637ccc0c85db3f4f2f7d897810028a3250a0273b4adf5ce22a524c17b3b420
BLAKE2b-256 checksum
How to use checksums
5d9c062524cff21673efa1507e0c59b0a60887708476da759e416f181b33465e
Upload date
Uploaded using Trusted Publishing?
What is 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.7.7

Release files / fast_ssg-1.0.1-py3-none-any.whl

Download URL fast_ssg-1.0.1-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07c41f07e896a59d082acd38d19481db52b2652cde6ceccceb66e2195c4eca10
BLAKE2b-256 checksum
How to use checksums
d409ed99111e157e2034b963f7096bc7e5b862c77cc7c36e1613b503d2beadd7
Upload date
Uploaded using Trusted Publishing?
What is 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.7.7

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page