1
0
mirror of https://github.com/github/choosealicense.com synced 2024-06-02 01:08:03 +02:00

Implement static URIs for licenses

This commit is contained in:
Dlurak 2024-01-01 15:57:19 +01:00
parent 1827f5f462
commit 4470b2a274
3 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@ assets/vendor/hint.css/src
/tmp
Gemfile.lock
.jekyll-metadata
raw

View File

@ -1,6 +1,8 @@
<div class="sidebar">
<a href="#" data-clipboard-target="#license-text" data-proofer-ignore="true" class="js-clipboard-button button">Copy license text to clipboard</a>
<pre>https://choosealicense.com/raw/{{ page.spdx-id | downcase }}</pre>
{% unless page.spdx-id == 'LGPL-3.0' %}
<h3 id="suggest-this-license">Suggest this license</h3>
<div class="repository-suggestion">

View File

@ -2,6 +2,11 @@
set -e
echo "copy licenses"
mkdir raw
for file in _licenses/*.txt; do cp "$file" "raw/$(basename "$file" .txt)"; done
echo "bundling installin'"
gem install bundler
bundle install