Implement arbitrary degree Lagrange elements (#116) #45
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: ℹ️ Deploy docs | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
build-and-deploy-docs: | |
name: Build and deploy docs | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: "stable" | |
components: rustfmt | |
- name: Set up MPI | |
uses: mpi4py/setup-mpi@v1 | |
with: | |
mpi: "mpich" | |
- uses: actions/checkout@v3 | |
- name: Build docs | |
run: cargo doc --no-deps | |
- name: make index.html | |
run: | | |
echo "<html><body>" | |
echo "<h1>Bempp-rs documentation</h1>" | |
echo "<ul>" >> target/doc/index.html | |
for f in target/doc/bempp_* | |
do | |
if [ -d "$f" ] | |
then | |
echo "<li><a href='${f##*/}'>${f##*/}</a></li>" >> target/doc/index.html | |
fi | |
done | |
echo "</ul></body></html>" >> target/doc/index.html | |
- name: Set file permissions | |
run: | | |
rm target/doc/.lock | |
chmod -c -R +rX target/doc | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Upload artifact for docs | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: 'target/doc' | |
- name: Deploy docs to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |