I want to split up my Wiki into multiple projects. How about the following:
All my projects like OrionNebula, ProjectsCloudy, etc (as an aside, I really need to develop a more consistent naming scheme for these files).
All computing stuff - this really needs a snappier title
Not much here, I guess. Maybe my photo albums.
My planner pages, obviously. Probably best to keep these separate from the rest even though there may be overlap with them.
A blog maybe. This should use journal.el
After I have done this, I will want to put redirects in for all the old pages that might have external links to them.
This is the example from emacs-wiki.el
;; (setq emacs-wiki-projects ;; '(("WebWiki" . ;; ((emacs-wiki-directories . ("~/proj/wiki/webpage")) ;; (emacs-wiki-project-server-prefix . "../wiki/") ;; (emacs-wiki-publishing-directory ;; . "~/personal-site/site/wiki"))) ;; ("ProjectsWiki" . ;; ((emacs-wiki-directories . ("~/proj/wiki/projects")) ;; (emacs-wiki-project-server-prefix . "../projects/") ;; (emacs-wiki-publishing-directory ;; . "~/personal-site/site/projects"))))) ;; ;; Whatever is assigned to the `emacs-wiki-projects' variable is ;; respected by all Emacs Wiki projects like Planner and Journal. ;; Multiple Planner and Journal projects are not currently supported ;; "natively", but support could easily be hacked up for them. <example> One question is - how do I move the pages. Can I just copy the files, or do I need to do something more elaborate? I suppose I would need to correct all references between one sub-wiki and another. ** Update 10 May 2005 OK, I finally took the plunge and did it. It seems to have worked. I have set up the projects in [[file:///home/wjh/emacs/wjh-emacs-wiki-config.el][my config file]] as follows: <example> ;; helper function based on idea from Michael Allan Dorkman ;; http://www.emacswiki.org/cgi-bin/wiki/EmacsWikiMode (defun subwiki (project) "Set up default values for variables of the PROJECT sub-wiki." (list project (list 'emacs-wiki-directories (concat "~/Wiki/" project)) (cons 'emacs-wiki-home-page "WikiIndex.html") (cons 'emacs-wiki-publishing-directory (concat "~/WebWiki/" project)) (cons 'emacs-wiki-project-server-prefix (concat "../" project "/")))) ;; I use add-to-list just for a laugh (defun add-subwiki (project) "Add PROJECT to `emacs-wiki-projects' with default values for variables." (add-to-list 'emacs-wiki-projects (subwiki project))) (add-subwiki "Intro") (add-subwiki "Science") (add-subwiki "Compu") (add-subwiki "Personal") (add-subwiki "Journal") ;; Planner has its own mechanism for changing things (setq planner-publishing-directory "~/WebWiki/Plans") (planner-update-wiki-project)
I moved my original ~/Wiki/
and ~/WebWiki/
directories to
WikiBackup/
and then made the sub-directories in Wiki/
and copied
each of the original wiki files to one of the new sub-wiki
directories. Note that the planner stuff is in the default directory
of ~/Plans/
.
This works - at least I tested it for the Compu sub-wiki. However, I still have things to do:
wjh-wiki.css
in each subdir of
~/WebWiki/
. Alternatively, I could change the header to look one
directory up. If I go with the first option then I can have a
different style for each sub-wiki. I can always use symbolic links
if I want them to be the same.
~/WebWiki/
also need to be
copied over. E.g., pdf files, etc.