Skip to content

Commit

Permalink
Merge pull request #22 from DanielVandH/for_docs
Browse files Browse the repository at this point in the history
Documentation moved to gh-pages
  • Loading branch information
DanielVandH authored Dec 21, 2022
2 parents cfa302c + f68b8ad commit 2ea8d54
Show file tree
Hide file tree
Showing 25 changed files with 2,463 additions and 983 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/DocCleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Doc Preview Cleanup

on:
pull_request:
types: [closed]

jobs:
doc-preview-cleanup:
runs-on: ubuntu-latest
steps:
- name: Checkout gh-pages branch
uses: actions/checkout@v2
with:
ref: gh-pages
- name: Delete preview and history + push changes
run: |
if [ -d "previews/PR$PRNUM" ]; then
git config user.name "Documenter.jl"
git config user.email "documenter@juliadocs.github.io"
git rm -rf "previews/PR$PRNUM"
git commit -m "delete preview"
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree})
git push --force origin gh-pages-new:gh-pages
fi
env:
PRNUM: ${{ github.event.number }}
19 changes: 19 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Documentationon:
push:
branches:
- main
tags: '*'
pull_request:jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1.8'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
run: julia --project=docs/ docs/make.jl
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ test/meshgeometry.msh
meshgeometry.geo
meshgeometry.msh
dev/Manifest.toml
docs/build/
docs/site/
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "FiniteVolumeMethod"
uuid = "d4f04ab7-4f65-4d72-8a28-7087bc7f46f4"
authors = ["DanielVandH <danj.vandenheuvel@gmail.com> and contributors"]
version = "0.3.3"
version = "0.3.4"

[deps]
ChunkSplitters = "ae650224-84b6-46f8-82ea-d812ca08434e"
Expand Down
915 changes: 4 additions & 911 deletions README.md

Large diffs are not rendered by default.

Loading

0 comments on commit 2ea8d54

Please sign in to comment.