mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-09 12:22:38 +01:00
docs: update contribution guidelines to add section on commit structure
This commit is contained in:
12
docs/ruby-thing.rb
Normal file
12
docs/ruby-thing.rb
Normal 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
|
||||
Reference in New Issue
Block a user