Skip to content

Commit a810288

Browse files
committed
Add [sources] in docs/Project.toml and update docs CI
- Allows us to remove `]dev` calls and `push!()`-ing to `LOAD_PATH` - Even though the compat for the base package is julia 1.6, the docs don't have to be: use current LTS for building docs CI - Simplifies building docs locally because we can just ']instantiate'
1 parent e5b26c1 commit a810288

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.github/workflows/BuildDocs.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@ jobs:
99
- uses: actions/checkout@v5
1010
- uses: julia-actions/setup-julia@v2
1111
with:
12-
version: '1.6'
12+
version: 'lts'
1313
- name: Install dependencies
1414
shell: julia --project=docs/ --color=yes {0}
15-
run: |
16-
using Pkg
17-
Pkg.develop(PackageSpec(path=pwd()))
18-
Pkg.instantiate()
15+
run: using Pkg; Pkg.instantiate()
1916
- name: Build Docs
2017
run: julia --project=docs/ --color=yes docs/make.jl
2118
- name: Deploy Documentation

docs/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ TermInterface = "8ea1fca8-c5ef-4a55-8b96-4e9afe9c9a3c"
66

77
[compat]
88
Documenter = "1"
9+
10+
[sources]
11+
SymEngine = {path = ".."}

docs/make.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
push!(LOAD_PATH,"../src/")
2-
31
using Documenter, SymEngine
42

53
makedocs(sitename="Symengine Julia API Docs")

0 commit comments

Comments
 (0)