diff --git a/docs/api/manual/.gitignore b/docs/api/manual/.gitignore index d08a83b5..6c24fa46 100644 --- a/docs/api/manual/.gitignore +++ b/docs/api/manual/.gitignore @@ -1,2 +1,3 @@ /*.docx /*.pdf +/publish diff --git a/docs/api/manual/Makefile b/docs/api/manual/Makefile index d862442f..f7c57b50 100644 --- a/docs/api/manual/Makefile +++ b/docs/api/manual/Makefile @@ -16,7 +16,7 @@ TOOL_OOWRITER:=oowriter # # Derived Settings # -PUBLISH_DIR:=../publish +PUBLISH_DIR:=publish # # Various Tool Settings @@ -33,10 +33,13 @@ all: $(TARGETS) example: $(EXAMPLES) publish: $(TARGETS) $(EXAMPLES) + rm -rf $(PUBLISH_DIR) + git clone -b docs git@github.com:ARMmbed/uvisor.git $(PUBLISH_DIR) + cp $^ $(PUBLISH_DIR) git -C $(PUBLISH_DIR) add $^ git -C $(PUBLISH_DIR) commit -a -m "released DOC & PDF documents" - git -C $(PUBLISH_DIR) push origin bin + git -C $(PUBLISH_DIR) push origin docs %.pdf : %.docx $(TOOL_OOWRITER) --headless --convert-to pdf:writer_pdf_Export $^ diff --git a/docs/api/manual/template/pandoc-template.docx b/docs/api/manual/template/pandoc-template.docx new file mode 100644 index 00000000..45bdda5c Binary files /dev/null and b/docs/api/manual/template/pandoc-template.docx differ