We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dd12ab commit c3f6bffCopy full SHA for c3f6bff
lib/sdoc/generator.rb
@@ -193,9 +193,10 @@ def generate_class_tree_level(classes, visited = {})
193
194
### Determines index path based on @options.main_page (or lack thereof)
195
def index_path
196
+ main_page = @options.main_page
197
# Transform class name to file path
- if @options.main_page&.include?("::")
198
- slashed = @options.main_page.sub(/^::/, "").gsub("::", "/")
+ if main_page && main_page.include?("::")
199
+ slashed = main_page.sub(/^::/, "").gsub("::", "/")
200
"%s/%s.html" % [ class_dir, slashed ]
201
else
202
index.path
0 commit comments