4

I created some documentation using Sphinx on my local drive. I then initialised a git repository on a network drive, and fetched my work from my local drive so that I can share my documentation with colleagues.

However, the HTML pages on the network drive look very different (in a bad way). The buttons and icons look awful or are missing.

Any idea why this might be? Is it to do with git? sphinx?

Update I checked the console and compared the output for both the local and network files. On the network file, there is a message that says

HTML1203: ****.local has been configured to run in Compatibility View through Group Policy.

There is also another message that says

The attached page targets document mode 7. Some console APIs and features may not be available.

Could either of those be causing the issue?

Update 2 The css files that Sphinx generates is located in /css/theme.css

Below is a screenshot from the network tab of the developer tools: enter image description here

bluprince13
  • 4,607
  • 12
  • 44
  • 91
  • Have you looked in your browser's dev panel? I'd guess the CSS isn't loading. What is actually *serving* the files? – jonrsharpe Mar 27 '17 at 09:38
  • @jonrsharpe How would I know if my CSS isn't loading? The files are all just sat in a location on the LAN. So, I open it up by going to the network location for the repository and navigating to the index.html file. – bluprince13 Apr 02 '17 at 09:32
  • Look up the instructions for opening the developer panel in whatever browser you're using. Go to the Network tab. Reload the page. Read the results and any messages in the console. You will probably need an actual web server to provide the CSS files, not just place them in the same directory. – jonrsharpe Apr 02 '17 at 09:34
  • Neither of those tells us whether css files are being loaded. Do you even have external stylesheets? What about the data in the network tab, as I asked for; any 4xx or 5xx responses? – jonrsharpe Apr 04 '17 at 09:33
  • @jonrsharpe there are no 4xx or 5xx responses. I've updated the question with a screenshot of the network tab. – bluprince13 Apr 05 '17 at 16:47

2 Answers2

1

I'm not sure of the technicalities, but the problem occurred because I was using an UNC path to a NAS drive.

The solution was to either map the network drive and open the HTML file from the mapped drive or to use the command explorer index.html to open the file.

bluprince13
  • 4,607
  • 12
  • 44
  • 91