docs: add licence, contributing, and third-party notices

This commit is contained in:
siujamo
2026-05-19 22:02:04 -05:00
parent 2c17c927fc
commit 3e5ca77133
3 changed files with 131 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
# Contributing to OnixByte Homepage
## Development Setup
This project uses [Rspress](https://rspress.rs) as the static site framework and pnpm as the package manager.
```bash
pnpm install
pnpm dev
```
## Project Structure
```
docs/ # Content (Markdown/MDX), organised by locale
en-gb/ # British English content
zh-hans/ # Simplified Chinese content
theme/ # Custom theme overrides
```
## Content Guidelines
- Write content in both English (British) and Simplified Chinese.
- Blog posts and documentation articles are licensed under CC-BY-4.0.
- Code contributions are licensed under MIT.
## Pull Request Process
1. Ensure the site builds cleanly: `pnpm build`
2. Run linting: `pnpm lint`
3. If adding a new page, include both `en-gb` and `zh-hans` versions.
+59
View File
@@ -0,0 +1,59 @@
MIT License
Copyright (c) 2026 OnixByte
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.
---
CC-BY-4.0
Copyright (c) 2026 OnixByte
You are free to:
- Share - copy and redistribute the material in any medium or format for any purpose,
even commercially.
- Adapt — remix, transform, and build upon the material for any purpose, even commercially.
The licensor cannot revoke these freedoms as long as you follow the license terms.
Under the following terms:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate
if changes were made. You may do so in any reasonable manner, but not in any way that suggests
the licensor endorses you or your use.
No additional restrictions — You may not apply legal terms or technological measures that
legally restrict others from doing anything the license permits.
NOTICES
You do not have to comply with the license for elements of the material in the public domain or
where your use is permitted by an applicable exception or limitation.
No warranties are given. The license may not give you all of the permissions necessary for your
intended use. For example, other rights such as publicity, privacy, or moral rights may limit
how you use the material.
---
This project applies a dual-licensing model:
- Code (source code, build scripts, theme, configuration) is licensed under the MIT License (above).
- Content (blog posts, documentation articles, and other written content under docs/) is licensed under the Creative Commons Attribution 4.0 International License (CC-BY-4.0).
To view a copy of CC-BY-4.0, visit https://creativecommons.org/licenses/by/4.0/
+41
View File
@@ -0,0 +1,41 @@
# Third-Party Open Source Notices
This project incorporates the following third-party open source software.
## Direct Dependencies
| Package | License |
|-------------------|---------|
| @rspress/core | MIT |
| react | MIT |
| react-dom | MIT |
| eslint | MIT |
| @eslint/js | MIT |
| typescript-eslint | MIT |
| prettier | MIT |
| globals | MIT |
RSpress itself incorporates additional third-party code. Please refer to
the [RSpress repository](https://github.com/web-infra-dev/rspress) for its full dependency list.
## Licence Texts
### MIT
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.