Feature/automation #6
@@ -30,19 +30,19 @@ jobs:
|
||||
|
||||
- name: Highlight API code and update HTML
|
||||
run: |
|
||||
pygmentize -f html -l lua -O noclasses,style=monokai classes/api/SpearheadApiDoc.lua > .docs/pages/temp_api_code.html
|
||||
pygmentize -f html -l lua -O noclasses,style=monokai classes/api/SpearheadApiDoc.lua > .docs/web/pages/temp_api_code.html
|
||||
# Insert the highlighted code into the placeholder in spearheadapi.html
|
||||
sed -i '/@@API_CODE@@/r .docs/pages/temp_api_code.html' .docs/pages/spearheadapi.html
|
||||
sed -i '/@@API_CODE@@/d' .docs/pages/spearheadapi.html
|
||||
rm .docs/pages/temp_api_code.html
|
||||
sed -i '/@@API_CODE@@/r .docs/web/pages/temp_api_code.html' .docs/web/pages/spearheadapi.html
|
||||
sed -i '/@@API_CODE@@/d' .docs/web/pages/spearheadapi.html
|
||||
rm .docs/web/pages/temp_api_code.html
|
||||
|
||||
- name: Highlight API code and update HTML
|
||||
run: |
|
||||
pygmentize -f html -l lua -O noclasses,style=monokai ./config.lua > .docs/pages/temp_config_code.html
|
||||
pygmentize -f html -l lua -O noclasses,style=monokai ./config.lua > .docs/web/pages/temp_config_code.html
|
||||
# Insert the highlighted code into the placeholder in spearheadapi.html
|
||||
sed -i '/@@CONFIG_CODE@@/r .docs/pages/temp_config_code.html' .docs/pages/reference.html
|
||||
sed -i '/@@CONFIG_CODE@@/d' .docs/pages/reference.html
|
||||
rm .docs/pages/temp_config_code.html
|
||||
sed -i '/@@CONFIG_CODE@@/r .docs/web/pages/temp_config_code.html' .docs/web/pages/reference.html
|
||||
sed -i '/@@CONFIG_CODE@@/d' .docs/web/pages/reference.html
|
||||
rm .docs/web/pages/temp_config_code.html
|
||||
|
||||
- name: Upload spearhead.lua artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
Reference in New Issue
Block a user