index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2023-03-27 4:53:11.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2023-03-27 4:53:11.0 +00:00:00
commit
90ec4b64b548123fa00af391705123a0fd8fa766 [patch]
tree
c999391c5f826031feecaef7c95fef693a2b370d
parent
cc1de0832560173ed9dfa08a67bedff199388cfb
download
90ec4b64b548123fa00af391705123a0fd8fa766.tar.gz

docs: move to static-web-server.net domain [skip ci]

it also handles automatically redirections from old sws.joseluisq.net

Diff

 README.md                                 | 10 +++++-----
 docs/README.md                            |  2 +-
 docs/content/configuration/config-file.md |  2 +-
 docs/content/features/url-redirects.md    |  2 +-
 docs/content/index.md                     |  2 +-
 docs/man/static-web-server.1.rst          |  2 +-
 docs/mkdocs.yml                           |  2 +-
 src/directory_listing.rs                  |  2 +-
 tests/toml/config.toml                    |  2 +-
 9 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/README.md b/README.md
index e24943a..f5f9395 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
<div>
  <div align="center">
    <img
      src="https://sws.joseluisq.net/assets/sws.svg" height="100" width="100"
      src="https://static-web-server.net/assets/sws.svg" height="100" width="100"
    />
  </div>

@@ -16,7 +16,7 @@
<a href="https://hub.docker.com/r/joseluisq/static-web-server/" title="Docker Image Version (tag latest semver)"><img src="https://img.shields.io/docker/v/joseluisq/static-web-server/2"></a> 
<a href="https://hub.docker.com/r/joseluisq/static-web-server/tags" title="Docker Image Size (tag)"><img src="https://img.shields.io/docker/image-size/joseluisq/static-web-server/2"></a> 
<a href="https://hub.docker.com/r/joseluisq/static-web-server/" title="Docker Image"><img src="https://img.shields.io/docker/pulls/joseluisq/static-web-server.svg"></a> 
<a href="https://sws.joseluisq.net" title="Documentation"><img src="https://img.shields.io/badge/docs-latest-green"></a>
<a href="https://static-web-server.net" title="Documentation"><img src="https://img.shields.io/badge/docs-latest-green"></a>
</div>
</div>

@@ -64,13 +64,13 @@ It's cross-platform and available for `Linux`, `macOS`, `Windows` and `FreeBSD` 

## Documentation

For more details about the API, usage and examples please have a look at [The Documentation Website]https://sws.joseluisq.net/.
For more details about the API, usage and examples please have a look at [The Documentation Website]https://static-web-server.net/.

## Releases

- [Docker Images]https://hub.docker.com/r/joseluisq/static-web-server/
- [Release Binaries]https://github.com/static-web-server/static-web-server/releases
- [Platforms/Architectures Supported]https://sws.joseluisq.net/platforms-architectures/
- [Platforms/Architectures Supported]https://static-web-server.net/platforms-architectures/

## Benchmarks

@@ -81,7 +81,7 @@ See more details on [benchmark/BENCHMARKS.md](benchmark/BENCHMARKS.md)
## Notes

- If you're looking for `v1` please go to [1.x]https://github.com/static-web-server/static-web-server/tree/1.x branch.
- If you want to migrate from `v1` to `v2` please take a look at [Migrating from `v1` to `v2`]https://sws.joseluisq.net/migration/ release.
- If you want to migrate from `v1` to `v2` please take a look at [Migrating from `v1` to `v2`]https://static-web-server.net/migration/ release.

## Contributions

diff --git a/docs/README.md b/docs/README.md
index 1691bda..0228e8e 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1,3 +1,3 @@
# Build or improve documentation

To build or improve the documentation follow the [building documentation from source]https://sws.joseluisq.net/building-from-source/#building-documentation-from-source instructions.
To build or improve the documentation follow the [building documentation from source]https://static-web-server.net/building-from-source/#building-documentation-from-source instructions.
diff --git a/docs/content/configuration/config-file.md b/docs/content/configuration/config-file.md
index c1819e9..58290a9 100644
--- a/docs/content/configuration/config-file.md
+++ b/docs/content/configuration/config-file.md
@@ -85,7 +85,7 @@ ignore-hidden-files = false
#### instead, it just tells SWS to run in a Windows Service context,
#### so it's necessary to install the SWS Windows Service first
#### using the `static-web-server.exe -w config.toml install` command.
#### More details on https://sws.joseluisq.net/features/windows-service/
#### More details on https://static-web-server.net/features/windows-service/
# windows-service = false


