From e8107c685450134bf8e1aecd148f562538779cb1 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Thu, 7 Dec 2023 15:40:16 +0100 Subject: [PATCH] rename script --- README.md | 9 ++++++--- deploy-chatmail/src/deploy_chatmail/www.py | 3 ++- scripts/webdev.sh | 9 +++++++++ scripts/wwwdev.sh | 4 ---- 4 files changed, 17 insertions(+), 8 deletions(-) create mode 100755 scripts/webdev.sh delete mode 100755 scripts/wwwdev.sh diff --git a/README.md b/README.md index 0993321b..5d211513 100644 --- a/README.md +++ b/README.md @@ -53,14 +53,17 @@ All files are generated by the according markdown `.md` file in the `www` direct ### Refining the web pages -The `scripts/wwwdev.sh` script supports live development of the web presence: +The `scripts/webdev.sh` script supports live development of the chatmail web presence: ``` - scripts/wwwdev.sh + scripts/init.sh # to locally initialize python virtual environments etc. + scripts/webdev.sh ``` this will continously regenerate all markdown files from -the `www/build` from the `www/src` directory. +the `www/build` from the `www/src` directory, and use +the `www/src/page-layout.html` file for producing html documents. + Moreover, it will start a browser window automatically. diff --git a/deploy-chatmail/src/deploy_chatmail/www.py b/deploy-chatmail/src/deploy_chatmail/www.py index 57048f5c..ee3a4f69 100644 --- a/deploy-chatmail/src/deploy_chatmail/www.py +++ b/deploy-chatmail/src/deploy_chatmail/www.py @@ -58,10 +58,11 @@ def build_webpages(src_dir, build_dir, config): def main(): + chatmail_domain = "example.testrun.org" path = importlib.resources.files(__package__) reporoot = path.joinpath("../../../").resolve() inipath = reporoot.joinpath("chatmail.ini") - config = get_ini_settings("example.testrun.org", inipath) + config = get_ini_settings(chatmail_domain, inipath) www_path = reporoot.joinpath("www") src_path = www_path.joinpath("src") stats = snapshot_dir_stats(src_path) diff --git a/scripts/webdev.sh b/scripts/webdev.sh new file mode 100755 index 00000000..73e3f7d7 --- /dev/null +++ b/scripts/webdev.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +echo ----------------------------------------- +echo starting local webdev +echo ----------------------------------------- + +venv/bin/python3 -m deploy_chatmail.www + + diff --git a/scripts/wwwdev.sh b/scripts/wwwdev.sh deleted file mode 100755 index fec74d9c..00000000 --- a/scripts/wwwdev.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -venv/bin/python3 -m deploy_chatmail.www -