from Codeberg
Just some additions to the recently added article from #173 (https://docs.codeberg.org/getting-started/licensing/)
Mention private repo / note-taking rule:
A user on Mastodon asked about private repos? We should mention that private repos are possible (re-link to the FAQ which explains this, but people only looking at the licensing guide will overlook the clarification in the FAQ and the section in the Terms of Use)
How to apply:
People might wonder how to apply a license to your code. AFAICT, it's usually considered *okay* to just put a file next to your code, but to properly license code and avoid any legal uncertainty, it should be explicitly stated that the code is under this license, right? Ideally, every file should include a license header.
It might be good to give good and precise instructions on how to actually change the license, especially since the full license texts are sometimes hard to copy into a easily readable file (so maybe tell people what's necessary to reference a file that lives outside etc).
A place where someone was hit by the "adding a file is enough" is in Codeberg/Community#407, and I agree that the Gitea UI kinda suggests that using the license dialog is everything you need.
Reasoning:
Some people might wonder *why* a repo needs a license. Some hints are kinda hidden, but they might be made more prominently.
> Not specifying a license for your code does not automatically mean you've made it available without restrictions; you are still its copyright holder and must explicitly make the code free by choosing a free license.
> Please do not use custom licenses, they are usually a bad idea and might result in legal uncertainty.
---
@michielappelman are you interested in fixing this up once more? No obligation of course, your first version is already very nice, these are just some improvements I can think of by now.