A python script which generates documentation for Titanfall 2 + Northstar mods.
- Add
@ignore
flag to ignore functions - Add support for global structs
This action exports only global functions.
global function Example
/**
* Description here. This is pure markdown
* and can be multiple lines
* ```cpp
* // I am a code block
* ```
* @param player Short descripiton of this argument
* @param count Short descripiton of this argument
*/
void function Example( string player, int count ) {
// ...
}
{
"Name": "ExampleConvar",
"DefaultValue": "1",
"Description": "Description of what this convar does"
}
name: Generate documentation
on: push
jobs:
docs-gen:
runs-on: ubuntu-latest
steps:
- name: Clone project
uses: actions/checkout@v2
- name: Generate docs
uses: F1F7Y/titanfall-mod-docs-gen@v0
- name: Push new docs
working-directory: docs
run: |
git config user.name TitanfallDocsGen
git config user.email "<>"
git add .
git diff --quiet HEAD || git commit -m "New docs"
git push