Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dokuwiki [2019/02/28 22:35]
127.0.0.1 external edit
dokuwiki [2020/09/23 04:09] (current)
Line 1: Line 1:
 ====== DokuWiki ====== ====== DokuWiki ======
  
-This is Paul'DokuWiki. It is running on his awesome droplet. It is served by +I use [[https://www.dokuwiki.org/|DokuWiki]] to build this website It is 
-Apache2. The domain name paulsammut.com points to it and a virtual host on port +running on one awesome droplet. It is served by Apache2. The domain name 
-80 picks up the traffic.+paulsammut.com points to it and a virtual host on port 80 picks up the traffic. 
 + 
 +==== Change Log ====
  
 The following are modifications I have done to it. The following are modifications I have done to it.
Line 11: Line 13:
   * Added a google analytics plugin   * Added a google analytics plugin
   * Added a mathjax plugin   * Added a mathjax plugin
 +  * Added a discussion plugin for comments
  
 ===== Vim Editing ===== ===== Vim Editing =====
Line 56: Line 59:
   * The DokuWiki site doesn't use namespaces for its content   * The DokuWiki site doesn't use namespaces for its content
  
-===== Analytics =====+===== Plugins ===== 
 + 
 +I use various plugins to get the functionality I wanted. 
 + 
 +==== Discussion Plugin ==== 
 + 
 +I use the [[https://www.dokuwiki.org/plugin:discussion|DokuWiki Discussion 
 +Plugin]] to add comments. I tried using the ''%%plugin»discussion»automatic 
 +%%'' setting and turning off discussion where I didn't want it, but this did not 
 +work.  So I had to add the string ''%%%%'' at the end of every 
 +%page using this commnad: 
 + 
 +<code bash> 
 +printf "\n" | tee -a *.txt 
 +</code> 
 + 
 +==== Analytics Plugin ==== 
 + 
 +I set up Google Analytics using the 
 +[[https://www.dokuwiki.org/plugin:googleanalytics|Google Analytics DokuWiki 
 +plugin]] [[https://www.dokuwiki.org/plugin:googleanalytics|link]]. I just had to 
 +enter the tracking ID into the plugin configuration. 
 + 
 +===== Syntanx Highlighting ===== 
 + 
 +I have tried all kinds of code blocks and settled on using the default one with 
 +line numbers.  
 + 
 +I use this for pseudo code. There isn't actually a pseudo code coloring syntax 
 +but i type it in there because if you don't have a syntax option the line 
 +numbers don't show up: 
 + 
 +<code> 
 +<code cpp [enable_line_numbers="true"]> 
 +<code pseudo [enable_line_numbers="true"]> 
 +</code> 
 + 
 +===== Mac Vim Editing ===== 
 + 
 +I use ssfs to mount the droplet dokuwiki directory and edit the files directly 
 +on the server. I could use unison to do it but whatever. 
 + 
 +I sometimes run into issues with read only files and file owner corruption with 
 +mac's version of sshfs. I set the user to paul and group to www-data on the 
 +droplet. 
 + 
 +''sudo chown -R paul:www-data /var/www/dokuwiki/''
  
-I set up Google Analytics using the Google Analytics DokuWiki plugin [[https://www.dokuwiki.org/plugin:googleanalytics|link]].+''sudo chmod g+w /var/www/dokuwiki/data/pages/''
  
  • dokuwiki.1551393308.txt.gz
  • Last modified: 2019/02/28 22:35
  • by 127.0.0.1