From 0b9df4549e3b9a639908b6127cb8ca29a898d50c Mon Sep 17 00:00:00 2001 From: Priec Date: Tue, 2 Jun 2026 23:23:48 +0200 Subject: [PATCH] production website --- Caddyfile | 20 ++++++++++++++++++++ examples.html | 6 +++--- index.html | 14 +++++++------- robots.txt | 2 +- sitemap.xml | 4 ++-- 5 files changed, 33 insertions(+), 13 deletions(-) create mode 100644 Caddyfile diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..ea3140c --- /dev/null +++ b/Caddyfile @@ -0,0 +1,20 @@ +tui-pages.farmeris.sk { + encode gzip + + # website at the root + handle { + root * /app/tui-pages-web + file_server + handle_errors { + rewrite * /404.html + file_server + } + } + + # mdbook served under /book (book.toml has site-url = "/book/") + redir /book /book/ + handle /book/* { + root * /app/tui-pages-docs + file_server + } +} diff --git a/examples.html b/examples.html index 63762e5..f6f1c2e 100644 --- a/examples.html +++ b/examples.html @@ -10,7 +10,7 @@ Examples — tui-pages - + @@ -82,7 +82,7 @@ @@ -265,7 +265,7 @@ The book walks you from cargo new to a working multi-page app. Or read the API reference and dive in.

- + Start the tutorial diff --git a/index.html b/index.html index e2fe6e4..5ae53bf 100644 --- a/index.html +++ b/index.html @@ -14,13 +14,13 @@ - + - + @@ -129,7 +129,7 @@ @@ -179,7 +179,7 @@ > @@ -218,7 +218,7 @@ Get started - + Read the book @@ -682,7 +682,7 @@ rt.run() // framework handles the rest The book walks you from cargo new to a working multi-page app. Or read the API reference and dive in.

- + Start the tutorial @@ -713,7 +713,7 @@ rt.run() // framework handles the rest

Resources

diff --git a/robots.txt b/robots.txt index 4b0b647..1a0f1b3 100644 --- a/robots.txt +++ b/robots.txt @@ -1,4 +1,4 @@ User-agent: * Allow: / -Sitemap: https://tui-pages.dev/sitemap.xml +Sitemap: https://tui-pages.farmeris.sk/sitemap.xml diff --git a/sitemap.xml b/sitemap.xml index 502b36c..973add0 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1,12 +1,12 @@ - https://tui-pages.dev/ + https://tui-pages.farmeris.sk/ weekly 1.0 - https://tui-pages.dev/examples.html + https://tui-pages.farmeris.sk/examples.html weekly 0.9