Open isidore opened 10 years ago
Can you describe your problem a little more? The demo site is running in a sub directory (/jr/
) so I know it does work.
I think what @isidore meant is that the file structure needs to be:
./markdownfile1.html
./markdownfile2.html
./js/jr.js
and it doesn't work if it's:
./markdownfile1.html
./markdownfile2.html
./some/deeper/dir/js/jr.js
...even if you adjust the <script src="jr.js"></script>
call appropriately, to be <script src="some/deeper/dir/js/jr.js"></script>
If that's not what was meant, let me know and I'll open a new issue.
You should see in your browser the error is that Jr. can't load showdown unless you edit jr.js with your correct path.
So, if you have ./some/deeper/dir/js/jr.js
then you need to edit js/showdown.js
to /some/deeper/dir/js/showdown.js
Also, use absolute paths like /some....
not ./some
If you look at the console in Firefox/Chrome/IE it will tell you what the errors are.
Jr works fine with customed hierarchy. You have to modify the necessary paths. I did it step by step to get a directory for images, articles, etc...
If I have a site main with subdirectory main/jr I can't place files in main and call jr/js/jr.js
related: I can't make a cross-site call to the jr.js library.