Skip to content

Commit ecaeb99

Browse files
committed
Update Makefile to publish to docs branch
1 parent ce0c271 commit ecaeb99

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/api/manual/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/*.docx
22
/*.pdf
3+
/publish

docs/api/manual/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ TOOL_OOWRITER:=oowriter
1616
#
1717
# Derived Settings
1818
#
19-
PUBLISH_DIR:=../publish
19+
PUBLISH_DIR:=publish
2020

2121
#
2222
# Various Tool Settings
@@ -33,10 +33,13 @@ all: $(TARGETS)
3333
example: $(EXAMPLES)
3434

3535
publish: $(TARGETS) $(EXAMPLES)
36+
rm -rf $(PUBLISH_DIR)
37+
git clone -b docs git@github.com:ARMmbed/uvisor.git $(PUBLISH_DIR)
38+
3639
cp $^ $(PUBLISH_DIR)
3740
git -C $(PUBLISH_DIR) add $^
3841
git -C $(PUBLISH_DIR) commit -a -m "released DOC & PDF documents"
39-
git -C $(PUBLISH_DIR) push origin bin
42+
git -C $(PUBLISH_DIR) push origin docs
4043

4144
%.pdf : %.docx
4245
$(TOOL_OOWRITER) --headless --convert-to pdf:writer_pdf_Export $^

0 commit comments

Comments
 (0)