Skip to content

Commit 464fb53

Browse files
Include license in the docs (#1159)
* Include license in the docs Document branding conventions in CONTRIBUTING.md * Fix path and whitespace issues
1 parent 78cbe34 commit 464fb53

5 files changed

Lines changed: 26 additions & 1 deletion

File tree

CONTRIBUTING.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,20 @@ This project supports all versions of Python through until end of life. The deve
9696

9797
To ensure the `--quiet` flag is always effective, avoid using simple `print` statements. Instead, use the purpose-built `usethis._console.plain_print` function.
9898

99+
### Branding
100+
101+
The usethis name should not be capitalized (i.e. not Usethis or UseThis), even at the
102+
beginning of a sentence. It should only be styled in monospace as `usethis` when referring to the command itself.
103+
104+
These colours are used in branding materials:
105+
106+
- Green: #00c000
107+
- Orange: #f26622
108+
- Grey: #999999
109+
- Darker Grey: #424242
110+
111+
Along with the fonts [EB Garamond](https://fonts.google.com/specimen/EB+Garamond) and [Cairo](https://fonts.google.com/specimen/Cairo).
112+
99113
## Guides
100114

101115
### Adding a new badge
@@ -108,3 +122,7 @@ To add a new `usethis badge` interface, follow these steps:
108122
- Declare a recommended badge placement in the `get_badge_order` function in <src\usethis\_core\badge.py>. This helps ensure the badges are arranged in an opinionated way relative to existing badges.
109123

110124
Finally, run the command on this project, to make sure the badge gets inserted correctly with valid Markdown syntax. Check it renders successfully and that any hyperlink works as expected.
125+
126+
## License
127+
128+
By contributing, you agree that your contributions will be licensed under the MIT license. See the [LICENSE](https://github.com/usethis-python/usethis-python/blob/main/LICENSE) file.

docs/about-license.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# License
2+
3+
usethis is licensed under the MIT license ([LICENSE](https://github.com/usethis-python/usethis-python/blob/main/LICENSE) or <https://opensource.org/licenses/MIT>)
4+
5+
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in usethis by you, as defined in the Apache License, Version 2.0, (<https://www.apache.org/licenses/LICENSE-2.0>), shall be licensed under the MIT license, without any additional terms or conditions.

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ nav:
1111
- Reference: cli/reference.md
1212
- Similar Projects: similar-projects.md
1313
- FAQ: faq.md
14+
- License: about-license.md
1415

1516
theme:
1617
name: material

tests/docs/test_readme.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def test_assemble_readme_from_docs(usethis_dev_dir: Path):
3333
)
3434
)
3535
parts.append(_get_doc_file(usethis_dev_dir / "docs" / "similar-projects.md"))
36+
parts.append(_get_doc_file(usethis_dev_dir / "docs" / "about-license.md"))
3637

3738
content = (
3839
(usethis_dev_dir / "README.md")

tests/usethis/_tool/impl/test_ruff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def test_pyproject_toml_exists(self, tmp_path: Path):
375375
@pytest.mark.usefixtures("_vary_network_conn")
376376
def test_latest_version(self, tmp_path: Path):
377377
if os.getenv("CI"):
378-
pytest.skip("Avoid flaky pipelines by testing version bumps manually")
378+
pytest.skip("Avoid flaky pipelines by testing version bumps manually")
379379

380380
with change_cwd(tmp_path), files_manager():
381381
# Arrange

0 commit comments

Comments
 (0)