Skip to content

Always use relative paths in Haddock documentation #1465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
liyang opened this issue Sep 2, 2013 · 2 comments
Closed

Always use relative paths in Haddock documentation #1465

liyang opened this issue Sep 2, 2013 · 2 comments
Milestone

Comments

@liyang
Copy link
Contributor

liyang commented Sep 2, 2013

Is it not possible to always use relative instead of absolute file:// URLs? (Or at least make a best-effort for Windows.) This was mentioned in #509, #1064, #1406, and committed in 544d737 to cater for Windows platforms where C:\… is mistakenly interpreted as a protocol by some browsers.

As things currently stand, I cannot serve up my main Haddocks index for use when I'm ssh/VPNing into my dev machine from home. (Nor for other people in the office to use, for that matter.)

There's also a seconday issue in that Chrome forbids cookies for file:// URLs, such that haddock-util.js can't keep track of which sections were collapsed: untested workaround; related Chrome issue. Perhaps HTML5 local storage is the way forward there. So far I've been using a local HTTP server even when browsing on the machine in question.

@dcoutts
Copy link
Contributor

dcoutts commented Dec 2, 2013

In general this would rely on using relative package installs, which we do not yet have. Supporting relocatable installs would of course be a good thing.

@ttuegel ttuegel added this to the _|_ milestone Apr 23, 2015
@ttuegel
Copy link
Member

ttuegel commented Apr 23, 2015

See #462.

@ttuegel ttuegel closed this as completed Apr 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants