From b6cd71d4fff09b236df0e814fad0b730e6b608cc Mon Sep 17 00:00:00 2001 From: yhirose Date: Sat, 28 Feb 2026 20:58:42 -0500 Subject: [PATCH] Update `docs/` --- docs/en/cookbook/index.html | 16 ++++----- docs/en/index.html | 14 ++++---- docs/en/tour/01-getting-started/index.html | 34 +++++++++---------- docs/en/tour/02-basic-client/index.html | 34 +++++++++---------- docs/en/tour/03-basic-server/index.html | 34 +++++++++---------- docs/en/tour/04-static-file-server/index.html | 34 +++++++++---------- docs/en/tour/05-tls-setup/index.html | 34 +++++++++---------- docs/en/tour/06-https-client/index.html | 34 +++++++++---------- docs/en/tour/07-https-server/index.html | 34 +++++++++---------- docs/en/tour/08-websocket/index.html | 34 +++++++++---------- docs/en/tour/09-whats-next/index.html | 34 +++++++++---------- docs/en/tour/index.html | 34 +++++++++---------- docs/index.html | 6 ++-- docs/ja/cookbook/index.html | 16 ++++----- docs/ja/index.html | 14 ++++---- docs/ja/tour/01-getting-started/index.html | 34 +++++++++---------- docs/ja/tour/02-basic-client/index.html | 34 +++++++++---------- docs/ja/tour/03-basic-server/index.html | 34 +++++++++---------- docs/ja/tour/04-static-file-server/index.html | 34 +++++++++---------- docs/ja/tour/05-tls-setup/index.html | 34 +++++++++---------- docs/ja/tour/06-https-client/index.html | 34 +++++++++---------- docs/ja/tour/07-https-server/index.html | 34 +++++++++---------- docs/ja/tour/08-websocket/index.html | 34 +++++++++---------- docs/ja/tour/09-whats-next/index.html | 34 +++++++++---------- docs/ja/tour/index.html | 34 +++++++++---------- docs/js/main.js | 5 ++- 26 files changed, 377 insertions(+), 374 deletions(-) diff --git a/docs/en/cookbook/index.html b/docs/en/cookbook/index.html index 2ea7169..0c816fb 100644 --- a/docs/en/cookbook/index.html +++ b/docs/en/cookbook/index.html @@ -1,10 +1,10 @@ - + Cookbook - cpp-httplib - + + diff --git a/docs/en/index.html b/docs/en/index.html index 1513096..b8ce7b7 100644 --- a/docs/en/index.html +++ b/docs/en/index.html @@ -1,10 +1,10 @@ - + cpp-httplib - cpp-httplib - + + diff --git a/docs/en/tour/01-getting-started/index.html b/docs/en/tour/01-getting-started/index.html index 947de1a..4a42f73 100644 --- a/docs/en/tour/01-getting-started/index.html +++ b/docs/en/tour/01-getting-started/index.html @@ -1,10 +1,10 @@ - + Getting Started - cpp-httplib - + + diff --git a/docs/en/tour/02-basic-client/index.html b/docs/en/tour/02-basic-client/index.html index 57f07ae..e0f60cf 100644 --- a/docs/en/tour/02-basic-client/index.html +++ b/docs/en/tour/02-basic-client/index.html @@ -1,10 +1,10 @@ - + Basic Client - cpp-httplib - + + diff --git a/docs/en/tour/03-basic-server/index.html b/docs/en/tour/03-basic-server/index.html index a4d9dcf..f173c41 100644 --- a/docs/en/tour/03-basic-server/index.html +++ b/docs/en/tour/03-basic-server/index.html @@ -1,10 +1,10 @@ - + Basic Server - cpp-httplib - + + diff --git a/docs/en/tour/04-static-file-server/index.html b/docs/en/tour/04-static-file-server/index.html index 3f1d5b6..75a0706 100644 --- a/docs/en/tour/04-static-file-server/index.html +++ b/docs/en/tour/04-static-file-server/index.html @@ -1,10 +1,10 @@ - + Static File Server - cpp-httplib - + + diff --git a/docs/en/tour/05-tls-setup/index.html b/docs/en/tour/05-tls-setup/index.html index 0910368..9fe1395 100644 --- a/docs/en/tour/05-tls-setup/index.html +++ b/docs/en/tour/05-tls-setup/index.html @@ -1,10 +1,10 @@ - + TLS Setup - cpp-httplib - + + diff --git a/docs/en/tour/06-https-client/index.html b/docs/en/tour/06-https-client/index.html index 8d68feb..62a59b7 100644 --- a/docs/en/tour/06-https-client/index.html +++ b/docs/en/tour/06-https-client/index.html @@ -1,10 +1,10 @@ - + HTTPS Client - cpp-httplib - + + diff --git a/docs/en/tour/07-https-server/index.html b/docs/en/tour/07-https-server/index.html index 1819647..8852658 100644 --- a/docs/en/tour/07-https-server/index.html +++ b/docs/en/tour/07-https-server/index.html @@ -1,10 +1,10 @@ - + HTTPS Server - cpp-httplib - + + diff --git a/docs/en/tour/08-websocket/index.html b/docs/en/tour/08-websocket/index.html index 57854c4..66eca19 100644 --- a/docs/en/tour/08-websocket/index.html +++ b/docs/en/tour/08-websocket/index.html @@ -1,10 +1,10 @@ - + WebSocket - cpp-httplib - + + diff --git a/docs/en/tour/09-whats-next/index.html b/docs/en/tour/09-whats-next/index.html index 9519f9f..4f23551 100644 --- a/docs/en/tour/09-whats-next/index.html +++ b/docs/en/tour/09-whats-next/index.html @@ -1,10 +1,10 @@ - + What's Next - cpp-httplib - + + diff --git a/docs/en/tour/index.html b/docs/en/tour/index.html index ce8502e..e2c8de2 100644 --- a/docs/en/tour/index.html +++ b/docs/en/tour/index.html @@ -1,10 +1,10 @@ - + A Tour of cpp-httplib - cpp-httplib - + + diff --git a/docs/index.html b/docs/index.html index 7362714..a6c85f3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,13 +5,13 @@ - + Redirecting... -

