From ff611a845fc50ef9202c060f16956b7e92ff07b6 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Thu, 22 Apr 2021 22:58:27 -0400 Subject: [PATCH] general: License code and content appropriately I've been meaning to do this for a long time, but kept waffling over the choice of license, as well as how to display it. I wanted something that would be easily found (i.e. on each page), but also that didn't detract from the man page aesthetic ;) I settled on a small footer just stating the copyright and linking to a license file. A quick survey of my girlfriend showed that simply putting "Content CC BY 4.0, Code MIT" at the bottom didn't make sense, and I didn't want to wrap to multiple lines on mobile... so here we have it. Plus, if I ever get around to creating an SSH-kiosk, it'll be good to have it as a standalone page! --- LICENSE | 21 +++++++++++++++++++++ Makefile | 5 +++++ license.7 | 26 ++++++++++++++++++++++++++ style.css | 6 ++++++ 4 files changed, 58 insertions(+) create mode 100644 LICENSE create mode 100644 license.7 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c2b1909 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019-2021, Alex Karle + +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/Makefile b/Makefile index a10005b..8a1a587 100644 --- a/Makefile +++ b/Makefile @@ -33,4 +33,9 @@ jam-tuesday/greatest-hits: $(SETS) jam-tuesday/stats.sh | sed -e 's##&# ' \ -e 's#^Miscellaneous Information Manual<\/td>/d' \ + -e 's## \ +

\ + © 2019-2021 Alex Karle | License \ +

\ +&#' \ > $@ diff --git a/license.7 b/license.7 new file mode 100644 index 0000000..5fd839b --- /dev/null +++ b/license.7 @@ -0,0 +1,26 @@ +.Dd $Mdocdate$ +.Dt LICENSE 7 +.Os +.Sh NAME +.Nm license +.Nd copyright info for this site +.Sh COPYRIGHT +Except where otherwise noted, +all content on this site is licensed under a +Creative Commons Attribution 4.0 license (CC BY 4.0). +.Pp +Any code snippets, including the code used to build this site, +are licensed under a MIT license. +.Sh SEE ALSO +.Bl -bullet -compact +.It +.Lk https://creativecommons.org/licenses/by/4.0/ CC BY 4.0 +.It +.Lk /LICENSE MIT license +.It +.Lk https://alexkarle.com/git/alexkarle.com Source code for the site +.It +.Xr intro 7 +.It +.Xr blog 7 +.El diff --git a/style.css b/style.css index 261c566..232f7ad 100644 --- a/style.css +++ b/style.css @@ -14,6 +14,12 @@ a:visited { color: #033a4a; } code { font-size: 1em; } h1 { font-size: 1.1em; } h2 { font-size: 1em; } +.foot-license { + margin-top: 16px; + font-size: .7em; + position: static; + bottom: 0; +} /* override bold/italic colors within permalinks */ a.permalink { text-decoration: none } -- libgit2 1.1.1