Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Docs
on:
workflow_dispatch:
push:
paths: # rebuild the docs when the version changes or the docs change
- docs/*
- Project.toml
pull_request: # run when pull requests are made
paths:
- docs/*
- Project.toml
jobs:
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1.12'
- name: Install dependencies
run: |
sudo apt install libxt6 libxrender1 libxext6 libqt5widgets5
- name: Instantiate
env:
PYTHON: ""
run: |
julia --project=docs -e '
using Pkg
Pkg.instantiate()
Pkg.resolve()
Pkg.develop(PackageSpec(path=pwd()))'
- name: Build and deploy
env:
PYTHON: ""
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: julia --project=docs docs/make.jl
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
3 changes: 1 addition & 2 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
PolyHarmonicTrigTransforms = "c853eca7-4467-4dac-871a-88cef1644acc"

[compat]
Documenter = "1.17"
PolyHarmonicTrigTransforms = "1.0"
Documenter = "1.17"
5 changes: 4 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ using PolyHarmonicTrigTransforms

makedocs(
modules = [PolyHarmonicTrigTransforms],
repo=Documenter.Remotes.GitHub("UCD4IDS", "PolyHarmonicTrigTransforms.jl"),
sitename = "PolyHarmonicTrigTransforms.jl",
pages = [
"Home" => "index.md",
Expand All @@ -15,5 +16,7 @@ makedocs(
)

deploydocs(
repo = "github.com/UCD4IDS/PolyHarmonicTrigTransforms.jl.git"
repo = "github.com/UCD4IDS/PolyHarmonicTrigTransforms.jl.git",
devbranch="master",
push_preview=true
)
Loading