Skip to content

Commit

Permalink
Implement static URIs for licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
Dlurak committed Jan 1, 2024
1 parent 1827f5f commit 4470b2a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ assets/vendor/hint.css/src
/tmp
Gemfile.lock
.jekyll-metadata
raw
2 changes: 2 additions & 0 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
@@ -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">
Expand Down
5 changes: 5 additions & 0 deletions script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4470b2a

Please sign in to comment.