Update of bug #4702 (project muse-el): Summary: links with directories are not handled properly in [x]html generation => links with directories are not handled properly
_______________________________________________________ Follow-up Comment #6: Following the pattern in examples/mwolson/muse-init.el for the "Blog" project, I am able to create a project with subdirectories. When publishing to html, subdirectories are created in the target path corresponding to the subdirectories in the project, and muse files are rendered into html in the expected locations. This part is working as I expect. But how to I refer to a file in a different subdirectory in my project? Suppose in my top directory I have index.muse. I have a subdirectory, CV, and in that I have CVIndex.muse. Now in index.muse I can refer to [[CVIndex]]; muse mode indicates that is a Wiki link, and I can indeed follow that to CV/CVIndex.muse. But when I publish, my top level index.html points to CVIndex.html, not to CV/CVIndex.html (where it was really rendered). So suppose I change the link to [[CV/CVIndex]]. Now muse-mode indicates it is a dead Wiki link; I cannot follow it. When published, the top index.html will have CV/CVIndex -- still not something I can follow. Try again: instead of CV/CVIndex.muse, we call it CV/index.muse (which is actually close to what ultimately desire in this particular case). If I set the link to [[CV]], it is marked as a live Wiki link. But clicking on cause a new CV.muse file to be created and opened. Publishing, the href is to CV.html. Well, change the link to [[CV/]]. Now when I follow it, it opens the source subdirectory CV in dired mode -- OK, I guess, but not really what we want. Let's publish the project: the top level index.html now has an href to CV/, which will work if a web server is serving the target, but not if I want to browse from local disk. So what would be the correct way to link to a Wiki page in a different subdirectory, and have it publish correctly? I'd really like to be able to include paths somehow, so multiple subdirectories each had index.muse files. It would also be great if it were possible to specify a path relative to the top of a project -- that would make it possible, for instance, to have a directory structure of "resources" such as style sheets, images, pdf's, etc. But so much for my own ideas -- how is this supposed to work at present? _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?func=detailitem&item_id=4702> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ emacs-wiki-discuss mailing list emacs-wiki-discuss@nongnu.org http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss