Ssite

Latest version: v0.4.1

Safety actively analyzes 621622 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.4.0

- Add `ssite note` command for creating a new note post.


$ ssite note --help
usage: ssite note [-h] [--blog_dir BLOG_DIR] [--pixelart PIXELART]
[--published_date PUBLISHED_DATE]
[--published_timezone PUBLISHED_TIMEZONE]
template_path note

positional arguments:
template_path Path to note template (jinja2).
note Text or HTML content for note post.

optional arguments:
-h, --help show this help message and exit
--blog_dir BLOG_DIR Path to blog directory.
--pixelart PIXELART Path to pixel art image for note.
--published_date PUBLISHED_DATE
Date-time that the note was published. Notes are
assumed to be published at most once per second.
--published_timezone PUBLISHED_TIMEZONE
What timezone to use when interpreting the
--published_date argument?


Example:


ssite note blog/note.jinja2.html --blog_dir blog --pixelart ~/Desktop/octobit11-folklore.png 'A thunderbird from North American folklore for octobit day 11 pixelart ドット絵 🎨'


* Add `ssite syndicate rss` command for creating an RSS feed with resized images. (Requires gifsicle for resizing GIFs, Pillow for other image formats.) (PR 8)


$ ssite syndicate rss --help
usage: ssite syndicate rss [-h] [--output_dir OUTPUT_DIR]
[--site_url SITE_URL]
[--syndication_url SYNDICATION_URL] [-t TEMPLATE]
indexed_dir

positional arguments:
indexed_dir path to root of a directory to be indexed

optional arguments:
-h, --help show this help message and exit
--output_dir OUTPUT_DIR
path to write blog.xml and syndicated images to.
--site_url SITE_URL URL of site (must end in /)
--syndication_url SYNDICATION_URL
URL of syndication site (must end in /)
-t TEMPLATE, --template TEMPLATE
path to index blog.xml template.


Example:


$ ssite syndicate rss blog -t syndicate/blog.jinja2.xml --output_dir syndicate --site_url https://www.timswast.com/ --syndication_url https://timswast-syndicate.storage.googleapis.com/

0.3.0

* Use microformats2 to parse articles and render index.
* Add command to replace header.

0.2.0

Breaking changes

* Rename `ssite blogindex` command to `ssite index`.
* Rename `ssite cleanhtml` command to `ssite clean`.

0.1.0

Initial release of Ssite.

Ssite includes two commands which are useful for maintaining a static site:

- `ssite blogindex` Generates an `index.html` file for date-based directories.
- `ssite createhtml` Removes extra markup from exported HTML files to make them easier to edit by hand.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.