Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

doesn't work from outside of the main directory #17

Open
isidore opened this issue May 26, 2014 · 4 comments
Open

doesn't work from outside of the main directory #17

isidore opened this issue May 26, 2014 · 4 comments

Comments

@isidore
Copy link

isidore commented May 26, 2014

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.

@xeoncross
Copy link
Owner

Can you describe your problem a little more? The demo site is running in a sub directory (/jr/) so I know it does work.

@bc-webmaster
Copy link

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.

@xeoncross
Copy link
Owner

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.

@Gusatomik
Copy link

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...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants