Skip to content

Commit e8beda4

Browse files
committed
[rb] build ruby docs from the right location
1 parent d55f20b commit e8beda4

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

rake-tasks/crazy_fun/mappings/ruby.rb

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,12 @@ def handle(_fun, dir, args)
126126
yard_args += ["--output-dir", output_dir]
127127
yard_args += ["--readme", readme]
128128

129-
ruby :command => "yard",
130-
:args => yard_args,
131-
:files => files,
132-
:gemfile => "build/rb/Gemfile"
133-
134-
# Need a cross-platform solution, perform manually
135-
# sh "find build/docs/api/rb -type f -name '*.html' -exec sed -i '' 's/build\\/rb\\/ib/lib/g' {} +"
129+
Dir.chdir(File.join('build', 'rb')) do
130+
ruby :command => "yard",
131+
:args => yard_args,
132+
:files => files,
133+
:gemfile => "Gemfile"
134+
end
136135
end
137136

138137
add_dependencies t, dir, args[:deps]

rb/build.desc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ rubygem(
1616

1717
rubydocs(
1818
files = [
19-
"build/rb/lib/**/*.rb",
20-
"build/rb/CHANGES"
19+
"lib/**/*.rb",
20+
"CHANGES"
2121
],
22-
readme = "rb/README.md",
23-
output_dir = "build/docs/api/rb",
22+
readme = "README.md",
23+
output_dir = "../docs/api/rb",
2424
deps = [ "//rb:gem:build", "//rb:bundle" ]
2525
)
2626

0 commit comments

Comments
 (0)