diff --git a/docs/content/features/url-redirects.md b/docs/content/features/url-redirects.md
index 9fe033e..d088315 100644
--- a/docs/content/features/url-redirects.md
+++ b/docs/content/features/url-redirects.md
@@ -47,6 +47,6 @@ kind = 301

[[advanced.redirects]]
source = "/index.html"
destination = "https://sws.joseluisq.net"
destination = "https://static-web-server.net"
kind = 302
```
diff --git a/docs/content/index.md b/docs/content/index.md
index 1901a8b..8b8b5ae 100644
--- a/docs/content/index.md
+++ b/docs/content/index.md
@@ -14,7 +14,7 @@
<a href="https://hub.docker.com/r/joseluisq/static-web-server/" title="Docker Image Version (tag latest semver)"><img src="https://img.shields.io/docker/v/joseluisq/static-web-server/2"></a> 
<a href="https://hub.docker.com/r/joseluisq/static-web-server/tags" title="Docker Image Size (tag)"><img src="https://img.shields.io/docker/image-size/joseluisq/static-web-server/2"></a> 
<a href="https://hub.docker.com/r/joseluisq/static-web-server/" title="Docker Image"><img src="https://img.shields.io/docker/pulls/joseluisq/static-web-server.svg"></a> 
<a href="https://sws.joseluisq.net" title="Documentation"><img src="https://img.shields.io/badge/docs-latest-green"></a>
<a href="https://static-web-server.net" title="Documentation"><img src="https://img.shields.io/badge/docs-latest-green"></a>
</div>
</div>

diff --git a/docs/man/static-web-server.1.rst b/docs/man/static-web-server.1.rst
index 730e13d..8a2e6dd 100644
--- a/docs/man/static-web-server.1.rst
+++ b/docs/man/static-web-server.1.rst
@@ -106,7 +106,7 @@ VERSION

HOMEPAGE
--------
https://sws.joseluisq.net
https://static-web-server.net


REPORTING BUGS
diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml
index f76fc9a..5ce2cdc 100644
--- a/docs/mkdocs.yml
+++ b/docs/mkdocs.yml
@@ -2,7 +2,7 @@
site_name: Static Web Server
site_description: 'A cross-platform, high-performance and asynchronous web server for static files-serving ⚡'
site_author: 'Jose Quintana'
site_url: https://sws.joseluisq.net
site_url: https://static-web-server.net
dev_addr: 0.0.0.0:8000

# Repository
diff --git a/src/directory_listing.rs b/src/directory_listing.rs
index 03b441c..dab3399 100644
--- a/src/directory_listing.rs
+++ b/src/directory_listing.rs
@@ -94,7 +94,7 @@ pub fn auto_index<'a>(
}

const STYLE: &str = r#"<style>html{background-color:#fff;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;min-width:20rem;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}body{padding:1rem;font-family:Consolas,'Liberation Mono',Menlo,monospace;font-size:.875rem;max-width:70rem;margin:0 auto;color:#4a4a4a;font-weight:400;line-height:1.5}h1{margin:0;padding:0;font-size:1.375rem;line-height:1.25;margin-bottom:0.5rem;}table{width:100%;border-spacing: 0;}table th,table td{padding:.2rem .5rem;white-space:nowrap;vertical-align:top}table th a,table td a{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:95%;vertical-align:top}table tr:hover td{background-color:#f5f5f5}footer{padding-top:0.5rem}table tr th{text-align:left;}</style>"#;
const FOOTER: &str = r#"<footer>Powered by <a target="_blank" href="https://sws.joseluisq.net">static-web-server</a> | MIT &amp; Apache 2.0</footer>"#;
const FOOTER: &str = r#"<footer>Powered by <a target="_blank" href="https://static-web-server.net">Static Web Server</a> | MIT &amp; Apache 2.0</footer>"#;

const DATETIME_FORMAT_UTC: &str = "%FT%TZ";
const DATETIME_FORMAT_LOCAL: &str = "%F %T";
diff --git a/tests/toml/config.toml b/tests/toml/config.toml
index eafaa3e..db3e0e5 100644
--- a/tests/toml/config.toml
+++ b/tests/toml/config.toml
@@ -99,7 +99,7 @@ kind = 301

[[advanced.redirects]]
source = "/index.html"
destination = "https://sws.joseluisq.net"
destination = "https://static-web-server.net"
kind = 302

### URL Rewrites