From 8a3d704ecad7e0ac37958a7920b2a212f1a78293 Mon Sep 17 00:00:00 2001 From: thatmattlove Date: Sat, 1 Jun 2024 14:50:00 -0400 Subject: [PATCH] fix broken license link --- docs/pages/_meta.tsx | 4 ++++ docs/pages/license.mdx | 20 ++++++++++++++++++++ hyperglass/defaults/_strings.py | 2 +- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 docs/pages/license.mdx diff --git a/docs/pages/_meta.tsx b/docs/pages/_meta.tsx index 85d571d..78bc398 100644 --- a/docs/pages/_meta.tsx +++ b/docs/pages/_meta.tsx @@ -27,6 +27,10 @@ export default { title: "Changelog", href: "/changelog", }, + license: { + title: "License", + href: "/license", + }, }, }, demo: { diff --git a/docs/pages/license.mdx b/docs/pages/license.mdx new file mode 100644 index 0000000..7d80c0f --- /dev/null +++ b/docs/pages/license.mdx @@ -0,0 +1,20 @@ +# The Clear BSD License + +export const Year = () => new Date().getFullYear(); + +**Copyright © Matthew Love** + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: + +- Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +- Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + +> NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/hyperglass/defaults/_strings.py b/hyperglass/defaults/_strings.py index b4a299a..e1ae145 100644 --- a/hyperglass/defaults/_strings.py +++ b/hyperglass/defaults/_strings.py @@ -2,7 +2,7 @@ CREDIT = """ Powered by [**hyperglass**](https://hyperglass.dev) version {version}. \ -Source code licensed [_BSD 3-Clause Clear_](https://hyperglass.dev/docs/license/). +Source code licensed [_BSD 3-Clause Clear_](https://hyperglass.dev/license/). """ DEFAULT_TERMS = """