Added configuration file
This commit is contained in:
@@ -35,12 +35,24 @@ jobs:
|
|||||||
run: git clone --single-branch --branch $branch https://github.com/$username/$repo
|
run: git clone --single-branch --branch $branch https://github.com/$username/$repo
|
||||||
- name: ls
|
- name: ls
|
||||||
run: ls
|
run: ls
|
||||||
|
- name: Replace string in file
|
||||||
|
run: |
|
||||||
|
import os
|
||||||
|
with open("./spearhead/config.lua", "r") as luaFile:
|
||||||
|
luaConfig = luaFile.read()
|
||||||
|
with open("./spearhead/_docs/Reference.md", "r+") as mdFile:
|
||||||
|
text = mdFile.read()
|
||||||
|
text = text.replace("##!config!##", luaConfig)
|
||||||
|
mdFile.write()
|
||||||
|
shell: python
|
||||||
|
|
||||||
- name: mkdir
|
- name: mkdir
|
||||||
run: mkdir -p ./$repo/Spearhead
|
run: mkdir -p ./$repo/Spearhead
|
||||||
- run: npm i markdown-to-html-cli -g
|
- run: npm i markdown-to-html-cli -g
|
||||||
- run: markdown-to-html --title 'Spearhead' --dark-mode auto --keywords "dcs,spearhead,tdcs,mission,campaign,tactical dcs,tactical" --no-dark-mode --markdown-style-theme dark --source ./spearhead/_docs/$sourcefileA.md --output ./$repo/Spearhead/$sourcefileA.html
|
- run: markdown-to-html --title 'Spearhead' --dark-mode auto --keywords "dcs,spearhead,tdcs,mission,campaign,tactical dcs,tactical" --no-dark-mode --markdown-style-theme dark --source ./spearhead/_docs/$sourcefileA.md --output ./$repo/Spearhead/$sourcefileA.html
|
||||||
- run: markdown-to-html --title 'Spearhead' --dark-mode auto --keywords "dcs,spearhead,tdcs,mission,campaign,tactical dcs,tactical" --no-dark-mode --markdown-style-theme dark --source ./spearhead/_docs/$sourcefileB.md --output ./$repo/Spearhead/$sourcefileB.html
|
- run: markdown-to-html --title 'Spearhead' --dark-mode auto --keywords "dcs,spearhead,tdcs,mission,campaign,tactical dcs,tactical" --no-dark-mode --markdown-style-theme dark --source ./spearhead/_docs/$sourcefileB.md --output ./$repo/Spearhead/$sourcefileB.html
|
||||||
- run: python3 ./spearhead/SpearheadCompile.py "./spearhead" "./$repo/Spearhead/spearhead.lua"
|
- run: python3 ./spearhead/SpearheadCompile.py "./spearhead" "./$repo/Spearhead/spearhead.lua"
|
||||||
|
- run: cp "./spearhead/config.lua" "./$repo/Spearhead/spearheadConfig.lua"
|
||||||
- run: cp -a ./spearhead/_docs/img/. ./$repo/Spearhead/img/
|
- run: cp -a ./spearhead/_docs/img/. ./$repo/Spearhead/img/
|
||||||
- name: ls
|
- name: ls
|
||||||
run: ls
|
run: ls
|
||||||
|
|||||||
@@ -62,6 +62,12 @@ The initial version with basic functionality
|
|||||||
- [ ] Persistance
|
- [ ] Persistance
|
||||||
|
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
```lua
|
||||||
|
##!config!##
|
||||||
|
```
|
||||||
|
|
||||||
## Stage
|
## Stage
|
||||||
|
|
||||||
A stage is a logical part of a mission. It's isn't anything special per se, but everything revolves around stages in Spearhead. <br/>
|
A stage is a logical part of a mission. It's isn't anything special per se, but everything revolves around stages in Spearhead. <br/>
|
||||||
|
|||||||
Reference in New Issue
Block a user