Skip to content

Commit 1cf9ffe

Browse files
committed
docs: move to manual docs
1 parent f325bbc commit 1cf9ffe

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

.github/workflows/CI.yml

+5-15
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,10 @@ jobs:
6666
- uses: julia-actions/setup-julia@v2
6767
with:
6868
version: '1'
69-
- name: Configure doc environment
70-
run: |
71-
julia --project=docs/ -e '
72-
using Pkg
73-
Pkg.develop(PackageSpec(path=pwd()))
74-
Pkg.instantiate()'
75-
- uses: julia-actions/julia-buildpkg@v1
76-
- uses: julia-actions/julia-docdeploy@v1
69+
- name: Install dependencies
70+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
71+
- name: Build and deploy
7772
env:
78-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
7974
DOCUMENTER_KEY_CAM: ${{ secrets.DAMTP_DEPLOY_KEY }}
80-
- run: |
81-
julia --project=docs -e '
82-
using Documenter: DocMeta, doctest
83-
using DynamicQuantities
84-
DocMeta.setdocmeta!(DynamicQuantities, :DocTestSetup, :(using DynamicQuantities); recursive=true)
85-
doctest(DynamicQuantities)'
75+
run: julia --project=docs/ make.jl

docs/make.jl

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ using DynamicQuantities: constructorof, with_type_parameters, dimension_names
44
using Documenter
55

66
DocMeta.setdocmeta!(DynamicQuantities, :DocTestSetup, :(using DynamicQuantities); recursive=true)
7+
doctest(DynamicQuantities)
78

89
readme = open(dirname(@__FILE__) * "/../README.md") do io
910
read(io, String)

0 commit comments

Comments
 (0)