Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
490 commits
Select commit Hold shift + click to select a range
e0819a3
Merge pull request #934 from Tyler887/patch-6
mlinksva Jan 22, 2022
8570357
Merge branch 'gh-pages' into gh-pages
mlinksva Jan 22, 2022
d657524
404 screen
Jan 22, 2022
de3c315
Merge pull request #935 from Tyler887/patch-6
mlinksva Jan 24, 2022
e56839b
Replace px font units with rem, resolves #904
aisgbnok Feb 23, 2022
958b684
Merge pull request #943 from aisgbnok/904-realtive-font-units
mlinksva Feb 23, 2022
9352045
Merge branch 'gh-pages' into patch-1
mlinksva Mar 15, 2022
1a37894
.NET Core > .NET
Mar 16, 2022
d91f364
Update _licenses/mit.txt
Mar 16, 2022
c4d4c3a
Merge pull request #945 from Tyler887/patch-7
mlinksva Mar 16, 2022
639dac9
Fix EUPL-1.1 guidance link
mlinksva Mar 16, 2022
835f8c1
Create gfdl-1.3.txt
Jan 1, 2022
d44930a
Update gfdl-1.3.txt
Jan 1, 2022
3fca253
Update _licenses/gfdl-1.3.txt
Jan 2, 2022
35b074b
Update gfdl-1.3.txt
Jan 2, 2022
9c8af70
Update gfdl-1.3.txt
Jan 3, 2022
b628ba0
Update gfdl-1.3.txt
Jan 3, 2022
326f9e7
Update gfdl-1.3.txt
Jan 5, 2022
d376378
Update gfdl-1.3.txt
Jan 5, 2022
bc5f32e
Update sidebar.html
Mar 22, 2022
5881f34
mulan: fix wrapping and trim space
liyishuai Apr 14, 2022
242b063
update cncf link
mlinksva Apr 14, 2022
48c1e44
Merge pull request #981 from liyishuai/mulan
mlinksva Apr 14, 2022
1a2ed66
chore: remove git.io
renbaoshuo Apr 27, 2022
8359cdc
avoid master->gh-pages redirect
mlinksva Apr 27, 2022
fb5377a
Merge pull request #984 from renbaoshuo/patch-1
mlinksva Apr 27, 2022
9732e1e
Merge branch 'gh-pages' into patch-5
May 11, 2022
8b99ed7
Merge branch 'gh-pages' into gh-pages
mlinksva Jun 10, 2022
0d7c2d1
Update projects using CERN-OHL-S and CERN-OHL-P
julianstirling Jun 10, 2022
9ff30ca
update unlicense examples
mlinksva Jun 10, 2022
de42758
Fix react-use example
mlinksva Jun 10, 2022
0724d84
Merge branch 'gh-pages' into add-CERN-OHL-V2
mlinksva Jun 10, 2022
683f3e9
Update cern-ohl-p-2.0.txt
j-sp Jun 10, 2022
072e77d
Update cern-ohl-s-2.0.txt
j-sp Jun 10, 2022
788c281
Update cern-ohl-s-2.0.txt
j-sp Jun 10, 2022
f1e3b5d
Update cern-ohl-w-2.0.txt
j-sp Jun 10, 2022
a38f572
Shorten note field contents for CERN OHL v2 licenses
j-sp Jun 12, 2022
5065c96
update CERN-OHL-S examples
julianstirling Jun 12, 2022
6911db7
CERN-OHL: Fix YAML errors in note, tweak language (thanks @waldyrious)
julianstirling Jun 12, 2022
86d1a77
CERN-OHL-S Fix another YAML error
julianstirling Jun 12, 2022
44b121a
Tweak using for CERN-OHL-P
julianstirling Jun 12, 2022
1523762
don't test help.github.com links
mlinksva Jun 12, 2022
1891136
Merge branch 'gh-pages' into add-CERN-OHL-V2
mlinksva Jun 12, 2022
65842b6
make the text visible on yellow :target background
ZacharyCrespin Jun 17, 2022
2cacbec
Merge pull request #1005 from ZacharyCrespin/patch-1
mlinksva Jun 27, 2022
c6f07cb
Update Apache-2.0 "how"
mlinksva Jun 28, 2022
cba6a99
spel!
mlinksva Jun 28, 2022
7695c83
Merge pull request #1008 from github/asf-faq
mlinksva Jun 30, 2022
2a449d5
same-license--library instead of --file
mlinksva Jul 7, 2022
d4dbe72
-w description edit proposed by @j-sp in https://github.com/github/ch…
mlinksva Jul 7, 2022
51ddb5d
-S description edit proposed by @j-sp in https://github.com/github/ch…
mlinksva Jul 7, 2022
55912b6
P description
mlinksva Jul 7, 2022
78c2ee9
tighten up non-software text
mlinksva Jul 8, 2022
66d3a26
Merge branch 'gh-pages' into add-CERN-OHL-V2
mlinksva Jul 8, 2022
4ea525e
update cncf link again
mlinksva Jul 8, 2022
9e46d36
rm extra space
mlinksva Jul 9, 2022
66a1006
Merge pull request #1004 from julianstirling/add-CERN-OHL-V2
mlinksva Jul 9, 2022
43f355b
fix note field for CERN OHL licenses (unintentionally a dictionary va…
mlinksva Jul 9, 2022
537ffa4
Fixes FPGA acronym.
paulyy-y Jul 17, 2022
695f9ca
Merge pull request #1013 from paulyy-y/patch-1
mlinksva Jul 17, 2022
cf8f0d7
Fix typo in non-software licenses page
c0nspiracy Jul 19, 2022
62dfebe
Merge pull request #1014 from c0nspiracy/patch-1
mlinksva Jul 19, 2022
3084254
add network-use-disclose to CeCILL v2
Aeris1One Aug 19, 2022
ce3a168
update ruby version to match pages-gem
mlinksva Aug 19, 2022
cdafae7
Merge branch 'gh-pages' into patch-1
mlinksva Aug 19, 2022
264d958
Merge pull request #1018 from Aeris1One/patch-1
mlinksva Aug 22, 2022
d157535
Add Grafana as AGPL-3.0 licensor
StEvUgnIn Aug 25, 2022
088a44d
2 more examples
mlinksva Aug 25, 2022
cce738f
remove agpl-3.0 from legacy list with no examples since we're adding 3
mlinksva Aug 25, 2022
9d7ed39
Merge pull request #1025 from StEvUgnIn/patch-1
mlinksva Aug 25, 2022
8df38b1
Merge branch 'gh-pages' into patch-5
mlinksva Sep 2, 2022
656ab18
more or-later or -only handling
mlinksva Sep 2, 2022
2f02459
instructions suggest after title page not title part of each file
mlinksva Sep 2, 2022
060b967
spacing
mlinksva Sep 2, 2022
be0ffed
Ignore testing of opensource.org which fails only in CI
mlinksva Sep 5, 2022
537d2a7
Use examples
mlinksva Sep 14, 2022
4dfc9d9
Qt docs example
mlinksva Sep 26, 2022
ebef287
accommodate code.qt.io in tests
mlinksva Sep 26, 2022
8182e4a
Merge branch 'gh-pages' into patch-5
mlinksva Sep 26, 2022
2b3259f
Merge pull request #918 from Tyler887/patch-5
mlinksva Sep 26, 2022
b62ee46
Add "Modified" nickname to BSD-3-Clause
mlinksva Dec 27, 2022
0ccd6c5
Merge pull request #1066 from github/bsd-3-nickname
mlinksva Dec 28, 2022
eb6ec2f
Add stickiness to the table header
joassanon Mar 17, 2023
38e8c11
Just an extra space in orer to trigger gh pages build
joassanon Mar 21, 2023
41933b9
Ok.
joassanon Mar 22, 2023
d5b399f
Fix inconsistent quotes in UPL-1.0
tomjmech Mar 29, 2023
d68908d
update examples
mlinksva Mar 29, 2023
6364c98
Merge pull request #1096 from tomjmech/patch-1
mlinksva Mar 29, 2023
dca6723
Update appendix.md
mlinksva Apr 8, 2023
50ede2f
Merge branch 'gh-pages' into patch-1
mlinksva Apr 8, 2023
b62b6e2
make whole row sticky
mlinksva Apr 8, 2023
8a2c979
Merge pull request #1089 from joassanon/patch-1
mlinksva Apr 8, 2023
bcf125b
Add Joomla to community.md
Hackwar May 31, 2023
89561ee
Update community.md
Hackwar May 31, 2023
09a3480
update license link for zonedb
mlinksva May 31, 2023
ab8bbd2
Merge pull request #1115 from Hackwar/patch-1
mlinksva May 31, 2023
d44c3f1
Update year range
mentiferous Jun 20, 2023
d155b00
Merge branch 'gh-pages' into patch-1
mlinksva Jul 8, 2023
47980a7
rm source
mlinksva Jul 8, 2023
ec4b315
Update sudo usage instructions in README.md
nikohoffren Jul 19, 2023
8792bab
Remove executable bit from assets/vendor/qtip2/bower.json
waldyrious Jul 23, 2023
a850601
Merge pull request #1131 from waldyrious/executable-bit
mlinksva Jul 23, 2023
a000651
Merge branch 'github:gh-pages' into update-instructions
nikohoffren Jul 27, 2023
c4d7d82
Update sudo usage instructions in README.md
nikohoffren Jul 27, 2023
2c161a8
Merge pull request #1130 from nikohoffren/update-instructions
mlinksva Jul 30, 2023
44b4904
Fix qtip viewport overflow.
canklot Aug 11, 2023
81d7faf
Revert "Fix qtip viewport overflow."
canklot Aug 12, 2023
b849353
Fix qtip viewport overflow by only changing app.coffe
canklot Aug 12, 2023
b3ef4f4
Merge pull request #1133 from canklot/gh-pages
mlinksva Aug 13, 2023
655293e
Clarify dual-licensing of Rust crates
lunacookies Jul 19, 2023
ad32059
Merge branch 'gh-pages' into patch-1
mlinksva Aug 25, 2023
9088525
Merge pull request #1123 from rylan-justice/patch-1
mlinksva Aug 25, 2023
660b932
add --recursive to getting started clone instructions
mlinksva Aug 26, 2023
518d32b
Drop support for IE < 9
mlinksva Aug 26, 2023
566792d
Merge pull request #1135 from github/submodule-instructions
mlinksva Aug 26, 2023
ac6592e
Update community.md
lunacookies Aug 26, 2023
1fea611
1140, add hint.css
chahmedejaz Aug 27, 2023
bb22701
#1140, update hint.css for licenses
chahmedejaz Aug 27, 2023
176a622
#1140, update the font size for tooltip's bodies
chahmedejaz Aug 27, 2023
5fcdf23
#1140, update hint.css for repository url input field errors
chahmedejaz Aug 27, 2023
69b2921
#1140, uninstall qtip2
chahmedejaz Aug 27, 2023
9284019
forgot precedence of `?
mlinksva Aug 29, 2023
0e8013d
Merge branch 'gh-pages' into rust-dual-licensing
mlinksva Aug 29, 2023
94ec385
114, center the appendix table sprites
chahmedejaz Aug 29, 2023
5c0df83
1140, update tooltips background colors
chahmedejaz Aug 29, 2023
d4b0fad
1140, make tooltips responsive
chahmedejaz Aug 30, 2023
591dd6a
1140, update tooltip headings
chahmedejaz Aug 31, 2023
c71d274
1140, update tooltip color class names
chahmedejaz Aug 31, 2023
56122d3
1140, fix tooltip body text issue
chahmedejaz Aug 31, 2023
0987bb0
1140, Update the tooltip arrow color
chahmedejaz Aug 31, 2023
c799401
1140, Update the color for repo input field tooltip error
chahmedejaz Aug 31, 2023
62f6ba5
1140, update the tooltip arrow color for the repo input field
chahmedejaz Aug 31, 2023
a7e6598
Merge pull request #1129 from lunacookies/rust-dual-licensing
mlinksva Aug 31, 2023
ad1535f
Merge branch 'gh-pages' into 1140-replace-qtip2-with-hint
mlinksva Aug 31, 2023
4eef7f5
1140, add hint.css source in .gitignore
chahmedejaz Aug 31, 2023
6bd31e6
1140, delete hint.css source files
chahmedejaz Aug 31, 2023
2f7a122
Merge pull request #1141 from chahmedejaz/1140-replace-qtip2-with-hint
mlinksva Aug 31, 2023
68ab913
Merge branch 'gh-pages' into rmielt9
mlinksva Aug 31, 2023
4b3f54d
rm selectivizr from .gitignore
mlinksva Aug 31, 2023
6d76ab6
Merge pull request #1136 from github/rmielt9
mlinksva Sep 3, 2023
8622278
bump actions/checkout v4
shogo82148 Sep 15, 2023
83d2efb
Eclipse hawkBit is now licensed under EPL-2.0
shogo82148 Sep 15, 2023
d9f9de4
add ClojureScript for EPL-1.0
shogo82148 Sep 15, 2023
6e8f65a
Eclipse SmartHome is archived
shogo82148 Sep 15, 2023
f851969
openHAB and SUMO changed their default branch
shogo82148 Sep 15, 2023
293184b
Skip foundation name
mlinksva Sep 15, 2023
23aefe0
replace skater with graaljs
mlinksva Sep 15, 2023
c60c96d
Merge pull request #1153 from shogo82148/fix-eclipse-hawkbit-license
mlinksva Sep 15, 2023
0bd2dde
Merge branch 'gh-pages' into bump-actions-checkout-v4
mlinksva Sep 15, 2023
080f59b
Merge pull request #1152 from shogo82148/bump-actions-checkout-v4
mlinksva Sep 15, 2023
a240a1f
Fix Code Search link in CONTRIBUTING
vorburger Oct 30, 2023
510b7f2
remove trailing / no longer supported
mlinksva Oct 31, 2023
005b3df
Merge pull request #1162 from vorburger/patch-1
mlinksva Oct 31, 2023
0f4b111
remove unnecessary spaces
Smankusors Dec 28, 2023
b8f914d
improve dark mode contrast for license description
Smankusors Dec 28, 2023
ff17268
improve dark mode contrast on hovering license rules
Smankusors Dec 28, 2023
ee6461b
rubocop Style/RedundantParentheses
mlinksva Dec 28, 2023
1827f5f
Merge pull request #1175 from Smankusors/gh-pages
mlinksva Dec 28, 2023
638ffd5
Copy edit UPL-1.0 description
chwarr Jan 22, 2024
1402141
Joomla changed branches, likely to change again, replace with Jellyfin
mlinksva Jan 22, 2024
4f6d27f
Merge pull request #1181 from chwarr/ce-upl
mlinksva Jan 22, 2024
9c7f6cf
draft addition of blueoak-1.0.0
mlinksva Jan 29, 2024
e21f919
name, end file with newline
mlinksva Jan 29, 2024
7cb3432
Update SPDX request URL
akirataguchi115 Feb 12, 2024
1456321
Merge pull request #1192 from akirataguchi115/patch-1
mlinksva Feb 14, 2024
96020d7
Merge branch 'gh-pages' into blueoak-1.0.0
mlinksva Feb 14, 2024
6229c19
Merge pull request #1186 from github/blueoak-1.0.0
mlinksva Feb 14, 2024
6230465
add example
mlinksva Feb 20, 2024
badc0d8
Merge branch 'gh-pages' into patch-1
mlinksva Feb 20, 2024
be05abb
replace example with a detectable one
mlinksva Feb 20, 2024
87efde5
third example
mlinksva Feb 20, 2024
aed28f9
Merge pull request #603 from ArniDagur/patch-1
mlinksva Feb 20, 2024
f95a811
Use HTTPS link in MPL
fmarier Mar 29, 2024
a51201d
Merge pull request #1208 from fmarier/patch-1
mlinksva Jun 30, 2024
3f5208a
Add trailing / in url match
mlinksva Jul 14, 2024
420cdb2
fix: #1236
Malix-Labs Jul 31, 2024
f7d9c59
Improve readability of sticky header in appendix
matthijsgroen Aug 13, 2024
70c9a4a
Add z-index value
matthijsgroen Aug 30, 2024
e7e937b
Merge pull request #1238 from matthijsgroen/patch-1
mlinksva Aug 30, 2024
fd5a9ec
update ruby version in tests to match gh pages version
mlinksva Aug 30, 2024
8c85628
rubocop ruby 3 things
mlinksva Aug 30, 2024
2ab4f2b
Merge pull request #1240 from github/test-fixes
mlinksva Aug 30, 2024
bb2c28d
limit workflow permissions
mlinksva Sep 3, 2024
05070e5
Merge pull request #1243 from github/workflow-permissions
mlinksva Sep 3, 2024
8c3de60
Show muted colors for conditions in legend
mschoettle Nov 25, 2024
7ba9391
Add rule type headers to legend
mschoettle Nov 25, 2024
62ec706
Merge pull request #1258 from mschoettle/appendix-legend-headers
mlinksva Nov 25, 2024
74b2b27
Merge branch 'gh-pages' into consistent-legend
mlinksva Nov 25, 2024
c973974
Merge pull request #1257 from mschoettle/consistent-legend
mlinksva Nov 25, 2024
7d687a2
Fix tooltips on license pages
mschoettle Nov 25, 2024
909cf83
Add rule label to tooltip
mschoettle Nov 25, 2024
35f0e00
revert #1243
mlinksva Nov 26, 2024
7d8062b
Merge pull request #1260 from github/mlinksva-patch-1
mlinksva Nov 26, 2024
8106a1a
Merge branch 'gh-pages' into fix-tooltips
mlinksva Nov 26, 2024
6691649
Merge pull request #1259 from mschoettle/fix-tooltips
mlinksva Nov 26, 2024
bfbc79c
Revert "revert #1243"
mlinksva Nov 26, 2024
d8c8d88
Merge pull request #1262 from github/revert-1260-mlinksva-patch-1
mlinksva Nov 26, 2024
17fbd67
Group rules by type in appendix legend
mschoettle Nov 26, 2024
7923e10
Merge pull request #1261 from mschoettle/appendix-legend-grouping
mlinksva Nov 26, 2024
d025319
pin actions versions in CI workflow
mlinksva Jan 10, 2025
0e5138a
update an mit-0 example
mlinksva Jan 10, 2025
c371448
Merge pull request #1266 from github/mlinksva-patch-2
mlinksva Jan 10, 2025
ba32100
Update CODE_OF_CONDUCT.md
jay-bman725 Feb 17, 2025
71079da
Update CODE_OF_CONDUCT.md
jay-bman725 Feb 17, 2025
54d23cf
Update CODE_OF_CONDUCT.md
jay-bman725 Mar 19, 2025
2b37985
Update CODE_OF_CONDUCT.md
jay-bman725 Mar 19, 2025
82de5aa
Fix OSHW docs links
mlinksva Mar 20, 2025
5dd35d1
Update CODE_OF_CONDUCT.md
jay-bman725 Mar 20, 2025
9eb13d3
Merge pull request #1275 from github/oshw-uncool-uris
mlinksva Mar 20, 2025
4caac06
Merge branch 'gh-pages' into gh-pages
mlinksva Mar 20, 2025
2663869
Merge pull request #1271 from jay-bman725/gh-pages
mlinksva Mar 20, 2025
be8022a
fix repository name parser in LicenseSuggestion
Cycloctane Apr 15, 2025
1c3d908
remove invalid html tags inside hint.css labels
Cycloctane Apr 15, 2025
d1ad7cf
update example url
mlinksva Apr 15, 2025
7570122
update example url
mlinksva Apr 15, 2025
319ddf4
update CERN OHL-* guide lihks
mlinksva Apr 15, 2025
8b4b880
Merge pull request #1280 from Cycloctane/remove_tags
mlinksva Apr 15, 2025
1abac18
Merge branch 'gh-pages' into fix_license_suggestion
mlinksva Apr 15, 2025
7162120
Update assets/js/app.coffee
Cycloctane Apr 15, 2025
fee0d8e
ignore query and fragment in repository url regex
Cycloctane Apr 15, 2025
0c7f3da
Merge pull request #1279 from Cycloctane/fix_license_suggestion
mlinksva Apr 15, 2025
136a248
Update LICENSE.md date range
owaheed456 Sep 9, 2025
804e34b
Update _licenses/osl-3.0.txt
Malix-Labs Sep 29, 2025
e1091df
Merge branch 'gh-pages' into patch-1
mlinksva Sep 29, 2025
aa82e97
update blueoak-1.0.0 examples
mlinksva Sep 29, 2025
2b6ded2
rubocop doesn't like redundant parens
mlinksva Sep 29, 2025
8dbe3b5
Merge pull request #1237 from Malix-Labs/patch-1
mlinksva Sep 29, 2025
996de6a
Fix tooltip color contrast to meet WCAG standards
eda-git Oct 26, 2025
8975b74
Merge pull request #1310 from eda-git/patch-1
mlinksva Oct 26, 2025
7361c07
migrate from coffeescript to plain javascript
mlinksva Dec 13, 2025
396aac3
spel variable name "correctly"
mlinksva Dec 13, 2025
a2f37e2
Merge pull request #1316 from github/decaf
mlinksva Dec 14, 2025
69328eb
remove ancient jquery dependency replace with vanilla javascript
mlinksva Dec 14, 2025
ef0e0e2
Merge pull request #1317 from github/qjquery
mlinksva Dec 14, 2025
6331b73
remove clipboard.js use vanilla javascript
mlinksva Dec 14, 2025
18d9a3b
Apparently needed in some browsers if text is offscreen
mlinksva Dec 14, 2025
6599de4
Merge pull request #1318 from github/clipclipboard
mlinksva Dec 14, 2025
a89f47e
remove normalize.css replace with minimal built-in reset
mlinksva Dec 14, 2025
6b1b52d
Merge pull request #1319 from github/denormalize
mlinksva Dec 14, 2025
084e95a
remove year range
mlinksva Jan 7, 2026
2026090
Merge branch 'gh-pages' into patch-1
mlinksva Jan 7, 2026
c47d967
Merge pull request #1304 from owaheed456/patch-1
mlinksva Jan 7, 2026
8853ecf
setup devcontainer
mlinksva Feb 20, 2026
415eba3
update license examples with ones that can be detected by tests
mlinksva Feb 20, 2026
45d7084
copilot review inspired
mlinksva Feb 21, 2026
0569c8f
Merge pull request #1323 from github/devcontainer
mlinksva Feb 21, 2026
ecaf53e
Replace the license property sprite (green/blue/red circles) with ind…
mlinksva Feb 21, 2026
21454b2
rm unncessary class adjustment
mlinksva Feb 21, 2026
b4442b3
Merge pull request #1324 from github/desprite
mlinksva Feb 21, 2026
fef68f3
Fix formatting in SECURITY.md table
joceyall30-cell Mar 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "choosealicense.com",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
"remoteEnv": {
"PATH": "/home/vscode/.rbenv/shims:/home/vscode/.rbenv/bin:${containerEnv:PATH}"
},
"postCreateCommand": "bash .devcontainer/post-create.sh"
}
97 changes: 97 additions & 0 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
#!/usr/bin/env bash
set -euo pipefail

for cmd in curl git sed; do
if ! command -v "${cmd}" >/dev/null 2>&1; then
echo "${cmd} is required for .devcontainer/post-create.sh"
exit 1
fi
done

if command -v apt-get >/dev/null 2>&1; then
packages=(
build-essential
cmake
pkg-config
libffi-dev
libyaml-dev
libssl-dev
zlib1g-dev
libreadline-dev
libgdbm-dev
libncurses-dev
libssh2-1-dev
)

missing_packages=()
for package in "${packages[@]}"; do
if ! dpkg-query -W -f='${Status}' "${package}" 2>/dev/null | grep -q 'install ok installed'; then
missing_packages+=("${package}")
fi
done

if [[ ${#missing_packages[@]} -gt 0 ]]; then
echo "Installing Ruby build dependencies: ${missing_packages[*]}"
if command -v sudo >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y "${missing_packages[@]}"
else
apt-get update
apt-get install -y "${missing_packages[@]}"
fi
fi
fi

echo "Initializing/updating git submodules"
git submodule update --init --recursive

versions_json="$(curl -fsSL https://pages.github.com/versions.json)" || {
echo "Failed to fetch https://pages.github.com/versions.json"
exit 1
}

pages_ruby_version="$(
printf '%s' "${versions_json}" |
sed -n 's/.*"ruby"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' |
head -n 1
)"

echo "GitHub Pages Ruby version: ${pages_ruby_version}"

if [[ -z "${pages_ruby_version}" ]]; then
echo "Could not determine Ruby version from https://pages.github.com/versions.json"
exit 1
fi

if [[ ! -d "$HOME/.rbenv" ]]; then
git clone --depth 1 https://github.com/rbenv/rbenv.git "$HOME/.rbenv"
fi

if [[ ! -d "$HOME/.rbenv/plugins/ruby-build" ]]; then
mkdir -p "$HOME/.rbenv/plugins"
git clone --depth 1 https://github.com/rbenv/ruby-build.git "$HOME/.rbenv/plugins/ruby-build"
fi

export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"
eval "$(rbenv init - bash)"

rbenv install -s "${pages_ruby_version}"
rbenv global "${pages_ruby_version}"
rbenv rehash

for profile in "$HOME/.bashrc" "$HOME/.zshrc"; do
if [[ -f "$profile" ]] && ! grep -q 'rbenv init - bash' "$profile"; then
{
echo
echo '# Load rbenv'
echo 'export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"'
echo 'eval "$(rbenv init - bash)"'
} >> "$profile"
fi
done

gem install bundler --no-document
rbenv rehash
mkdir -p "$HOME/.local/bin"
ln -sf "$HOME/.rbenv/shims/bundle" "$HOME/.local/bin/bundle"
bundle install
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Test
permissions:
contents: read

on:
push:
branches: [gh-pages]
pull_request:
branches: [gh-pages]

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: true

- name: Set up Ruby
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
with:
ruby-version: 3.3.4
bundler-cache: true

- name: Run tests
run: ./script/cibuild
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
/_site
/node_modules
/.bundle
assets/vendor/clipboard/src
assets/vendor/clipboard/test
assets/vendor/selectivizr/tests
assets/vendor/qtip2/basic
assets/vendor/hint.css/src
/vendor
/.sass-cache
.ruby-version
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "license-list-XML"]
path = license-list-XML
url = https://github.com/spdx/license-list-XML.git
5 changes: 3 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
AllCops:
TargetRubyVersion: 2.5
NewCops: enable
TargetRubyVersion: 3.3
Exclude:
- _site/**/*
- vendor/**/*

Metrics/BlockLength:
Enabled: false

Metrics/LineLength:
Layout/LineLength:
Enabled: false

Metrics/MethodLength:
Expand Down
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions 404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: 404 Not Found
---
Sorry! We could not find the page you were looking for.

If you were trying to see a license, go to [licenses](/licenses).
106 changes: 43 additions & 63 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,71 +1,51 @@
Contributor Covenant Code of Conduct
# Contributor Covenant Code of Conduct

Our Pledge
## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

Our Standards

Examples of behavior that contributes to creating a positive environment
include:
## Our Standards

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of behavior that contributes to creating a positive environment include:

- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members


## Unacceptable Behavior

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at opensource+choosealicense.com@github.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

Attribution

This Code of Conduct is adapted from the Contributor Covenant, version 1.4,
available at http://contributor-covenant.org/version/1/4/
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insults, derogatory remarks, or personal/political attacks
- Public or private harassment
- Disclosure of private information (such as physical or electronic addresses) without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting


## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.


## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.


## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at opensource+choosealicense.com@github.com. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.


## Attribution

This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at https://contributor-covenant.org/version/1/4/
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# How to Contribute
# How to contribute

We love Pull Requests! Your contributions help make ChooseALicense.com great.

Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](LICENSE.md).

Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.

## Getting Started
## Getting started

So you want to contribute to ChooseALicense. Great! We welcome any help we can
get. But first, please make sure you understand what
Expand All @@ -16,13 +16,13 @@ get. But first, please make sure you understand what

Choosealicense.com is intended to demystify license choices, not present or catalog all of them. As such, only a small number are highlighted on the home page or <https://choosealicense.com/licenses>, and there are several requirements for a license to be [cataloged](https://choosealicense.com/appendix/) on the site:

1. The license must have [an SPDX identifier](https://spdx.org/licenses/). If your license isn't registered with SPDX, please [request that it be added](https://spdx.org/spdx-license-list/request-new-license).
1. The license must have [an SPDX identifier](https://spdx.org/licenses/). If your license isn't registered with SPDX, please [request that it be added](https://github.com/spdx/license-list-XML/blob/main/CONTRIBUTING.md).
2. The license must be listed on one of the following approved lists of licenses:
* [List of OSI approved licenses](https://opensource.org/licenses/alphabetical)
* [GNU's list of free licenses](https://www.gnu.org/licenses/license-list.en.html) (*note: the license must be listed in one of the three "free" categories*)
* [Open Definition's list of conformant licenses](https://opendefinition.org/licenses/) (non-code)
3. A [GitHub code search](https://github.com/search?q=MIT+filename%3ALICENSE&type=Code) must reveal at least *1,000* public repositories using the license.
4. 3 notable projects using the license must be identified. These must have straightforward LICENSE files which serve as examples newcomers can follow and that could be detected by [licensee](https://github.com/benbalter/licensee) if it knew about the license.
3. The license must be used in at least *1,000* public repositories. This may be documented, for example, with a [GitHub code search](https://github.com/search?q=MIT+path%3ALICENSE&type=Code).
4. 3 notable projects using the license must be identified. These must have straightforward LICENSE files which serve as examples newcomers can follow and that could be detected by [licensee](https://github.com/licensee/licensee) if it knew about the license.

If your proposed license meets the above criteria, here's a few other things to keep in mind as you propose the license's addition:

Expand All @@ -34,7 +34,7 @@ If your proposed license meets the above criteria, here's a few other things to
* The text of the license should match the corresponding text found in [spdx/license-list-data](https://github.com/spdx/license-list-data/blob/master/text/). If there are errors there, please fix them in [spdx/license-list-XML](https://github.com/spdx/license-list-XML) (from which the plain text version is generated) so as to minimize license text variation and make it easier for choosealicense.com to eventually consume license texts directly from SPDX.
* The body of the file should be the text of the license in plain text.

## Making Changes
## Making changes

The easiest way to make a change is to simply edit a file from your browser.
When you click the edit button, it will fork the repository under your account.
Expand Down
9 changes: 6 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
source 'https://rubygems.org'

require 'json'
require 'open-uri'
versions = JSON.parse(open('https://pages.github.com/versions.json').read)
require 'net/http'
versions = JSON.parse(Net::HTTP.get(URI('https://pages.github.com/versions.json')))

gem 'github-pages', versions['github-pages']

# https://github.com/jekyll/jekyll/issues/8523
gem 'webrick', '~> 1.7'

group :development do
gem 'colored'
gem 'fuzzy_match'
Expand All @@ -16,7 +19,7 @@ end

group :test do
gem 'html-proofer', '~> 3.0'
gem 'licensee'
gem 'licensee', git: 'https://github.com/licensee/licensee.git', branch: 'master'
gem 'rake'
gem 'rspec'
gem 'rubocop'
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2013-2018 GitHub, Inc. and contributors
Copyright (c) GitHub, Inc. and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading