Skip to content

Commit 9aefad7

Browse files
authored
Merge pull request #28 from JuliaPhysics/docs-update
Update documentation (housekeeping)
2 parents 493b666 + af0e216 commit 9aefad7

File tree

10 files changed

+261
-209
lines changed

10 files changed

+261
-209
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Doc Preview Cleanup
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
# Ensure that only one "Doc Preview Cleanup" workflow is force pushing at a time
8+
concurrency:
9+
group: doc-preview-cleanup
10+
cancel-in-progress: false
11+
12+
jobs:
13+
doc-preview-cleanup:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
steps:
18+
- name: Checkout gh-pages branch
19+
uses: actions/checkout@v4
20+
with:
21+
ref: gh-pages
22+
- name: Delete preview and history + push changes
23+
run: |
24+
if [ -d "${preview_dir}" ]; then
25+
git config user.name "Documenter.jl"
26+
git config user.email "[email protected]"
27+
git rm -rf "${preview_dir}"
28+
git commit -m "delete preview"
29+
git branch gh-pages-new "$(echo "delete history" | git commit-tree "HEAD^{tree}")"
30+
git push --force origin gh-pages-new:gh-pages
31+
fi
32+
env:
33+
preview_dir: previews/PR${{ github.event.number }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<a href="docs/src/assets/RadonKA_logo.png"><img src="docs/logo/logo.png" width="150"></a>
1+
<a href="docs/src/assets/RadonKA_logo.png"><img src="docs/src/assets/logo.png" width="150"></a>
22

33
# WaveOpticsPropagation.jl
44

docs/Project.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
WaveOpticsPropagation = "c4c7a1f9-3adc-4a73-843a-d378b6c86436"
4+
5+
[compat]
6+
Documenter = "1"
7+
8+
[sources]
9+
WaveOpticsPropagation = {path = ".."}

0 commit comments

Comments
 (0)