From 280ca851ee15db896a07082fb03468c195436b29 Mon Sep 17 00:00:00 2001 From: Ben Cardoen Date: Mon, 28 Oct 2024 15:08:57 +0000 Subject: [PATCH] Simplify workflow --- .github/workflows/documentation.yml | 2 +- docs/make.jl | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 4b10e6e..4ec9556 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -22,7 +22,7 @@ jobs: version: '1' - uses: julia-actions/cache@v2 - name: Install dependencies - run: julia --project=docs/ -e 'using Pkg; Pkg.add(url="https://github.com/bencardoen/ERGO.jl.git"); Pkg.add(url="https://github.com/bencardoen/SubPrecisionContactDetection.jl.git"); Pkg.activate(); push!(LOAD_PATH,pwd());Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' + run: julia --project=docs/ -e 'using Pkg; Pkg.add("Documenter")' - name: Build and deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token diff --git a/docs/make.jl b/docs/make.jl index 1fd68b4..f66cd06 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -1,4 +1,3 @@ -using Documenter, SubPrecisionContactDetection +using Documenter push!(LOAD_PATH,"../src/") -makedocs(sitename="SubPrecisionContactDetection Documentation", pages=["API" => "functions.md", -"Tutorial" => "tutorial.md", "Parameter selection" => "parameters.md", "Cluster Usage" => "clustercomputing.md", "Installation" => "installation.md"]) +makedocs(sitename="SubPrecisionContactDetection Documentation", pages=[ "Tutorial" => "tutorial.md", "Parameter selection" => "parameters.md", "Cluster Usage" => "clustercomputing.md", "Installation" => "installation.md"])