Skip to content

Commit 61530fb

Browse files
Update docs
1 parent ebe6a2f commit 61530fb

18 files changed

+2921
-99
lines changed

Diff for: Rakefile

+9-1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ task :install => [ :gem, :uninstall ] do
9393
sh "gem install --no-rdoc --no-ri --local #{repo_name}-#{version}.gem"
9494
end
9595

96+
desc 'Update android and iOS docs'
97+
task :docs do
98+
sh "ruby docs_gen/make_docs.rb"
99+
end
100+
96101
desc 'Update release notes'
97102
task :notes do
98103
tags = `git tag`.split "\n"
@@ -122,7 +127,10 @@ task :notes do
122127
data.split("\n").each do |line|
123128
hex = line.match(/[a-zA-Z0-9]+/)[0]
124129
# use first 7 chars to match GitHub
125-
new_data += "- [#{hex[0...7]}](https://github.com/appium/#{gh_name}/commit/#{hex}) #{line.gsub(hex, '').strip}\n"
130+
comment = line.gsub(hex, '').strip
131+
next if comment == 'Update release notes'
132+
# Update release notes
133+
new_data += "- [#{hex[0...7]}](https://github.com/appium/#{gh_name}/commit/#{hex}) #{comment}\n"
126134
end
127135
data = new_data + "\n"
128136

0 commit comments

Comments
 (0)