rename script

This commit is contained in:
holger krekel
2023-12-07 15:40:16 +01:00
parent 858e079418
commit e8107c6854
4 changed files with 17 additions and 8 deletions

View File

@@ -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.

View File

@@ -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)

9
scripts/webdev.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
echo -----------------------------------------
echo starting local webdev
echo -----------------------------------------
venv/bin/python3 -m deploy_chatmail.www

View File

@@ -1,4 +0,0 @@
#!/usr/bin/env bash
venv/bin/python3 -m deploy_chatmail.www