File tree 2 files changed +34
-1
lines changed
2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Java
2
+ ./go javadocs || exit
3
+
4
+ # Python
5
+ ./go py_docs || exit
6
+
7
+
8
+ # switch to gh-pages and copy the files
9
+ git checkout gh-pages || exit
10
+ rm -rf docs/api/java docs/api/py
11
+
12
+ mv build/javadoc docs/api/java
13
+ mv build/docs/api/py docs/api/py
14
+
15
+ git add -A docs/api
16
+
17
+ echo " Do you want to commit the changes? (Y/n):"
18
+
19
+ read changes
20
+
21
+ if [ $changes != " " || $changes != " Y" || $changes != " y" ]
22
+ then
23
+ exit ;
24
+ fi
25
+
26
+ echo " Commiting changes"
27
+ git commit -am " updating javadoc and py docs"
28
+
29
+ echo " pushing to origin gh-pages"
30
+ git push origin gh-pages
31
+
32
+ echo " switching back to master branch"
33
+ git checkout master
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ py_test(
73
73
py_docs(
74
74
name = "docs",
75
75
source_folder = "py/docs/source",
76
- target_folder = "docs/api/py",
76
+ target_folder = "build/ docs/api/py",
77
77
deps = [ "//py:test_env_docs" ]
78
78
)
79
79
You can’t perform that action at this time.
0 commit comments