Redirecting to /en/...

+

Redirecting to /cpp-httplib/en/...

\ No newline at end of file diff --git a/docs/ja/cookbook/index.html b/docs/ja/cookbook/index.html index 5fd34c2..92980a8 100644 --- a/docs/ja/cookbook/index.html +++ b/docs/ja/cookbook/index.html @@ -1,10 +1,10 @@ - + Cookbook - cpp-httplib - + + diff --git a/docs/ja/index.html b/docs/ja/index.html index d4e61d2..4fd41bc 100644 --- a/docs/ja/index.html +++ b/docs/ja/index.html @@ -1,10 +1,10 @@ - + cpp-httplib - cpp-httplib - + + diff --git a/docs/ja/tour/01-getting-started/index.html b/docs/ja/tour/01-getting-started/index.html index 0ba405f..29eee12 100644 --- a/docs/ja/tour/01-getting-started/index.html +++ b/docs/ja/tour/01-getting-started/index.html @@ -1,10 +1,10 @@ - + Getting Started - cpp-httplib - + + diff --git a/docs/ja/tour/02-basic-client/index.html b/docs/ja/tour/02-basic-client/index.html index aa243df..ed178e8 100644 --- a/docs/ja/tour/02-basic-client/index.html +++ b/docs/ja/tour/02-basic-client/index.html @@ -1,10 +1,10 @@ - + Basic Client - cpp-httplib - + + diff --git a/docs/ja/tour/03-basic-server/index.html b/docs/ja/tour/03-basic-server/index.html index 9c0493b..89d70c7 100644 --- a/docs/ja/tour/03-basic-server/index.html +++ b/docs/ja/tour/03-basic-server/index.html @@ -1,10 +1,10 @@ - + Basic Server - cpp-httplib - + + diff --git a/docs/ja/tour/04-static-file-server/index.html b/docs/ja/tour/04-static-file-server/index.html index 206f1d0..3815626 100644 --- a/docs/ja/tour/04-static-file-server/index.html +++ b/docs/ja/tour/04-static-file-server/index.html @@ -1,10 +1,10 @@ - + Static File Server - cpp-httplib - + + diff --git a/docs/ja/tour/05-tls-setup/index.html b/docs/ja/tour/05-tls-setup/index.html index 908bba9..af0ee31 100644 --- a/docs/ja/tour/05-tls-setup/index.html +++ b/docs/ja/tour/05-tls-setup/index.html @@ -1,10 +1,10 @@ - + TLS Setup - cpp-httplib - + + diff --git a/docs/ja/tour/06-https-client/index.html b/docs/ja/tour/06-https-client/index.html index fbbfd3d..3deaf31 100644 --- a/docs/ja/tour/06-https-client/index.html +++ b/docs/ja/tour/06-https-client/index.html @@ -1,10 +1,10 @@ - + HTTPS Client - cpp-httplib - + + diff --git a/docs/ja/tour/07-https-server/index.html b/docs/ja/tour/07-https-server/index.html index 2ed95e2..e5b6567 100644 --- a/docs/ja/tour/07-https-server/index.html +++ b/docs/ja/tour/07-https-server/index.html @@ -1,10 +1,10 @@ - + HTTPS Server - cpp-httplib - + + diff --git a/docs/ja/tour/08-websocket/index.html b/docs/ja/tour/08-websocket/index.html index 85903d2..8ec05f0 100644 --- a/docs/ja/tour/08-websocket/index.html +++ b/docs/ja/tour/08-websocket/index.html @@ -1,10 +1,10 @@ - + WebSocket - cpp-httplib - + + diff --git a/docs/ja/tour/09-whats-next/index.html b/docs/ja/tour/09-whats-next/index.html index c3b22f4..2be2203 100644 --- a/docs/ja/tour/09-whats-next/index.html +++ b/docs/ja/tour/09-whats-next/index.html @@ -1,10 +1,10 @@ - + What's Next - cpp-httplib - + + diff --git a/docs/ja/tour/index.html b/docs/ja/tour/index.html index 5024677..dee4897 100644 --- a/docs/ja/tour/index.html +++ b/docs/ja/tour/index.html @@ -1,10 +1,10 @@ - + A Tour of cpp-httplib - cpp-httplib - + + diff --git a/docs/js/main.js b/docs/js/main.js index 3bdb6bb..5ed3fbe 100644 --- a/docs/js/main.js +++ b/docs/js/main.js @@ -19,8 +19,11 @@ e.preventDefault(); var lang = link.getAttribute('data-lang'); localStorage.setItem('preferred-lang', lang); + var basePath = document.documentElement.getAttribute('data-base-path') || ''; var path = window.location.pathname; - var newPath = path.replace(/^\/[a-z]{2}\//, '/' + lang + '/'); + // Strip base path prefix, replace lang, then re-add base path + var pathWithoutBase = path.slice(basePath.length); + var newPath = basePath + pathWithoutBase.replace(/^\/[a-z]{2}\//, '/' + lang + '/'); window.location.href = newPath; }); })();