dokuwiki
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dokuwiki [2025/11/15 00:32] – [Google Doc to dokuwiki] jhagstrand | dokuwiki [2025/11/24 02:42] (current) – [Google Doc to dokuwiki] jhagstrand | ||
|---|---|---|---|
| Line 164: | Line 164: | ||
| * convert markdown to dokuwiki - https:// | * convert markdown to dokuwiki - https:// | ||
| * fixup in vim | * fixup in vim | ||
| - | * remove extra line endings in lists: | + | * remove extra line endings in lists (see vim regexp below) |
| * no more that one $ per line, or it triggers an equation | * no more that one $ per line, or it triggers an equation | ||
| * look for html entities like & | * look for html entities like & | ||
| Line 170: | Line 170: | ||
| %s/ | %s/ | ||
| + | %s/ | ||
| + | 2, | ||
| + | =====Upgrade dokuwiki===== | ||
| + | |||
| + | Locations: | ||
| + | * The user content resides in the curriculum project, which is in git. | ||
| + | * The wiki software resides in the samwiki project, which is NOT in git. | ||
| + | |||
| + | Therefore, samwiki can be upgraded or reinstalled anytime without affecting the user content. | ||
| + | |||
| + | Here is the procedure to upgrade samwiki/ | ||
| + | largely copied from https:// | ||
| + | |||
| + | # First, just to be safe, git commit all changes in the curriculum project. | ||
| + | | ||
| + | # move to the samwiki folder | ||
| + | cd < | ||
| + | | ||
| + | # backup the current installation (just to be safe) | ||
| + | tar zcpfv dokuwiki-backup.tar.gz dokuwiki | ||
| + | | ||
| + | # download and unzip the new release | ||
| + | wget http:// | ||
| + | tar zxvf dokuwiki-2025-05-14b.tgz | ||
| + | | ||
| + | # cp the new release on top of the current installation | ||
| + | # this overwrites the executables, | ||
| + | cp dokuwiki-2025-05-14b/ | ||
| + | |||
| + | |||
| + | ===Notes=== | ||
| + | In the samwiki folder: | ||
| + | * the dokuwiki subfolder contains the production installation | ||
| + | * the other files in samwiki are working files and can be deleted | ||
| + | |||
| + | Some notes about the cp command. | ||
| + | * After the cp command you may see messages like: "cp: omitting directory ‘dokuwiki-2025-05-14b/ | ||
| + | * Many of the source directories are empty. Like data/pages for instance. | ||
| + | * The source data/ | ||
| + | |||
| + | When to upgrade?\\ | ||
| + | When dokuwiki has issued a new release, you will see a message like this at the top of every page in the wiki. | ||
| + | Hotfix release available: 2025-05-14b " | ||
| + | |||
| + | A complete list of the dokuwiki releases can be found here: | ||
| + | https:// | ||
| + | |||
| + | Notice that a new release comes out every year, and lately each release has two hotfix releases: a, and b. | ||
| + | |||
| + | ===Upgrade history=== | ||
| + | * 2025 11 15 upgraded to the 2025-05-14b " | ||
| + | |||
| + | =====Reinstall dokuwiki===== | ||
| + | |||
| + | # The dokuwiki executable is installed in samwiki. | ||
| + | # The pages, media, and conf files are stored in curriculum. | ||
| + | # Therefore, | ||
| + | # 1. the wiki data is version-controlled by the github curriculum project, and | ||
| + | # 2. the dokuwiki executable can be reinstalled, | ||
| + | | ||
| + | # how to install into a2hosting | ||
| + | | ||
| + | # 1. unzip dokuwiki into ~/ | ||
| + | cd ~/ | ||
| + | wget https:// | ||
| + | tar -xzvf dokuwiki-stable.tgz | ||
| + | mv dokuwiki-2022-07-31a/ | ||
| + | | ||
| + | # 2. if necessary, upgrade PHP version at a2hosting CPanel " | ||
| + | | ||
| + | # 3. run the dokuwiki install | ||
| + | http:// | ||
| + | # Wiki Name: Curriculum | ||
| + | # Superuser: jhagstrand | ||
| + | # Real name: John Hagstrand | ||
| + | # E-Mail: john@hagstrand.com | ||
| + | # Password: know9 | ||
| + | # once again: know9 | ||
| + | # Initial ACL policy: Public Wiki | ||
| + | # Allow users to register themselves: no | ||
| + | # License: Public Domain | ||
| + | | ||
| + | # 4. Point wiki pages, media, and conf files back to curriculum. | ||
| + | cd ~/ | ||
| + | ln -s ~/ | ||
| + | ln -s ~/ | ||
| + | mv data/pages data/ | ||
| + | ln -s ~/ | ||
| + | mv data/media data/ | ||
| + | ln -s ~/ | ||
| + | | ||
| + | # 5. Point curriculum to samwiki | ||
| + | cd ~/ | ||
| + | ln -s ~/ | ||
| + | | ||
| + | # 6. delete the install.php file | ||
| + | cd ~/ | ||
| + | rm install.php | ||
| + | | ||
| + | # 7. Install the mathjax plugin for equations. | ||
| + | cd ~/ | ||
| + | wget https:// | ||
| + | # unzip and rename folders: lib/ | ||
| + | unzip master.zip | ||
| + | mv dokuwiki-plugin-mathjax-master mathjax | ||
| + | | ||
| + | #8. Install the yalist extension for definition lists. | ||
| + | # see https:// | ||
| + | # Admin -> Extension Manager | ||
| + | # Search Extension: yalist | ||
| + | # yalist Plugin by Mark Prins :: Install | ||
| + | # after install, modify the style.css file as follows | ||
| + | vi ~/ | ||
| + | # div.dokuwiki .dt { | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # div.dokuwiki dd { | ||
| + | # | ||
| + | | ||
| + | # 9. Test extensions on " | ||
| + | | ||
| + | #10. Upload logo.png in Media Manager. | ||
| + | | ||
| + | #11. In Administrator, | ||
| + | # @ALL none | ||
| + | # @user none | ||
| + | |||
| + | =====todo===== | ||
| + | |||
| + | fold these to files into this page | ||
| + | * markdown_to_dokuwiki_macro.txt | ||
| + | * sample_dokuwiki_syntax.txt | ||
| + | |||
| + | [[sample dokuwiki page]] | ||
dokuwiki.1763184747.txt.gz · Last modified: 2025/11/15 00:32 by jhagstrand