Skip to content

Commit

Permalink
CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasibalic committed Dec 29, 2023
1 parent 6929420 commit e56927c
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 103 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: ci

on:
push:
branches:
- master
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV


- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: |
pip install mkdocs-material
pip install poetry
poetry install
- run: poetry run mkdocs gh-deploy --force
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ Standalone interactive text can be seen
Purple elements can be changed by dragging or clicking, updating
calculated values given in green.

<iframe src="../interactive_text.html" width="100%" height="200"></iframe>
<iframe src="./interactive_text.html" width="100%" height="200"></iframe>

### Interactive figure


Standalone interactive figure can be seen [here](interactive_figure.html)
or as a part of the page bellow.

<iframe src="../interactive_figure.html" width="100%" height="780"></iframe>
<iframe src="./interactive_figure.html" width="100%" height="780"></iframe>

Try creating your own interactive texts and figures for science teaching
and public communication. You can start by using templates from
Expand All @@ -76,7 +76,7 @@ Interactive-Publishing repository</a>.</p>

### Interactive timeline

[Click to see example](../timeline_electromagnetism.html)
[Click to see example](./timeline_electromagnetism.html)

## Domain packages

Expand Down
144 changes: 45 additions & 99 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e56927c

Please sign in to comment.