Skip to content

fix broken links

fix broken links #1354

name: CheckMkDocsBuild
on:
# Trigger the workflow on a new pull request on main
pull_request_target:
branches:
- main
jobs:
build-docs-site:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.10.12'
- name: Allow to move dotfiles
run: |
# move also dotfile with *
shopt -s dotglob
- name: Clone Tanssi MKDocs
run: |
# clone mkdocs repo locally
git clone https://${{ secrets.REPO_SCOPED_TOKEN }}@github.com/moondance-labs/tanssi-mkdocs.git
- name: Move tanssi-docs contents to mkdocs repository
run: |
mkdir tanssi-mkdocs/tanssi-docs
find . -mindepth 1 -maxdepth 1 ! -name 'tanssi-mkdocs' -exec mv {} tanssi-mkdocs/tanssi-docs/ \;
- name: Install pip requirements
run: |
cd tanssi-mkdocs
# upgrade pip
pip3 install --upgrade pip setuptools==65.7.0
# install dependencies quietly
pip3 install -r requirements.txt &> /dev/null && echo "Dependencies installed" || echo "Error while installing dependencies"
- name: Build mkdocs
run: |
cd tanssi-mkdocs
# change destination build folder in mkdocs YAML to local site/
sed -i 's/site_dir.*/site_dir: site/' mkdocs.yml
# build project
python3 -m mkdocs build