You need to locally host your site in a webserver and then navigate through your webserver to the page.  Browsers won’t load some files from file:// URIs.  If you open your host in the same directory, then you would need to navigate to http://localhost/_build/html/index.html.

 

Kevin

 

 

From: Shahzeb Siddiqui
Sent: Thursday, October 21, 2021 11:09 PM
To: sphinx-users
Subject: [sphinx-users] sphinx docs not rendering properly locally but works in readthedocs

 

Hello,

 

I have a sphinx build for buildtest project https://github.com/buildtesters/buildtest which is not rendering properly when i build the docs however they work in readthedocs which are done automatically through PR preview you can see for instance this PR https://github.com/buildtesters/buildtest/pull/917 has this readthedocs build https://buildtest--917.org.readthedocs.build/en/917/.

 

On my local machine i am just running 

 

make html

open _build/html/index.html

 

I would appreciate if anyone knows how to work around this issue. I can confirm there are no warnings in the build. 

 

I have tried recreating my python environment with all the deps to ensure this is not some bug in a library. I was going to try a different machine to see if this build works on other machine. I tried building a different project that is hosted on readthedocs and I can confirm the issue is specific to this project.

 

Regards,

Shahzeb

--
You received this message because you are subscribed to the Google Groups "sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/ec30c418-943c-4abe-bd6a-b69fd5ee60f0n%40googlegroups.com.

 

--
You received this message because you are subscribed to the Google Groups "sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/D6809556-4BDA-4C90-9004-B8D50A66676F%40hxcore.ol.

Reply via email to