🏡 index.nb

pruga-web

NĂĄstroje pro sprĂĄvu webovĂœch strĂĄnek v ekosystĂ©mu barbaros.

Weby jsou uloĆŸeny v $BARBAROS_HOME jako trunky rodokrug@<domĂ©na>. KaĆŸdĂœ web obsahuje track master/ se zdrojovĂœmi kĂłdy a samostatnĂœ track public/ s vygenerovanĂœm obsahem pro HTTP server. Adresáƙ public obsahuje html, css a javascript soubory. ObrĂĄzky, multimedia jsou v adresáƙi master/assets a na server se kopĂ­ruje do samostanĂ©ho tracku assets. Na serveru jsou typicky pro kaĆŸdou domenu tracky public a assets. V angie je konfigurace pro assets.

domény

Domeny registrujeme u vedosu(odkaz). Balíček pruga-vedos stahuje seznam domĂ©n.

projkety webƯ jsou balíčky

Weby jsou projekty umĂ­stěnĂ© v $BARBAROS_HOME a majĂ­ jmĂ©no rodokrug@$domain.

Vytvoƙíme projekt pro kaĆŸdĂœ web, kterĂœ hostujeme na vedosu. PƙidĂĄme k domĂ©ně www sibdomĂ©nu. JinĂ© subdomĂ©ny musĂ­ĆĄ vytvoƙit zvlĂĄĆĄĆ„.

for domain in vedosDomainsPkgNames(user = "rodokrug"):
  echo $domain
  # let pkg = dir2name fmt"{PRUGA_WWW_NAMESPACE}@{WWW}.{domain}"
  # pkg.init_web_repo()
  
  # pkg.public_web()
rodokrug@www.nim-lang.cz
rodokrug@www.barbarostan.org
rodokrug@www.domogled.com
rodokrug@www.taborpolana.cz
rodokrug@www.rodokrug.com
rodokrug@www.zivaskola.eu
rodokrug@www.kopanistan.net
rodokrug@www.xtrip.net
rodokrug@www.rodokrug.cz
rodokrug@www.barbarostan.eu
rodokrug@www.rodokruh.cz
rodokrug@www.barbarostan.net
rodokrug@www.nim-lang.eu
rodokrug@www.zvukohlasek.cz
rodokrug@www.rodokrug.org
rodokrug@www.barbarostan.cz

public

seznam balíčkƯ webƯ

for pkg in walk(wwwDirectories):
  pkg.public_web()
sending incremental file list

sent 178 bytes  received 24 bytes  404,00 bytes/sec
total size is 958  speedup is 4,74
sending incremental file list

sent 178 bytes  received 24 bytes  134,67 bytes/sec
total size is 966  speedup is 4,78
sending incremental file list

sent 178 bytes  received 24 bytes  134,67 bytes/sec
total size is 958  speedup is 4,74
sending incremental file list

sent 505 bytes  received 26 bytes  1.062,00 bytes/sec
total size is 583.952  speedup is 1.099,72
sending incremental file list

sent 178 bytes  received 24 bytes  134,67 bytes/sec
total size is 971  speedup is 4,81
sending incremental file list

sent 10.252 bytes  received 58 bytes  6.873,33 bytes/sec
total size is 20.586.372  speedup is 1.996,74
sending incremental file list

sent 178 bytes  received 24 bytes  404,00 bytes/sec
total size is 966  speedup is 4,78
sending incremental file list

sent 178 bytes  received 24 bytes  134,67 bytes/sec
total size is 504.560  speedup is 2.497,82
sending incremental file list

sent 178 bytes  received 24 bytes  404,00 bytes/sec
total size is 972  speedup is 4,81
sending incremental file list

sent 178 bytes  received 24 bytes  404,00 bytes/sec
total size is 960  speedup is 4,75
sending incremental file list

sent 2.888 bytes  received 39 bytes  1.951,33 bytes/sec
total size is 123.928  speedup is 42,34
sending incremental file list

sent 8.985 bytes  received 26 bytes  6.007,33 bytes/sec
total size is 36.472.105  speedup is 4.047,51
sending incremental file list

sent 178 bytes  received 24 bytes  404,00 bytes/sec
total size is 960  speedup is 4,75
sending incremental file list

sent 177 bytes  received 24 bytes  134,00 bytes/sec
total size is 956  speedup is 4,76
sending incremental file list

sent 178 bytes  received 24 bytes  404,00 bytes/sec
total size is 974  speedup is 4,82
sending incremental file list

sent 723 bytes  received 25 bytes  498,67 bytes/sec
total size is 2.650.784  speedup is 3.543,83
sending incremental file list

sent 197 bytes  received 24 bytes  147,33 bytes/sec
total size is 3.306  speedup is 14,96
sending incremental file list

sent 178 bytes  received 24 bytes  404,00 bytes/sec
total size is 972  speedup is 4,81
sending incremental file list

sent 178 bytes  received 24 bytes  134,67 bytes/sec
total size is 959  speedup is 4,75
sending incremental file list

sent 178 bytes  received 24 bytes  404,00 bytes/sec
total size is 967  speedup is 4,79
sending incremental file list

sent 148 bytes  received 24 bytes  344,00 bytes/sec
total size is 0  speedup is 0,00
sending incremental file list

sent 1.470 bytes  received 25 bytes  996,67 bytes/sec
total size is 3.219  speedup is 2,15
sending incremental file list

sent 178 bytes  received 24 bytes  404,00 bytes/sec
total size is 962  speedup is 4,76
sending incremental file list

sent 1.527 bytes  received 24 bytes  1.034,00 bytes/sec
total size is 4.576.833  speedup is 2.950,89

CLI nĂĄstroje

struktura webu

rodokrug@www.pƙíklad.cz/
├── master/        # track se zdrojáky
│   ├── pages/     # nimib dokumentace
│   ├── pkg/       # knihovny
│   ├── config/    # nixos konfigurace
│   └── play.fish, make.fish
├── public/        # track s vĂœstupem pro HTTP server

🍓 izgotovila â°’â±ƒâ±†â°łâ°° 5.8 2026 23:21

import pkg/nimib
import pkg/pruga/times
import pkg/pruga/page
import pkg/pruga/pkg/walk
import pkg/barbaros
import pkg/pruga/os
import pkg/pruga/web/public
import pkg/pruga/vedos/api/domain

nbInit

nbText: &"""
# pruga-web

NĂĄstroje pro sprĂĄvu webovĂœch strĂĄnek v ekosystĂ©mu barbaros.

Weby jsou uloĆŸeny v `$BARBAROS_HOME` jako trunky `rodokrug@<domĂ©na>`.
KaĆŸdĂœ web obsahuje track `master/` se zdrojovĂœmi kĂłdy a samostatnĂœ
track `public/` s vygenerovanĂœm obsahem pro HTTP server.
Adresáƙ public obsahuje html, css a javascript soubory.
Obrázky, multimedia jsou v adresáƙi master/assets a na server se kopíruje
do samostanĂ©ho tracku assets. Na serveru jsou typicky pro kaĆŸdou domenu tracky public a  assets.
V angie je konfigurace pro assets.

## domény
Domeny registrujeme u vedosu(odkaz). Balíček pruga-vedos stahuje seznam domĂ©n.

## projkety webƯ jsou balíčky

Weby jsou projekty umĂ­stěnĂ© v $BARBAROS_HOME a majĂ­ jmĂ©no rodokrug@$domain.

Vytvoƙíme projekt pro kaĆŸdĂœ web, kterĂœ hostujeme na vedosu. PƙidĂĄme k domĂ©ně www sibdomĂ©nu.
JinĂ© subdomĂ©ny musĂ­ĆĄ vytvoƙit zvlĂĄĆĄĆ„.
"""

nbCode:
  for domain in vedosDomainsPkgNames(user = "rodokrug"):
    echo $domain
    # let pkg = dir2name fmt"{PRUGA_WWW_NAMESPACE}@{WWW}.{domain}"
    # pkg.init_web_repo()
    
    # pkg.public_web()

nbText &"""
## public

seznam balíčkƯ webƯ

"""

nbCode:
  for pkg in walk(wwwDirectories):
    pkg.public_web()

nbText: &"""

## CLI nĂĄstroje

- `pruga-web-public` — sestavení a nasazení webƯ na server
- `pruga-web-init-angie` — vytvoƙení nixos konfigurace pro Angie
- `vedos-www-domains` — vĂœpis domĂ©n

## struktura webu

```
rodokrug@www.pƙíklad.cz/
├── master/        # track se zdrojáky
│   ├── pages/     # nimib dokumentace
│   ├── pkg/       # knihovny
│   ├── config/    # nixos konfigurace
│   └── play.fish, make.fish
├── public/        # track s vĂœstupem pro HTTP server
```

🍓 izgotovila â°’â±ƒâ±†â°łâ°° {now().format("d.M yyyy HH:mm")}
"""

nbSave