In the trac wiki, I can enter a name like wiki/page/subpage and this
page/subpage will be created. Is it the case that I cannot import pages
this way via the trac-admin command? I know how to import pages in a
directory, and that works fine. But it seems that sub-directories are
not imported. Is this correct/expected behavior? I have some hundreds of
pages that will be generated automatically and [[Include]] in various
wiki pages. I want to put them in a make like page/subpage.
Have I missed the obvious?
This functionality isn't built in as far as I know. But I recall a
while back that we implemented some version of this. I should go find
that and maybe upstream the patch...
> This functionality isn't built in as far as I know. But I recall a
> while back that we implemented some version of this. I should go find
> that and maybe upstream the patch...
That would be great. It would help my mix of human-maintained docs and
computer generated docs in the wiki.
--
Roger Oberholtzer
OPQ Systems / Ramböll RST
Ramböll Sverige AB
Kapellgränd 7
P.O. Box 4205
SE-102 65 Stockholm, Sweden
Office: Int +46 8-615 60 20
Mobile: Int +46 70-815 1696
>
> How are you generating docs automaticly?
These are for docs that are intended to be user docs. Various programs
can generate their options, build info (things like svn info) and the
like. A script generates all the pages. I use trac-admin to read them
all in. These are often [[Include]] in user-maintained docs that
expand on the information. One nice thing about importing wiki pages
from a directory into trac is that trac tells which have changed.
Which is where [[RecentChnages]] fits in. We just look at the changes
and it reminds us where to update the docs. The thing is, there are
hundreds of these pages. So, a hierarchy helps keep order, and makes
naming/grouping much easier. Thus my question.
For program docs, we have been fiddling with Natural Docs. It does a
pretty good job at generating docs and cross references. We have not
taken the plunge yet. I do not know if these docs would need to be in
a trac wiki, as Natural Docs makes full systems of pages. Of course,
if it made trac wiki pages, we would have a nice consistent look and
feel.
--
Roger Oberholtzer
I would like to persue this as a possible future feature. Erik, did you
find a patch? Or should it be added as a ticket on the trac site? I have
asked here first so I do not add a ticket for something that is only my
own misunderstanding.
In fact, I do not need the wiki page import to follow sub-directories
recursively. I could also be happy with importing a directory and
telling that the whole directory should go in some 'subdirectory' in the
trac wiki. I'm flexible.
--
Roger Oberholtzer
Sounds like it would be worth making a ticket for, if there isn't
already one (there may be, but not that I know of). I'll see if I
already have some of this functionality implemented somewhere.