Skip to content

Commit 637860d

Browse files
authored
extract the license informaiton from the community overview into its own page (#342)
motivation: highlight license as part of the project governance changes: * create a new page for license information * extract information from community overview page into the new license page * create navigation entry under governance to the new license page
1 parent 472c8ff commit 637860d

File tree

3 files changed

+40
-37
lines changed

3 files changed

+40
-37
lines changed

_data/navigation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@
264264
pages:
265265
- title: Code of Conduct
266266
url: /code-of-conduct/
267+
- title: License
268+
url: /legal/license.html
267269
- title: Security
268270
url: /support/security.html
269271
sections:

community/index.md

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The current Core Team members are:
5555
{% for person in people %}* {{ person.name }}
5656
{% endfor %}
5757

58-
#### Language Workgroup
58+
#### Language Workgroup
5959

6060
[Contact via Forums](https://forums.swift.org/new-message?groupname=language-workgroup)
6161

@@ -82,42 +82,6 @@ The list of current code owners can be found in the file `CODE_OWNERS.txt` in th
8282
There may be nothing more important to the success of Swift than strong, engaged code owners. We all owe them respect, gratitude, and whatever help we can offer.
8383

8484

85-
## License
86-
87-
The [Swift license](/LICENSE.txt) is based on the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0.html) with a [Runtime Library Exception](#runtime-library-exception) that removes the attribution requirement when using Swift to build and distribute your own binaries. The Apache 2.0 license was chosen because it allows broad use of Swift, and is already well-understood by many potential contributors.
88-
89-
Copyright is held by the authors of the contributions, or the company or organization to which the individual belongs. A list of copyright holders is maintained in the [CONTRIBUTORS.txt](/CONTRIBUTORS.txt) file on Swift.org and at the root of the repository.
90-
91-
92-
### Runtime Library Exception
93-
94-
The Runtime Library Exception makes it clear that end users of the Swift compiler don’t have to attribute their use of Swift in their finished binary application, game, or service. End-users of the Swift language should feel unrestricted to create great software. The full text of this exception follows:
95-
96-
~~~~
97-
As an exception, if you use this Software to compile your source code and
98-
portions of this Software are embedded into the binary product as a result,
99-
you may redistribute such product without providing attribution as would
100-
otherwise be required by Sections 4(a), 4(b) and 4(d) of the License.
101-
~~~~
102-
103-
This exception can also be found at the bottom of the [LICENSE.txt](/LICENSE.txt) file.
104-
105-
106-
### Copyright and License in Source Code
107-
108-
All source files hosted on Swift.org must contain a comment block at the top of the file declaring the license and copyright that applies. This text may be part of a larger header, for instance as defined in the [Contributing Code][contributing_code] section. Regardless of the header format, the wording for the license and copyright portion must be copied as follows, with the appropriate years applied:
109-
110-
~~~~
111-
// This source file is part of the Swift.org open source project
112-
//
113-
// Copyright (c) {{site.time | date: "%Y"}} Apple Inc. and the Swift project authors
114-
// Licensed under Apache License v2.0 with Runtime Library Exception
115-
//
116-
// See https://swift.org/LICENSE.txt for license information
117-
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
118-
~~~~
119-
120-
12185
Each contributor is responsible for adding his or her name to the `CONTRIBUTORS.txt` file at the project's root and maintaining the contact information. If you are contributing under the umbrella of your company, please add your company’s information, and do not also list yourself as an additional copyright holder.
12286

12387

legal/license.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
layout: page
3+
title: License
4+
---
5+
6+
The [Swift license](/LICENSE.txt) is based on the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0.html) with a [Runtime Library Exception](#runtime-library-exception) that removes the attribution requirement when using Swift to build and distribute your own binaries. The Apache 2.0 license was chosen because it allows broad use of Swift, and is already well-understood by many potential contributors.
7+
8+
Copyright is held by the authors of the contributions, or the company or organization to which the individual belongs. A list of copyright holders is maintained in the [CONTRIBUTORS.txt](/CONTRIBUTORS.txt) file on Swift.org and at the root of the repository.
9+
10+
11+
### Runtime Library Exception
12+
13+
The Runtime Library Exception makes it clear that end users of the Swift compiler don’t have to attribute their use of Swift in their finished binary application, game, or service. End-users of the Swift language should feel unrestricted to create great software. The full text of this exception follows:
14+
15+
~~~~
16+
As an exception, if you use this Software to compile your source code and
17+
portions of this Software are embedded into the binary product as a result,
18+
you may redistribute such product without providing attribution as would
19+
otherwise be required by Sections 4(a), 4(b) and 4(d) of the License.
20+
~~~~
21+
22+
This exception can also be found at the bottom of the [LICENSE.txt](/LICENSE.txt) file.
23+
24+
25+
### Copyright and License in Source Code
26+
27+
All source files hosted on Swift.org must contain a comment block at the top of the file declaring the license and copyright that applies. This text may be part of a larger header, for instance as defined in the [Contributing Code][contributing_code] section. Regardless of the header format, the wording for the license and copyright portion must be copied as follows, with the appropriate years applied:
28+
29+
~~~~
30+
// This source file is part of the Swift.org open source project
31+
//
32+
// Copyright (c) {{site.time | date: "%Y"}} Apple Inc. and the Swift project authors
33+
// Licensed under Apache License v2.0 with Runtime Library Exception
34+
//
35+
// See https://swift.org/LICENSE.txt for license information
36+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
37+
~~~~

0 commit comments

Comments
 (0)