diff --git a/.github/workflows/UnitTests.yml b/.github/workflows/UnitTests.yml index c0322d12..96da9bbc 100644 --- a/.github/workflows/UnitTests.yml +++ b/.github/workflows/UnitTests.yml @@ -42,3 +42,20 @@ jobs: name: codecov-umbrella fail_ci_if_error: false token: ${{ secrets.CODECOV_TOKEN }} + docs: + name: Documentation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@latest + with: + version: '1' + - run: | + julia --project=docs -e ' + using Pkg + Pkg.develop(PackageSpec(path=pwd())) + Pkg.instantiate()' + - run: julia --project=docs docs/make.jl + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} diff --git a/docs/Project.toml b/docs/Project.toml new file mode 100644 index 00000000..0bd00099 --- /dev/null +++ b/docs/Project.toml @@ -0,0 +1,7 @@ +[deps] +Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" +Automa = "67c07d97-cdcb-5c2c-af73-a7f9c32a568b" + +[compat] +Documenter = "0.24 - 0.26" +Automa = "0.9" \ No newline at end of file diff --git a/docs/make.jl b/docs/make.jl index 5bee3e48..ce56e9d6 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -5,19 +5,18 @@ using Automa # run(`julia preconditions.jl`) makedocs( - format = :html, sitename = "Automa.jl", modules = [Automa], pages = [ "Home" => "index.md", "References" => "references.md" - ] + ], + format = Documenter.HTML( + prettyurls = get(ENV, "CI", nothing) == "true") ) deploydocs( repo = "github.com/BioJulia/Automa.jl.git", - julia = "0.6", target = "build", - deps = nothing, - make = nothing + push_preview = true, )