File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ name: Deploy Jekyll site to Pages
8
8
9
9
on :
10
10
push :
11
- branches : ["main", "doc-preview"]
11
+ branches : ["main", "doc-preview", "coref-api" ]
12
12
paths :
13
13
- " doc/**"
14
14
43
43
bundler-cache : true # runs 'bundle install' and caches installed gems automatically
44
44
cache-version : 0 # Increment this number if you need to re-download cached gems
45
45
working-directory : ' ${{ github.workspace }}/doc'
46
+ - name : Generate COREF API Documents
47
+ run : python3 tools/build.py
46
48
- name : Setup Pages
47
49
id : pages
48
50
uses : actions/configure-pages@v3
Original file line number Diff line number Diff line change 1
1
import subprocess
2
- import sys
3
-
4
- if len (sys .argv ) != 2 :
5
- print ("Usage: python this_file.py godel_script_executable_path" )
6
- exit (- 1 )
7
-
8
- godel_script_executable = sys .argv [1 ]
9
2
3
+ print ("Download Sparrow CLI" )
4
+ subprocess .run ([
5
+ "curl" ,
6
+ "-L" ,
7
+ "https://github.com/codefuse-ai/CodeFuse-Query/releases/download/2.0.2/sparrow-cli-2.0.2.linux.tar.gz" ,
8
+ "-o" ,
9
+ "sparrow-cli.tar.gz"
10
+ ])
11
+ subprocess .run ([
12
+ "tar" ,
13
+ "-xvzf" ,
14
+ "sparrow-cli-2.0.2.linux.tar.gz"
15
+ ])
10
16
print ("Copy ../assets into ./doc/assets" )
11
17
subprocess .run (["cp" , "-r" , "../assets" , "./" ])
12
18
print ("Concat coref library from ../language into ./.coref-api-build" )
13
19
subprocess .run (["python3" , "tools/generate_coref_library.py" , "../language" ])
14
20
print ("Generate markdown documents into ./godel-api" )
15
- subprocess .run (["python3" , "tools/generate_markdown.py" , godel_script_executable ])
21
+ subprocess .run (["python3" , "tools/generate_markdown.py" , "./sparrow-cli/godel-script/usr/bin/godel" ])
You can’t perform that action at this time.
0 commit comments