Skip to content

Commit

Permalink
Improve docs-preview annotation to link both API and Guides directly
Browse files Browse the repository at this point in the history
  • Loading branch information
zzak committed Apr 30, 2024
1 parent a091e82 commit b3923b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/docs-preview-annotate
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ json = JSON.parse(response.body)
result = json["result"].first

plan = <<~PLAN
#### :writing_hand: rails/docs-preview: <a href="#{result["url"]}">:link: Preview URL</a>
#### :writing_hand: rails/docs-preview:
* <a href="#{result["url"]}/api">:link: API</a>
* <a href="#{result["url"]}/guides">:link: Guides</a>
PLAN

puts plan

0 comments on commit b3923b3

Please sign in to comment.