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
88
99on :
1010 push :
11- branches : ["main", "doc-preview"]
11+ branches : ["main", "doc-preview", "coref-api" ]
1212 paths :
1313 - " doc/**"
1414
4343 bundler-cache : true # runs 'bundle install' and caches installed gems automatically
4444 cache-version : 0 # Increment this number if you need to re-download cached gems
4545 working-directory : ' ${{ github.workspace }}/doc'
46+ - name : Generate COREF API Documents
47+ run : python3 tools/build.py
4648 - name : Setup Pages
4749 id : pages
4850 uses : actions/configure-pages@v3
Original file line number Diff line number Diff line change 11import 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 ]
92
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+ ])
1016print ("Copy ../assets into ./doc/assets" )
1117subprocess .run (["cp" , "-r" , "../assets" , "./" ])
1218print ("Concat coref library from ../language into ./.coref-api-build" )
1319subprocess .run (["python3" , "tools/generate_coref_library.py" , "../language" ])
1420print ("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