Skip to content

Commit 52a9a3d

Browse files
committed
es-toolkit: attribution link
1 parent 90fed11 commit 52a9a3d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/docs/scrapers/es_toolkit.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,14 @@ def render(filename)
6161
s.gsub!(%r{(</?h)3>}, "\\14>")
6262

6363
# manually add attribution
64+
link = "#{self.class.links[:home]}#{filename.gsub(/^docs/,'').gsub(/md$/,'html')}"
6465
s += <<~HTML
6566
<div class="_attribution">
6667
<p class="_attribution-p">
6768
#{options[:attribution]}
6869
<br>
69-
<a href="#{self.class.links[:home]}" class="_attribution-link">
70-
#{self.class.links[:home]}
70+
<a href="#{link}" class="_attribution-link">
71+
#{link}
7172
</a>
7273
</p>
7374
</div>

0 commit comments

Comments
 (0)