diff --git a/lib/docs/filters/express/clean_html.rb b/lib/docs/filters/express/clean_html.rb index 97609929..0d9c5127 100644 --- a/lib/docs/filters/express/clean_html.rb +++ b/lib/docs/filters/express/clean_html.rb @@ -42,6 +42,11 @@ module Docs node.parent.content = node.parent.content end + # Fix links to the method reference + css('a').each do |node| + node['href'] = node['href'].sub('4x/api', 'index') + end + doc end end