News for hackers. Stuff that matters.
Re:Apple's DocC is excellent, but unusable for open source p... by tombl on Wednesday June 30, 2021 @08:11AM (#27687515)
It's a hacky workaround, but by naming your HTML file 404.html it functions just as a regular SPA supporting webserver would. It does send a 404 where a normal webserver would send a 200, but it doesn't cause any problems from my testing.
Re:Apple's DocC is excellent, but unusable for open source p... by lf-non on Wednesday June 30, 2021 @08:58AM (#27687925)
Oh wow. Don't do this.

I have noticed multiple times that when I navigate to some documentation site brave shows this bar that page does not exist and whether you want to access it on archive.org. But the site below is perfectly functional.

I always thought that this was some weird server misconfiguration causing 404 even if content is available ... Never guessed it was a hack to enable SPA routing.