From 8d4bfc6e7e629ed9736c75a185040c9f3cf8c441 Mon Sep 17 00:00:00 2001 From: Andrew Ridgway Date: Thu, 7 Nov 2024 17:25:43 +1000 Subject: [PATCH] initial --- README.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..63281af --- /dev/null +++ b/README.md @@ -0,0 +1,46 @@ +## BLOG CREATOR + +This container is going to be what I use to trigger a blog creation event + +To do this we will + +1. Download a Note from Trillium (I need to work out how to choose this, maybe something with a tag and then this can add a tag when it's used? each note is a seperate post, a tag to indicate if it's ready as well?) + +`SELECT NOTES WHERE blog_tag = true AND used_tag = false AND ready_tag = true?` + +2. Check if the ollama server is available (it's currently on a box that may not be on) + +- If not on stop + +3. `git pull git.aridgwayweb.com/blog` + +- set up git creds: git.name = ai git.email = ridgwayinfrastructure@gmail.com get git password stored (create service user in gitea for this) + +- `git config set upstream Auto true` + +4. cd /src/content + +5. take the information from the trillium note and prepare a 500 word blog post, insert the following at the top + +``` +Title: +Date: <date post created> +Modified: <date post created> +Category: <this will come from a tag on the post (category: <category>) +Tags: <ai generated tags>, ai_content, not_human_content +Slug: <have ai write slug?> +Authors: <model name>.ai +Summary: <have ai write a 10 word summary of the post +``` + +6. write it to `<title>.md` + +7. `git checkout -b <title>` + +8. `git add .` + +9. `git commit -m "<have ai write a git commit about the post>"` + +10. `git push` + +11. Send notification via n8n to matrix for me to review?