Skip to content

Commit aba638c

Browse files
committed
bugfix: TOC links now work inside [src] views
1 parent a942fba commit aba638c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/contents.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def content
2323
h1 "Contents"
2424
docs.each do |path|
2525
title = path.split('/').last.split('_').map{|s|s.capitalize}.join(' ')
26-
path = path.gsub(/^#{case_dir}\//, '')
26+
path = path.gsub(/^#{case_dir}\//, "/#{@case_name}/")
2727
li { a(title, :href => path) }
2828
end
2929

0 commit comments

Comments
 (0)