Skip to content

Commit

Permalink
Use docs target rather than separate Project.toml inside docs/
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
jakewilliami committed Nov 5, 2024
1 parent c58e8ba commit 5658be7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,9 @@ jobs:
git config --global user.email email
git config --global github.user username
- run: |
julia --project=docs -e '
julia --project=. -e '
using Pkg;
Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate();'
- run: julia --project=docs docs/make.jl
- run: julia --project=. docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ julia = "1"

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

[targets]
test = ["Test"]
docs = ["Documenter"]
10 changes: 0 additions & 10 deletions docs/Project.toml

This file was deleted.

3 changes: 1 addition & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
include(joinpath(dirname(@__DIR__), "src", "CodingTheory.jl"))
using Documenter, .CodingTheory
using CodingTheory, Documenter

Documenter.makedocs(
clean = true,
Expand Down

0 comments on commit 5658be7

Please sign in to comment.