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 @@
+ Plain text URL:
+ /licenses/{{ raw_slug }}.txt
+ — e.g. curl https://choosealicense.com/licenses/{{ raw_slug }}.txt > LICENSE
+