Skip to content

Commit 5658be7

Browse files
committed
Use docs target rather than separate Project.toml inside docs/
Inspired to do so while developing a justfile for Julia I have reason to believe this will work [1] [1]: https://stackoverflow.com/a/76790582/
1 parent c58e8ba commit 5658be7

File tree

4 files changed

+5
-15
lines changed

4 files changed

+5
-15
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ jobs:
6363
git config --global user.email email
6464
git config --global github.user username
6565
- run: |
66-
julia --project=docs -e '
66+
julia --project=. -e '
6767
using Pkg;
68-
Pkg.develop(PackageSpec(path=pwd()));
6968
Pkg.instantiate();'
70-
- run: julia --project=docs docs/make.jl
69+
- run: julia --project=. docs/make.jl
7170
env:
7271
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ julia = "1"
2222

2323
[extras]
2424
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
25+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
2526

2627
[targets]
2728
test = ["Test"]
29+
docs = ["Documenter"]

docs/Project.toml

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/make.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
include(joinpath(dirname(@__DIR__), "src", "CodingTheory.jl"))
2-
using Documenter, .CodingTheory
1+
using CodingTheory, Documenter
32

43
Documenter.makedocs(
54
clean = true,

0 commit comments

Comments
 (0)