readthedocs / website

The Read the Docs community website
15 stars 5 forks source link

Don't use relative URLs when deploying #263

Closed stsewd closed 4 months ago

stsewd commented 4 months ago

See https://docs.getpelican.com/en/latest/settings.html?highlight=RELATIVE_URLS#url-settings.

This should be used when developing locally only.

Closes https://github.com/readthedocs/website/issues/226


📚 Documentation preview 📚: https://read-the-docs-website--263.com.readthedocs.build/

stsewd commented 4 months ago

If it isn't already, we should document this configuration, as I'm sure it's common.

Do you mean in this repo? Or on RTD docs?

agjohnson commented 4 months ago

Oh sorry, yeah in our user docs. Unfortunately, we only expose this in our docs in the build commands page, so this configuration is a bit out of scope for that page:

https://docs.readthedocs.io/en/stable/build-customization.html#pelican

I think we were trying to use another repository to show some examples though, maybe there instead?

@humitos where were we documenting examples for build tools?

humitos commented 4 months ago

@humitos where were we documenting examples for build tools?

Not sure, but you may refer to https://github.com/readthedocs-examples/ organization. It currently has Sphinx, MkDocs and Jupyter Book examples. A contributor added Antora at (https://github.com/man-chi/example-antora-basic/) that we should migrate into our organization somehow to gain control.

That organization is a good place to create a Pelican example if we want to document this somewhere.