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 280a679 commit 23f28c8Copy full SHA for 23f28c8
resources/asciidoctor/lib/chunker/url_to_v3.rb
@@ -18,8 +18,13 @@ def initialize(doc)
18
# # Read content from the specified file and convert it to a dictionary
19
# mapping = JSON.parse(File.read(file_path)) if File.exist?(file_path)
20
21
-
22
- path_dir = outdir.sub('/tmp/docsbuild/target_repo/raw', '').split('/')[0...-1].join('/')
+ path_dir = if segments.empty?
+ ''
23
+ elsif segments.length > 1
24
+ segments[0...-1].join('/')
25
+ else
26
+ segments[0]
27
+ end
28
29
actual_url = '/guide' + path_dir + '/*/' + current_url
30
0 commit comments