From cf0d61876092cd43a4cee02d370c91594d0ef906 Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Sun, 19 Mar 2023 01:57:00 +0100 Subject: [PATCH] refactor: logo and description --- Cargo.toml | 2 +- README.md | 5 ++--- docker/alpine/Dockerfile | 4 ++-- docker/devel/Dockerfile.alpine | 4 ++-- docker/devel/Dockerfile.scratch | 4 ++-- docker/public/assets/index.html | 2 +- docker/public/index.html | 2 +- docker/scratch/Dockerfile | 4 ++-- docs/content/assets/rust_logo.svg | 10 ---------- docs/content/assets/style.css | 25 +++++++++++++++++++++++++ docs/content/assets/sws.svg | 1 + docs/content/assets/sws_white.svg | 1 + docs/content/configuration/command-line-arguments.md | 2 +- docs/content/index.md | 11 ++++------- docs/man/static-web-server.1.rst | 2 +- docs/mkdocs.yml | 6 +++--- src/winservice.rs | 3 ++- 17 files changed, 51 insertions(+), 37 deletions(-) delete mode 100644 docs/content/assets/rust_logo.svg create mode 100644 docs/content/assets/sws.svg create mode 100644 docs/content/assets/sws_white.svg diff --git a/Cargo.toml b/Cargo.toml index eb11aa2..8a9d33d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "static-web-server" version = "2.15.0" authors = ["Jose Quintana "] license = "MIT OR Apache-2.0" -description = "A cross-platform, blazing fast and asynchronous web server for static files-serving." +description = "A cross-platform, high-performance and asynchronous web server for static files-serving." repository = "https://github.com/static-web-server/static-web-server" readme = "README.md" keywords = [ diff --git a/README.md b/README.md index fcd835d..e24943a 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,14 @@

Static Web Server

- A blazing fast and asynchronous web server for static files-serving ⚡ + A cross-platform, high-performance and asynchronous web server for static files-serving ⚡

diff --git a/docker/alpine/Dockerfile b/docker/alpine/Dockerfile index 2de5d6f..70aeb5b 100644 --- a/docker/alpine/Dockerfile +++ b/docker/alpine/Dockerfile @@ -26,7 +26,7 @@ ARG SERVER_VERSION=0.0.0 ENV SERVER_VERSION=${SERVER_VERSION} LABEL version="${SERVER_VERSION}" \ - description="A cross-platform, blazing fast and asynchronous web server for static files-serving." \ + description="A cross-platform, high-performance and asynchronous web server for static files-serving." \ maintainer="Jose Quintana " RUN apk --no-cache add ca-certificates tzdata @@ -47,6 +47,6 @@ CMD ["static-web-server"] LABEL org.opencontainers.image.vendor="Jose Quintana" \ org.opencontainers.image.url="https://github.com/static-web-server/static-web-server" \ org.opencontainers.image.title="Static Web Server" \ - org.opencontainers.image.description="A cross-platform, blazing fast and asynchronous web server for static files-serving." \ + org.opencontainers.image.description="A cross-platform, high-performance and asynchronous web server for static files-serving." \ org.opencontainers.image.version="${SERVER_VERSION}" \ org.opencontainers.image.documentation="https://github.com/static-web-server/static-web-server" diff --git a/docker/devel/Dockerfile.alpine b/docker/devel/Dockerfile.alpine index f2b8164..833f7e7 100644 --- a/docker/devel/Dockerfile.alpine +++ b/docker/devel/Dockerfile.alpine @@ -3,7 +3,7 @@ FROM alpine:3.16.4 ENV SERVER_VERSION=devel LABEL version="${SERVER_VERSION}" \ - description="A cross-platform, blazing fast and asynchronous web server for static files-serving." \ + description="A cross-platform, high-performance and asynchronous web server for static files-serving." \ maintainer="Jose Quintana " RUN apk --no-cache add ca-certificates tzdata @@ -24,6 +24,6 @@ CMD ["static-web-server"] LABEL org.opencontainers.image.vendor="Jose Quintana" \ org.opencontainers.image.url="https://github.com/static-web-server/static-web-server" \ org.opencontainers.image.title="Static Web Server" \ - org.opencontainers.image.description="A cross-platform, blazing fast and asynchronous web server for static files-serving." \ + org.opencontainers.image.description="A cross-platform, high-performance and asynchronous web server for static files-serving." \ org.opencontainers.image.version="${SERVER_VERSION}" \ org.opencontainers.image.documentation="https://github.com/static-web-server/static-web-server" diff --git a/docker/devel/Dockerfile.scratch b/docker/devel/Dockerfile.scratch index 8be9fcc..6cf9e61 100644 --- a/docker/devel/Dockerfile.scratch +++ b/docker/devel/Dockerfile.scratch @@ -3,7 +3,7 @@ FROM scratch ENV SERVER_VERSION=devel LABEL version="${SERVER_VERSION}" \ - description="A cross-platform, blazing fast and asynchronous web server for static files-serving." \ + description="A cross-platform, high-performance and asynchronous web server for static files-serving." \ maintainer="Jose Quintana " COPY ./docker/devel/static-web-server / @@ -20,6 +20,6 @@ ENTRYPOINT ["/static-web-server"] LABEL org.opencontainers.image.vendor="Jose Quintana" \ org.opencontainers.image.url="https://github.com/static-web-server/static-web-server" \ org.opencontainers.image.title="Static Web Server" \ - org.opencontainers.image.description="A cross-platform, blazing fast and asynchronous web server for static files-serving." \ + org.opencontainers.image.description="A cross-platform, high-performance and asynchronous web server for static files-serving." \ org.opencontainers.image.version="${SERVER_VERSION}" \ org.opencontainers.image.documentation="https://github.com/static-web-server/static-web-server" diff --git a/docker/public/assets/index.html b/docker/public/assets/index.html index da88fe4..07599bc 100644 --- a/docker/public/assets/index.html +++ b/docker/public/assets/index.html @@ -10,7 +10,7 @@

Assets Page

-

A cross-platform, blazing fast and asynchronous web server for static files-serving. ⚡

+

A cross-platform, high-performance and asynchronous web server for static files-serving. ⚡

View on GitHub

diff --git a/docker/public/index.html b/docker/public/index.html index 3c23779..91a027e 100644 --- a/docker/public/index.html +++ b/docker/public/index.html @@ -8,7 +8,7 @@

Static Web Server

-

A cross-platform, blazing fast and asynchronous web server for static files-serving. ⚡

+

A cross-platform, high-performance and asynchronous web server for static files-serving. ⚡

View on GitHub

diff --git a/docker/scratch/Dockerfile b/docker/scratch/Dockerfile index 902b31b..b702dbf 100644 --- a/docker/scratch/Dockerfile +++ b/docker/scratch/Dockerfile @@ -8,7 +8,7 @@ ARG SERVER_VERSION=0.0.0 ENV SERVER_VERSION=${SERVER_VERSION} LABEL version="${SERVER_VERSION}" \ - description="A cross-platform, blazing fast and asynchronous web server for static files-serving." \ + description="A cross-platform, high-performance and asynchronous web server for static files-serving." \ maintainer="Jose Quintana " COPY --from=build /usr/local/bin/static-web-server / @@ -24,6 +24,6 @@ ENTRYPOINT ["/static-web-server"] LABEL org.opencontainers.image.vendor="Jose Quintana" \ org.opencontainers.image.url="https://github.com/static-web-server/static-web-server" \ org.opencontainers.image.title="Static Web Server" \ - org.opencontainers.image.description="A cross-platform, blazing fast and asynchronous web server for static files-serving." \ + org.opencontainers.image.description="A cross-platform, high-performance and asynchronous web server for static files-serving." \ org.opencontainers.image.version="${SERVER_VERSION}" \ org.opencontainers.image.documentation="https://github.com/static-web-server/static-web-server" diff --git a/docs/content/assets/rust_logo.svg b/docs/content/assets/rust_logo.svg deleted file mode 100644 index 281d2c4..0000000 --- a/docs/content/assets/rust_logo.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/docs/content/assets/style.css b/docs/content/assets/style.css index 8c1b682..23c5a7c 100644 --- a/docs/content/assets/style.css +++ b/docs/content/assets/style.css @@ -7,3 +7,28 @@ .featured-downloads { text-align: center; } + +.md-header__button.md-logo { + padding: 0; +} + +[dir=ltr] .md-header__title { + margin-left: 0.5rem; +} + +@media screen and (max-width: 76.1875em) { + .md-nav--primary .md-nav__title { + text-align: center; + } + .md-nav--primary .md-nav__title img { + margin: 0 auto; + } +} + +body[data-md-color-scheme="slate"] .sws-logo svg path { + fill: #fff; +} + +h1.sws-title { + margin-bottom: 1rem; +} diff --git a/docs/content/assets/sws.svg b/docs/content/assets/sws.svg new file mode 100644 index 0000000..fb4afbb --- /dev/null +++ b/docs/content/assets/sws.svg @@ -0,0 +1 @@ + diff --git a/docs/content/assets/sws_white.svg b/docs/content/assets/sws_white.svg new file mode 100644 index 0000000..304289c --- /dev/null +++ b/docs/content/assets/sws_white.svg @@ -0,0 +1 @@ + diff --git a/docs/content/configuration/command-line-arguments.md b/docs/content/configuration/command-line-arguments.md index 0e063ae..bc9b928 100644 --- a/docs/content/configuration/command-line-arguments.md +++ b/docs/content/configuration/command-line-arguments.md @@ -12,7 +12,7 @@ $ static-web-server -h static-web-server 2.15.0 Jose Quintana -A cross-platform, blazing fast and asynchronous web server for static files-serving. +A cross-platform, high-performance and asynchronous web server for static files-serving. USAGE: static-web-server [OPTIONS] diff --git a/docs/content/index.md b/docs/content/index.md index 2849973..1901a8b 100644 --- a/docs/content/index.md +++ b/docs/content/index.md @@ -1,15 +1,12 @@
-
- + -

Static Web Server

+

Static Web Server

- A blazing fast and asynchronous web server for static files serving ⚡ + A cross-platform, high-performance & asynchronous web server for static files serving

diff --git a/docs/man/static-web-server.1.rst b/docs/man/static-web-server.1.rst index 6d1a70d..730e13d 100644 --- a/docs/man/static-web-server.1.rst +++ b/docs/man/static-web-server.1.rst @@ -4,7 +4,7 @@ static-web-server(1) Name ---- -static-web-server - a blazing fast and asynchronous web server for static files-serving. +static-web-server - About A cross-platform, high-performance and asynchronous web server for static files-serving. SYNOPSIS -------- diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 77f8fb4..f76fc9a 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -1,6 +1,6 @@ # Project information site_name: Static Web Server -site_description: 'A cross-platform, blazing fast and asynchronous web server for static files-serving ⚡' +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 dev_addr: 0.0.0.0:8000 @@ -16,12 +16,12 @@ extra_css: - 'assets/style.css' # Copyright -copyright: Copyright © 2019-2022 Jose Quintana +copyright: Copyright © 2019-2023 Jose Quintana # Theme theme: name: 'material' - logo: assets/rust_logo.svg + logo: assets/sws_white.svg language: en include_sidebar: true features: diff --git a/src/winservice.rs b/src/winservice.rs index cb943c0..652fcdc 100644 --- a/src/winservice.rs +++ b/src/winservice.rs @@ -21,7 +21,8 @@ use crate::{helpers, logger, Context, Result, Server, Settings}; const SERVICE_NAME: &str = "static-web-server"; const SERVICE_TYPE: ServiceType = ServiceType::OWN_PROCESS; const SERVICE_EXE: &str = "static-web-server.exe"; -const SERVICE_DESC: &str = "A blazing fast and asynchronous web server for static files-serving"; +const SERVICE_DESC: &str = + "A cross-platform, high-performance and asynchronous web server for static files-serving"; const SERVICE_DISPLAY_NAME: &str = "Static Web Server"; // Generate the Windows Service boilerplate. -- libgit2 1.7.2