Generate extension api reference docs using library mode (#1307)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2020-11-11 09:02:26 +02:00
1 parent 85c4a10114
commit 469b723469
5 files changed
+101 -61

No files matched your search

+18 -20
View File
@@ -12,17 +12,17 @@ jobs:
matrix:
node-version: [12.x]
steps:
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://${{ secrets.GH_TOKEN }}@github.com/lensapp/mkdocs-material-insiders.git
pip install mkdocs-git-revision-date-localized-plugin mike
pip install mike
- name: Checkout Release from lens
uses: actions/checkout@v2
@@ -30,34 +30,32 @@ jobs:
repository: lensapp/lens
- name: git config
run: |
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git pull
- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Generate Extensions API Reference using typedocs
run: |
run: |
yarn install
yarn typedocs-extensions-api
for filename in docs/extensions/api/**/*.md; do [ -e "$filename" ] || continue; sed -i '1s/^/---\ntitle: API Reference\n---\n/' $filename; done
- name: mkdocs deploy latest
run: |
run: |
mike deploy --push latest
- name: mkdocs deploy new release / tag
if: contains(github.ref, 'refs/tags/v')
run: |
run: |
mike deploy --push--update-aliases ${{ github.ref }} latest
mike set-default --push ${{ github.ref }}