From d2dfa337171fdad8ed48ce95e3b8f91e291423b7 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sun, 17 Apr 2022 15:16:50 -0600 Subject: add build and upload command, modified readme --- AUTHORS | 2 ++ ChangeLog | 33 ++++++++++++++------------------- README.md | 9 +++------ build_upload.sh | 14 ++++++++++++++ 4 files changed, 33 insertions(+), 25 deletions(-) create mode 100755 build_upload.sh diff --git a/AUTHORS b/AUTHORS index d7cd106..1b11bba 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,2 +1,4 @@ +David Luevano Alvarado <55825613+luevano@users.noreply.github.com> David Luevano Alvarado David Luevano Alvarado +El LM diff --git a/ChangeLog b/ChangeLog index de1c8f6..c96e9bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,30 +1,25 @@ CHANGES ======= -v0.5.8 ------- - +v0.6.0 +------ + +* refactor config handler and more +* add default configuration to resources +* refactor argument parser +* update requirements +* The bullets did not have checkboxes in the To be added section +* A header was wrong +* A little documentation added to avoid mistakes by new users +* kek xd rofl lmao forgot to save a file:), now actually a quick fix +* quick fix on random uppercased letters +* Delete pyssgrc +* fix bug on new extensions * add new extensions - -v0.5.7 ------- - * fix bug on prev/next objects of page - -v0.5.6 ------- - * add config to read first pyssgrc and then to the xdg directory * fix bug on image\_url - -v0.5.5 ------- - * fix another bug - -v0.5.4 ------- - * fix bug v0.5.3 diff --git a/README.md b/README.md index 1a0a3b4..7845805 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Inspired (initially) by Roman Zolotarev's [`ssg5`](https://rgz.ee/bin/ssg5) and [`rssg`](https://rgz.ee/bin/rssg), Luke Smith's [`lb` and `sup`](https://github.com/LukeSmithxyz/lb) and, pedantic.software's great (but *"mamador"*, as I would say in spanish) [`blogit`](https://pedantic.software/git/blogit/). -## Current features +## Features and to-do - [x] Build static site parsing `markdown` files ( `*.md` -> `*.html`) - [x] ~~Using plain `*.html` files for templates.~~ Changed to Jinja templates. @@ -19,13 +19,10 @@ Inspired (initially) by Roman Zolotarev's [`ssg5`](https://rgz.ee/bin/ssg5) and - [ ] Extend this to tag pages and index (right now all tags and index is built no matter if no new/updated file is present). - [x] Configuration file. ~~as an alternative to using command line flags (configuration file options are prioritized).~~ - [x] Use [`configparser`](https://docs.python.org/3/library/configparser.html) instead of custom config handler. - -**Please note that I've removed the use of command line flags for now as it was too much bloat and unnecessary.** - -### To be added/fixed - + - [ ] Migrate to YAML instead of INI, as it is way more flexible. - [x] Avoid the program to freak out when there are directories created in advance. - [ ] Provide more meaningful error messages when you are missing mandatory tags in your `.md` files. +- [ ] More complex directory structure to support multiple subdomains and different types of pages. ### Markdown features diff --git a/build_upload.sh b/build_upload.sh new file mode 100755 index 0000000..c195b5f --- /dev/null +++ b/build_upload.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# this is supposed to be used from within the package root dir, +# too lazy to make it more general + +echo "building package" +/bin/python -m build + +echo "uploading to pypi" +# alternatively, use /bin/python -m twine, i use twine in arch +/bin/twine upload dist/* + +echo "removing dist/*" +rm -r dist \ No newline at end of file -- cgit v1.2.3-70-g09d2