From 2f467bd7ff8f8db0dafa40426166491d7f57f368 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Sat, 25 Apr 2026 12:46:05 -0400 Subject: Initial Commit --- Dockerfile | 9 ++++ LICENSE | 22 +++++++++ manpage.container | 11 +++++ static/.DS_Store | Bin 0 -> 6148 bytes static/css/main.css | 93 ++++++++++++++++++++++++++++++++++++++ static/logos/FirstInitialLogo.svg | 60 ++++++++++++++++++++++++ static/logos/FullNameLogo.svg | 60 ++++++++++++++++++++++++ static/logos/favicon.png | Bin 0 -> 2494 bytes static/logos/favicon.svg | 67 +++++++++++++++++++++++++++ static/logos/favicon16.png | Bin 0 -> 777 bytes static/logos/favicon32.png | Bin 0 -> 1676 bytes static/robots.txt | 6 +++ templates/error.html | 27 +++++++++++ templates/template.html | 31 +++++++++++++ 14 files changed, 386 insertions(+) create mode 100644 Dockerfile create mode 100644 LICENSE create mode 100644 manpage.container create mode 100644 static/.DS_Store create mode 100755 static/css/main.css create mode 100644 static/logos/FirstInitialLogo.svg create mode 100644 static/logos/FullNameLogo.svg create mode 100644 static/logos/favicon.png create mode 100644 static/logos/favicon.svg create mode 100644 static/logos/favicon16.png create mode 100644 static/logos/favicon32.png create mode 100755 static/robots.txt create mode 100755 templates/error.html create mode 100755 templates/template.html diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..8d285c97 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM golang:1.25.5-alpine3.23 +MAINTAINER Jacob McDonnell +EXPOSE 8000 +WORKDIR /app +COPY . . +RUN apk add pandoc bash +RUN ./MdToHtml +RUN go build +cmd ["./web"] diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..56f60a4f --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2026 Jacob McDonnell + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/manpage.container b/manpage.container new file mode 100644 index 00000000..b369c0f3 --- /dev/null +++ b/manpage.container @@ -0,0 +1,11 @@ +[Unit] +Description=manpage website container +After=network.target + +[Container] +Image=localhost/manpage-website +PublishPort=8000:8000 + +[Install] +# Start by default on boot +WantedBy=multi-user.target default.target diff --git a/static/.DS_Store b/static/.DS_Store new file mode 100644 index 00000000..14762ed1 Binary files /dev/null and b/static/.DS_Store differ diff --git a/static/css/main.css b/static/css/main.css new file mode 100755 index 00000000..2a42ca85 --- /dev/null +++ b/static/css/main.css @@ -0,0 +1,93 @@ +/* + * Color scheme + * Background color: #eaefef + * Code background: #d4d9d9 + * Main color: #00558e + * Secondary color: #0b3075 + */ +:root { + --color-1: #eaefef; + --color-2: #d4d9d9; + --color-3: #0c7a9c; + --color-3: #00558e; + --color-4: #0b3075; +} + +body{ + background-color:var(--color-1); + color:var(--color-3); + font-family:Arial; + padding-bottom: 2em; +} + +a{ + color: var(--color-3); +} + +ul.topBar{ + background-color:var(--color-3); + text-transform:uppercase; + margin:0; + padding:0; + overflow:hidden; + list-style-type:none; +} + +li.topLink a{ + color:var(--color-1); + float:left; + display:block; + text-align:center; + padding:0.875rem 1rem; + text-decoration:none; +} + +li.topLink a:hover{ + background-color:var(--color-4); +} + +.search{ + color:var(--color-3); + background-color:var(--color-1); + border-color:var(--color-3); + padding:0.75rem 1.25rem 0.75rem; + width:90%; + border-radius:0.3125rem; + margin-left:auto; + margin-right:auto; + margin-bottom:15em; + font-family:IBM Plex Mono; +} + +.main{ + margin:auto; + width:60%; +} + +.icon{ + font-size:12.5rem; + margin-top:0.625rem; + margin-bottom:0.625rem; +} + +footer.LicenseFooter{ + font-size:1em; + padding-top:2em; + text-align:center; +} + +@media only screen and (orientation: portrait){ + .main{ + margin:auto; + width:90%; + } +} + +div.article a{ + text-decoration:none; + display:block; +} + +img { + width:75%; +} diff --git a/static/logos/FirstInitialLogo.svg b/static/logos/FirstInitialLogo.svg new file mode 100644 index 00000000..d2d13f9d --- /dev/null +++ b/static/logos/FirstInitialLogo.svg @@ -0,0 +1,60 @@ + + + + + + + + + + + + diff --git a/static/logos/FullNameLogo.svg b/static/logos/FullNameLogo.svg new file mode 100644 index 00000000..4ee480b9 --- /dev/null +++ b/static/logos/FullNameLogo.svg @@ -0,0 +1,60 @@ + + + + + + + + + + + + diff --git a/static/logos/favicon.png b/static/logos/favicon.png new file mode 100644 index 00000000..e403c28d Binary files /dev/null and b/static/logos/favicon.png differ diff --git a/static/logos/favicon.svg b/static/logos/favicon.svg new file mode 100644 index 00000000..dfe4bb99 --- /dev/null +++ b/static/logos/favicon.svg @@ -0,0 +1,67 @@ + + + + + + + + + + + + + diff --git a/static/logos/favicon16.png b/static/logos/favicon16.png new file mode 100644 index 00000000..e830c368 Binary files /dev/null and b/static/logos/favicon16.png differ diff --git a/static/logos/favicon32.png b/static/logos/favicon32.png new file mode 100644 index 00000000..eed6d113 Binary files /dev/null and b/static/logos/favicon32.png differ diff --git a/static/robots.txt b/static/robots.txt new file mode 100755 index 00000000..14067d6e --- /dev/null +++ b/static/robots.txt @@ -0,0 +1,6 @@ +User-agent: * +Disallow: /css +Disallow: /images +Disallow: /404.html +Disallow: /testPage + diff --git a/templates/error.html b/templates/error.html new file mode 100755 index 00000000..444e1ae1 --- /dev/null +++ b/templates/error.html @@ -0,0 +1,27 @@ + + + + + + {{.Code}} {{.Message}} + + + + + + + +
+
+

{{.Code}} {{.Message}}

+
+
+ + + diff --git a/templates/template.html b/templates/template.html new file mode 100755 index 00000000..2103cfac --- /dev/null +++ b/templates/template.html @@ -0,0 +1,31 @@ + + + + + + + + + + Jacob McDonnell + + + + + + + +
+ {{.}} +
+ + + -- cgit v1.2.3