scalapuzzlers / scalapuzzlers.github.com

Github Pages behind scalapuzzlers.com
www.scalapuzzlers.com
161 stars 53 forks source link

Path change in HTML files from absolute to relative #20

Closed kiritsuku closed 12 years ago

kiritsuku commented 12 years ago

It would be nice if it is possible to test new puzzles locally with the layout of the website to check if all is ok. Currently this is not possible because of a preceding / in the paths hardcoded in the HTML files. Therefore my browser recognizes this as an absolute path and not as an relative one.

May it be possible to change that?

kiritsuku commented 12 years ago

I noticed, that it will not be enough to change the paths. The entries in the index file are hardcoded thus new puzzles do not occur. If this list is created dynamically with the files stored in puzzlers/ one must not add an temporary entry explicitly.

demobox commented 12 years ago

It would be nice if it is possible to test new puzzles locally with
the layout of the website to check if all is ok. Currently this is
not possible because of a preceding / in the paths hardcoded in
the HTML files. Therefore my browser recognizes this as an absolute
path and not as an relative one.

You're already the second person to suggest this, Simon - thanks ;-)
It's on the TODO list...

ap

Andrew Phillips Scala Puzzlers

nermin commented 12 years ago

All paths are relative now. The list of puzzlers cannot be populated dynamically as javascript doesn't allow access to the file system. And it is all HTML files (no server side scripting).

demobox commented 12 years ago

Cool, thanks!