Update readme, separated website source #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Makefile CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
id-token: write | |
contents: read | |
pages: write | |
jobs: | |
build: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install python3-pip python3-sphinx python3-stemmer qttranslations5-l10n pandoc | |
pip3 install -U sphinx-mathjax-offline sphinx_intl | |
- name: Run build user doc | |
run: | | |
cd doc_uni | |
./build_doc.sh | |
- name: website.md to html | |
run: | | |
mkdir -p website | |
pandoc -s --metadata title="Comp3D" -f gfm data/website.md -H data/website_header.html -o website/index.html -c data/comp3d_website.css && cp -R data/ website | |
cp -R doc_uni/en/html website/doc | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'website' | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} |