aimacode / aima-javascript

Javascript visualization of algorithms from Russell And Norvig's "Artificial Intelligence - A Modern Approach"
http://aimacode.github.io/aima-javascript/
MIT License
538 stars 216 forks source link

Chapter Navigation #135

Closed Dragneel7 closed 5 years ago

Dragneel7 commented 6 years ago

When we click on a link either in header or index page it leads the reader to the specified folder. Would it not be more reasonable to navigate the reader directly to index.html in that respective folder. deepinscreenshot_20171227094657

redblobgames commented 6 years ago

Because browsers do not allow some features over file:/// URLs, many of the diagrams do not work with file:/// URLs anyway. So it may not help much to change this. You will need to run a local webserver (see the wiki for a python command to start the local webserver). The file:/// URLs are for debugging only, and when debugging it is sometimes useful to be able to see the folder contents. But I do not have a strong opinion on this; it is probably best for the next GSoC student/mentor to decide which way works best for them.