I am working on Muscade.jl (work in progress!), and I have a first incomplete documentation I wish to deploy. Everything works fine… except I get a 404
. Here is the dump:
My repo structure includes
Muscade
docs
make.jl
Project.toml
src
index.md
...
build
index.html
...
README.md
src
My make.jl
is
using Documenter, Muscade
repo = normpath((@__DIR__)*"/..")
push!(LOAD_PATH,joinpath(repo,"src"))
cp(joinpath(repo,"LICENSE.md"),joinpath(repo,"docs/src/LICENSE.md"),
force=true)
makedocs(sitename ="Muscade.jl",
format = Documenter.HTML(prettyurls = false,
sidebar_sitename = false),
pages = ["index.md",
...],
source = "src",
build = "build"
)
deploydocs(repo = "github.com/SINTEF/Muscade.jl.git",target="build",devbranch="philippe")
Muscade/.github/workflows/documentation.yml
contains
name: Documentation
on:
push:
branches:
- main
tags: '*'
pull_request:
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: '1.8'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
run: julia --project=docs/ docs/make.jl
In GITHUB | settings | pages, I have specified:
“deploy from a branch”, “main” “/root” and clicked save.
Building the doc locally works, I can navigate my doc.
I tag and commit a release, create an issue with “@juliaregistrator register”. The release goes well.
I point my browser to
https://sintef.github.io/muscade.jl/dev
https://sintef.github.io/muscade.jl/stable
https://sintef.github.io/Muscade.jl/
In the two first cases I get 404
, in the later, I get to read my README.md
file.
It’s difficult to move on without any feedback on what the problem is. Any suggestions?