readthedocs/actions

Incorrect link posted, maybe because my repo has a custom domain

simonw opened this issue · 4 comments

I just tried this out for the first time here:

The preview link it added didn't work, maybe because I have a custom domain setup?

It linked to: https://readthedocs-preview--460.org.readthedocs.build/en/460/ - which 404s

Here's the correct link: https://sqlite-utils--460.org.readthedocs.build/en/460/

My docs are hosted at https://sqlite-utils.datasette.io/ using a custom subdomain setup like this: https://til.simonwillison.net/readthedocs/custom-subdomain

Hi @simonw! (I'm from the phone). It seems that you didn't change the placeholder for you project's slug. It's using "readthedocs-preview", which is the one from the example.

You have to change that with yours.

Let me know if that helps.

Yes, that was the problem! This one worked fine - thanks very much, closing this issue:

Thanks @simonw for testing this GH Action! Happy to help with this. Feel free to open any other issue if you find something that's not working as you expect 👍🏼