Skip to content

Commit

Permalink
fix apidoc version
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeIwaki committed Aug 15, 2022
1 parent c4fa95d commit 9b837a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion development/generate_api_coverage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def api_coverages
end
end

apiversion_content = File.read(File.join(__dir__, 'DOCS_VERSION')).strip
apidoc_content = File.read(File.join(__dir__, 'puppeteer.api.json'))
parser = ApiDocJsonParser.new(apidoc_content)
class_docs = parser.class_docs
Expand All @@ -231,7 +232,7 @@ def api_coverages

File.open(File.join('.', 'docs', 'api_coverage.md'), 'w') do |f|
f.write("# API coverages\n")
f.write("- Puppeteer version: v15.2.0\n")
f.write("- Puppeteer version: v#{apiversion_content}\n")
f.write("- puppeteer-ruby version: #{Puppeteer::VERSION}\n")
end

Expand Down
2 changes: 1 addition & 1 deletion docs/api_coverage.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# API coverages
- Puppeteer version: v15.2.0
- Puppeteer version: v15.5.0
- puppeteer-ruby version: 0.42.0

## Puppeteer
Expand Down

0 comments on commit 9b837a4

Please sign in to comment.