Skip to content

Commit ba15434

Browse files
gwynne0xTim
andauthored
Add CC BY-NC-SA 4.0 license (vapor#922)
Co-authored-by: Tim <[email protected]>
1 parent 24bf2d3 commit ba15434

File tree

7 files changed

+512
-14
lines changed

7 files changed

+512
-14
lines changed

.github/dependabot.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
groups:
8+
dependencies:
9+
patterns:
10+
- "*"
11+
- package-ecosystem: "pip"
12+
directory: "/"
13+
schedule:
14+
interval: "daily"
15+
groups:
16+
dependencies:
17+
patterns:
18+
- "*"

.github/workflows/projectboard.yml

-11
This file was deleted.

LICENSE

+437
Large diffs are not rendered by default.

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,9 @@ You can check it out by running `mkdocs serve` in the terminal. Once you are sat
7171

7272
Finally, you should add the new language to the [issue template](https://github.com/vapor/docs/blob/main/.github/translation_needed.description.leaf) to ensure that any future changes are applied to the new translation and to the [search index script](https://github.com/vapor/docs/blob/main/fixSearchIndex.swift) to ensure search works correctly.
7373

74+
## Licensing
7475

75-
76+
<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/">
77+
Except where otherwise noted, <a property="dct:title" rel="cc:attributionURL" href="https://github.com/vapor/docs">Vapor Documentation</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://vapor.codes">Vapor</a> is licensed under <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/" rel="license noopener noreferrer">CC BY-NC-SA 4.0 <img style="height: 16px;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg"> <img style="height: 16px" src="https://mirrors.creativecommons.org/presskit/icons/by.svg"> <img style="height: 16px" src="https://mirrors.creativecommons.org/presskit/icons/nc.svg"> <img style="height: 16px;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg"></a>
78+
</p>
79+

fixSearchIndex.swift

+24
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
#!/usr/bin/swift
22

3+
/*
4+
SPDX-License-Identifier: MIT
5+
6+
Copyright (c) 2023 Vapor
7+
8+
Permission is hereby granted, free of charge, to any person obtaining a copy
9+
of this software and associated documentation files (the "Software"), to deal
10+
in the Software without restriction, including without limitation the rights
11+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
copies of the Software, and to permit persons to whom the Software is
13+
furnished to do so, subject to the following conditions:
14+
15+
The above copyright notice and this permission notice shall be included in all
16+
copies or substantial portions of the Software.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
SOFTWARE.
25+
*/
26+
327
import Foundation
428

529
struct SearchIndex: Codable {

mkdocs.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repo_url: http://github.com/vapor/vapor
1010
edit_uri: https://github.com/vapor/documentation/edit/main/docs/
1111

1212
# Copyright
13-
copyright: "Copyright &copy; Vapor Community"
13+
copyright: "Vapor Documentation &copy; 2023 by Vapor is licensed under CC BY-NC-SA 4.0"
1414

1515
# Configuration
1616
theme:
@@ -60,6 +60,8 @@ extra:
6060
link: https://discord.gg/vapor
6161
- icon: fontawesome/brands/github
6262
link: https://github.com/vapor
63+
- icon: fontawesome/brands/mastodon
64+
link: https://hachyderm.io/@codevapor
6365

6466
extra_css:
6567
- stylesheets/syntax.css

setUpRedirects.swift

+25-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
#!/usr/bin/swift
22

3+
/*
4+
SPDX-License-Identifier: MIT
5+
6+
Copyright (c) 2023 Vapor
7+
8+
Permission is hereby granted, free of charge, to any person obtaining a copy
9+
of this software and associated documentation files (the "Software"), to deal
10+
in the Software without restriction, including without limitation the rights
11+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
copies of the Software, and to permit persons to whom the Software is
13+
furnished to do so, subject to the following conditions:
14+
15+
The above copyright notice and this permission notice shall be included in all
16+
copies or substantial portions of the Software.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
SOFTWARE.
25+
*/
26+
327
import Foundation
428

529
let basicDirectories = [
@@ -61,4 +85,4 @@ func createRedirect(directory: String, newDirectory: String) throws {
6185
let fileURL = URL(fileURLWithPath: "site/\(directory)/index.html")
6286
try FileManager.default.createDirectory(atPath: "site/\(directory)", withIntermediateDirectories: true, attributes: nil)
6387
try redirectString.write(to: fileURL, atomically: true, encoding: .utf8)
64-
}
88+
}

0 commit comments

Comments
 (0)