Permalink
Browse files

script to help generate edocs

  • Loading branch information...
1 parent e7bc02e commit 0ef3cb4975c32bf55f322214ba933117716eeda5 Tony Hannan committed May 19, 2011
Showing with 6 additions and 0 deletions.
  1. +1 −0 doc/clear_docs
  2. +3 −0 doc/gen_docs
  3. +2 −0 doc/gen_overview_doc
View
@@ -0,0 +1 @@
+rm *.html edoc-info erlang.png stylesheet.css overview.edoc
View
@@ -0,0 +1,3 @@
+# Generate html docs from src code comment using edoc
+./gen_overview_doc
+erl -pa ../../bson/ebin/ ../../mongodb/ebin -eval 'edoc:application(mongodb, [{index_columns, 1}, {sort_functions, false}, {preprocess, true}]), init:stop()' -noshell
View
@@ -0,0 +1,2 @@
+# Generate overview.edoc from README.md using sed script from http://github.com/hdiedrich/markedoc
+sed -E -f ~/markedoc/bin/markedoc.sed ../README.md | sed s/\&/and/g | sed 's|http://github.com/TonyGen/bson-erlang|../bson/index.html|' | sed 's|http://github.com/TonyGen/mongodb-erlang/blob/master/src/mongo.erl|mongo.html|' > overview.edoc

0 comments on commit 0ef3cb4

Please sign in to comment.