Skip to content

Commit

Permalink
Add do not edit comments to all generated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Hauman committed Oct 12, 2018
1 parent 2f2d487 commit edf2f3a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dev/user.clj
Expand Up @@ -29,7 +29,10 @@
(string/join "\n" (map sym->markdown-doc syms))))

(defn build-api-docs []
(spit "docs/_includes/main-api-docs.md" (api-docs)))
(spit "docs/_includes/main-api-docs.md"
(str "<!-- DO NOT EDIT: File generated from defn string docs in src/figwheel/main/api.clj -->\n"
"<!-- Generation code can be found in user.clj -->\n"
(api-docs))))

(defn build-option-docs []
(doseq [dir ["doc/figwheel-main-options.md" "docs/config-options.md"]]
Expand Down
4 changes: 3 additions & 1 deletion scripts/kram.rb
Expand Up @@ -6,5 +6,7 @@
hard_wrap: false,
coderay_line_numbers: nil})
new_name = filename.split("/").last.split(".").first + ".html"
File.write('helper-resources/public/com/bhauman/figwheel/helper/content/' + new_name , doc.to_html)
content = "<!-- DO NOT EDIT: File generated from Markdown source found in #{filename} -->\n" + doc.to_html

File.write('helper-resources/public/com/bhauman/figwheel/helper/content/' + new_name , content)
end
3 changes: 3 additions & 0 deletions src/figwheel/main/schema/core.clj
Expand Up @@ -145,6 +145,9 @@
layout: config-options
---
<!-- DO NOT EDIT: File generated from specs defined in figwheel/main/schema/config.clj -->
<!-- Generation code can be found in figwheel/main/schema/core.clj -->
# Figwheel Main Configuration Options
This page is a reference for all of the Figwheel configuration options.
Expand Down

0 comments on commit edf2f3a

Please sign in to comment.