rotemplate icon indicating copy to clipboard operation
rotemplate copied to clipboard

Customize 404 page

Open jeroen opened this issue 6 years ago • 5 comments

We can add a 404.md somewhere to get a better 404.html page, similar to: https://docs.ropensci.org/doesnotexist

Currently we get something standard like: https://docs.ropensci.org/antiword/doesnotexist

jeroen avatar Aug 30 '19 12:08 jeroen

But we'd still want the pkgdown 404 of a package to have the navbar etc. of that package?

pkgdown uses .github/404.md, if present, for the content of the 404.

maelle avatar Oct 24 '19 11:10 maelle

Would the 404.md be injected if it doesn't exist?

# Oh no! It's a 404!

The page you are looking for cannot be found.

![rOpenSci friendly bot](https://docs.ropensci.org/ropenscibot.png)

maelle avatar Oct 24 '19 11:10 maelle

I.e. I don't think it can happen via the template package?

maelle avatar Oct 24 '19 11:10 maelle

I thought this was something that could be templated as well. Maybe it's not.

jeroen avatar Oct 24 '19 12:10 jeroen

@jeroen well it could still be injected when building the package if .github/404.md does not exist?

maelle avatar Sep 25 '20 08:09 maelle

I find the default ok https://docs.ropensci.org/mctq/bla

maelle avatar Aug 12 '24 07:08 maelle