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 635cafa commit 3527106Copy full SHA for 3527106
resources/asciidoctor/lib/chunker/url_to_v3.rb
@@ -13,7 +13,7 @@ def initialize(doc)
13
# raise ArgumentError, "Missing required attribute 'current-url'" if current_url.nil?
14
# raise ArgumentError, "Missing required attribute 'outdir'" if outdir.nil?
15
16
- Hardcoded file path
+ # Hardcoded file path
17
file_path = File.expand_path('v3-mapping.json', __dir__)
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)
@@ -30,7 +30,6 @@ def initialize(doc)
30
31
actual_url = '/guide' + path_dir + '/*/' + current_url
32
33
-
34
if mapping.key?(actual_url)
35
new_url = mapping[actual_url]
36
else
0 commit comments