From 353ab96720c36b66ca5e3634477901d86ab6fd9f Mon Sep 17 00:00:00 2001 From: Tarek Lokal Date: Sat, 11 Jul 2026 12:42:42 +0200 Subject: [PATCH 1/2] Note choosealicence.com typo domain (#712) Clarify official choosealicense.com hostname on about page. Co-authored-by: Cursor --- about.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/about.md b/about.md index 169caff36..885aaeb00 100644 --- a/about.md +++ b/about.md @@ -27,6 +27,12 @@ See our [appendix](/appendix/) for a table of every license cataloged in the [ch Choosealicense.com isn't just about open source; the site itself is open source as well. See something you think could be done better? Feel free to [fork the project](https://github.com/github/choosealicense.com) on GitHub and submit a pull request. We welcome your improvements. + +## Official domain + +The only official GitHub site for this project is **[choosealicense.com](https://choosealicense.com/)**. The hostname **choosealicence.com** (British spelling) is a common typo and is **not** operated by GitHub for this project; do not enter credentials or treat it as official. TLS or redirect fixes for typo domains must be handled outside this repository. + + ## Disclaimer We are not lawyers. Well, most of us anyway. It is not the goal of this site to provide legal advice. The goal of this site is to provide a starting point to help you make an informed choice by providing information on popular open source licenses in a simplified fashion. If you have any questions regarding the best license for your code or any other legal issues relating to it, it's your responsibility to do further research or consult with a professional. From ab8f7be7e40c91f3ba233322efc5f5f7fe032a5f Mon Sep 17 00:00:00 2001 From: Tarek Lokal Date: Sat, 11 Jul 2026 12:43:45 +0200 Subject: [PATCH 2/2] feat: curl-friendly plain-text license URLs (#1176) Generate licenses/*.txt from _licenses catalog bodies via rake licenses:raw. Spec keeps files in sync; sidebar documents curl usage per license page. Co-authored-by: Cursor --- Rakefile | 4 +- _includes/sidebar.html | 6 + lib/license_plain_text.rb | 21 + lib/tasks/licenses.rake | 20 + licenses/0bsd.txt | 14 + licenses/afl-3.0.txt | 172 ++++++++ licenses/agpl-3.0.txt | 661 ++++++++++++++++++++++++++++++ licenses/apache-2.0.txt | 201 +++++++++ licenses/artistic-2.0.txt | 201 +++++++++ licenses/blueoak-1.0.0.txt | 55 +++ licenses/bsd-2-clause-patent.txt | 47 +++ licenses/bsd-2-clause.txt | 24 ++ licenses/bsd-3-clause-clear.txt | 32 ++ licenses/bsd-3-clause.txt | 28 ++ licenses/bsd-4-clause.txt | 33 ++ licenses/bsl-1.0.txt | 23 ++ licenses/cc-by-4.0.txt | 395 ++++++++++++++++++ licenses/cc-by-sa-4.0.txt | 427 ++++++++++++++++++++ licenses/cc0-1.0.txt | 121 ++++++ licenses/cecill-2.1.txt | 547 +++++++++++++++++++++++++ licenses/cern-ohl-p-2.0.txt | 184 +++++++++ licenses/cern-ohl-s-2.0.txt | 265 ++++++++++++ licenses/cern-ohl-w-2.0.txt | 287 +++++++++++++ licenses/ecl-2.0.txt | 203 ++++++++++ licenses/epl-1.0.txt | 204 ++++++++++ licenses/epl-2.0.txt | 277 +++++++++++++ licenses/eupl-1.1.txt | 311 ++++++++++++++ licenses/eupl-1.2.txt | 291 +++++++++++++ licenses/gfdl-1.3.txt | 450 +++++++++++++++++++++ licenses/gpl-2.0.txt | 339 ++++++++++++++++ licenses/gpl-3.0.txt | 674 +++++++++++++++++++++++++++++++ licenses/isc.txt | 15 + licenses/lgpl-2.1.txt | 504 +++++++++++++++++++++++ licenses/lgpl-3.0.txt | 165 ++++++++ licenses/lppl-1.3c.txt | 309 ++++++++++++++ licenses/mit-0.txt | 18 + licenses/mit.txt | 21 + licenses/mpl-2.0.txt | 5 + licenses/ms-pl.txt | 52 +++ licenses/ms-rl.txt | 64 +++ licenses/mulanpsl-2.0.txt | 192 +++++++++ licenses/ncsa.txt | 34 ++ licenses/odbl-1.0.txt | 31 ++ licenses/ofl-1.1.txt | 7 + licenses/osl-3.0.txt | 172 ++++++++ licenses/postgresql.txt | 19 + licenses/unlicense.txt | 24 ++ licenses/upl-1.0.txt | 35 ++ licenses/vim.txt | 80 ++++ licenses/wtfpl.txt | 13 + licenses/zlib.txt | 19 + spec/license_raw_spec.rb | 26 ++ 52 files changed, 8321 insertions(+), 1 deletion(-) create mode 100644 lib/license_plain_text.rb create mode 100644 lib/tasks/licenses.rake create mode 100644 licenses/0bsd.txt create mode 100644 licenses/afl-3.0.txt create mode 100644 licenses/agpl-3.0.txt create mode 100644 licenses/apache-2.0.txt create mode 100644 licenses/artistic-2.0.txt create mode 100644 licenses/blueoak-1.0.0.txt create mode 100644 licenses/bsd-2-clause-patent.txt create mode 100644 licenses/bsd-2-clause.txt create mode 100644 licenses/bsd-3-clause-clear.txt create mode 100644 licenses/bsd-3-clause.txt create mode 100644 licenses/bsd-4-clause.txt create mode 100644 licenses/bsl-1.0.txt create mode 100644 licenses/cc-by-4.0.txt create mode 100644 licenses/cc-by-sa-4.0.txt create mode 100644 licenses/cc0-1.0.txt create mode 100644 licenses/cecill-2.1.txt create mode 100644 licenses/cern-ohl-p-2.0.txt create mode 100644 licenses/cern-ohl-s-2.0.txt create mode 100644 licenses/cern-ohl-w-2.0.txt create mode 100644 licenses/ecl-2.0.txt create mode 100644 licenses/epl-1.0.txt create mode 100644 licenses/epl-2.0.txt create mode 100644 licenses/eupl-1.1.txt create mode 100644 licenses/eupl-1.2.txt create mode 100644 licenses/gfdl-1.3.txt create mode 100644 licenses/gpl-2.0.txt create mode 100644 licenses/gpl-3.0.txt create mode 100644 licenses/isc.txt create mode 100644 licenses/lgpl-2.1.txt create mode 100644 licenses/lgpl-3.0.txt create mode 100644 licenses/lppl-1.3c.txt create mode 100644 licenses/mit-0.txt create mode 100644 licenses/mit.txt create mode 100644 licenses/mpl-2.0.txt create mode 100644 licenses/ms-pl.txt create mode 100644 licenses/ms-rl.txt create mode 100644 licenses/mulanpsl-2.0.txt create mode 100644 licenses/ncsa.txt create mode 100644 licenses/odbl-1.0.txt create mode 100644 licenses/ofl-1.1.txt create mode 100644 licenses/osl-3.0.txt create mode 100644 licenses/postgresql.txt create mode 100644 licenses/unlicense.txt create mode 100644 licenses/upl-1.0.txt create mode 100644 licenses/vim.txt create mode 100644 licenses/wtfpl.txt create mode 100644 licenses/zlib.txt create mode 100644 spec/license_raw_spec.rb diff --git a/Rakefile b/Rakefile index 51a08c704..be02a267c 100644 --- a/Rakefile +++ b/Rakefile @@ -3,13 +3,15 @@ require 'html-proofer' require 'rspec/core/rake_task' +Dir.glob('lib/tasks/*.rake').each { |rake| load rake } + desc 'Run specs' RSpec::Core::RakeTask.new do |t| t.pattern = 'spec/**/*_spec.rb' t.rspec_opts = ['--order', 'rand', '--color'] end -task :test do +task test: 'licenses:raw' do sh 'bundle exec jekyll build' Rake::Task['spec'].invoke HTMLProofer.check_directory('./_site', diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 414c19106..de58e3be2 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -1,6 +1,12 @@