Various Improvements and Changes #1

Open
june wants to merge 9 commits from june/hedgedoc-expire:patches into main

9 commits

Author SHA1 Message Date
Julian Schacher
8ccb28a5fa bump version to 0.2.0 as a lot changed, especially the CLI and config 2024-12-09 18:27:53 +01:00
Julian Schacher
5569119fcc improve docs with better infos, format and consistency
For the README:
- Improve the format, getting rid of the textwidth-based linebreaks and
  instead putting each sentence on its own line.
- Have an example for a local check execution to have the examples be
  more diverse.
- Describe the docker compose example and have it be up-to-date.
- Better describe the local setup example.
- Reformat the section on commands and arguments, first describing the
  commands and then the arguments, as this makes more sense
  structurally.
- Also change the title of the arguments and environment variables
  section to reflect its content on commands.

For the help output mirror the command descriptions of the README and
improve the format.
2024-12-09 18:27:53 +01:00
Julian Schacher
07ef29225e remove the exclude arg and instead have the revs and notes args be opt.
And then only act on notes/revisions, if the relevant argument got
specified.
This makes the CLI cleaner.
2024-12-09 18:27:53 +01:00
Julian Schacher
4bee60b8dd include date header in mail as some mail servers require that 2024-12-09 18:27:53 +01:00
Julian Schacher
1911694baf only login to SMTP server, if username and password set 2024-12-09 18:27:53 +01:00
Julian Schacher
48ba4ef7ca add logic for removing deleted notes from users histories 2024-12-02 19:49:08 +01:00
Julian Schacher
b471bbd4d3 switch to another postgresql python library (from pgsql to psycopg)
Switch to a library which is more well-known.
I also thought the library was the problem for not being able to
template in a JSON path, but that is just a PostgreSQL problem it seems.
2024-12-02 19:49:05 +01:00
Julian Schacher
62cd667db5 add option for excluding notes or revisions from the action
This is useful, if one just wants to either expire notes or revisions.
2024-11-25 19:02:19 +01:00
Julian Schacher
86e03c0d4e make docker image build work
- Depend on a python version Debian actually ships with in
  pyproject.toml and update the poetry.lock accordingly.
- Fix poetry bundle complaining about no python by installing
  python-is-python3.
  Also remove the python flag for poetry bundle then.
2024-11-25 17:50:55 +01:00