docs: update contribution guidelines to add section on commit structure

This commit is contained in:
Olaoluwa Osuntokun committed 2018-12-18 20:59:46 -08:00
1 parent 2f17030e8c
commit 516a48741f
2 files changed
+52 -4

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env ruby
File.open("INSTALL.md", 'r') do |f|
f.each_line do |line|
forbidden_words = ['Table of contents', 'define', 'pragma']
next if !line.start_with?("#") || forbidden_words.any? { |w| line =~ /#{w}/ }
title = line.gsub("#", "").strip
href = title.gsub(" ", "-").downcase
puts " " * (line.count("#")-1) + "* [#{title}](\##{href})"
end
end