Skip to content

Commit 038705e

Browse files
committed
Merge pull request #41 from codeclimate/jp/content-formatting
Improve content formatting
2 parents 590c2b3 + 817e702 commit 038705e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/tasks/docs.rake

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ namespace :docs do
1414
class_doc = content.match(/(\s+#.*)+/).to_s
1515
doc_lines = class_doc.
1616
gsub(/^\n/,"").
17+
gsub("@example", "### Example:").
1718
split("\n").
18-
map { |line| line.gsub(/\s+#\s?/, "") }.
19+
map { |line| line.gsub(/\A\s+#\s?/, "") }.
20+
map { |line| line.gsub(/\A\s{2}/, " " * 4) }.
1921
join("\n")
2022
hash[file] = doc_lines
2123
end

0 commit comments

Comments
 (0)