emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] Using subdirectories in Muse projects


From: Lindsay Todd
Subject: [emacs-wiki-discuss] Using subdirectories in Muse projects
Date: Fri, 20 Jan 2006 11:37:52 -0500
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

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?

/Lindsay

-- 

The views, opinions, and judgments expressed in this message are
solely those of the author. The message contents have not been
reviewed or approved by Rensselaer.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]