Difference between revisions of "Cli-love/documentation updating idea"

From Pandora Wiki
Jump to: navigation, search
m (Created page with "1) Get wiki administrative access. For every wiki documentation page I want to bridge to CLI Love: 2) Create a locked page which will have a URL to a specific oldid. http://...")
 
m
 
Line 1: Line 1:
1) Get wiki administrative access.
+
This requires I get wiki administrative access, so that one or more pages can be created, and locked so that regular users cannot see them.
 +
 
 +
This also allows free user-access to update online documentation.  Only a wiki administrator can approve a specific oldid which can be downloaded into a user's local cli-love.
 +
 
 +
{{hr}}
  
 
For every wiki documentation page I want to bridge to CLI Love:
 
For every wiki documentation page I want to bridge to CLI Love:
  
2) Create a locked page which will have a URL to a specific oldid.
+
1) Create a locked page.  Its exact url and oldid will be hard-coded within the cli-love documentation updating script.  Example URL:
 +
 
 +
  http://pandorawiki.org/index.php?title=Cli-love/some-help-page/update&oldid=1
 +
 
 +
1a) Within (1) is a reference to a specific wiki page and oldid number. Example content:
  
   http://pandorawiki.org/index.php?title=Cli-love&oldid=10929
+
   http://pandorawiki.org/index.php?title=Cli-love/some-help-page&oldid=10929
  
3) The script would be hard-coded to download that locked page.
+
2) The cli-love script is be hard-coded to download that locked page (1).
  
   \wget http://pandorawiki.org/index.php?title=locked-page&action=raw -O filename.ext
+
   \wget http://pandorawiki.org/index.php?title=Cli-love/some-help-page/update&oldid=1&action=raw -O filename.ext
  
4) The script checks the oldid, and compares it to its downloaded version.
+
3) Read its contents of (2) and compare it to an already-known URL.
  
  (TODO)
+
4) If the already-known URL is different, then download the new content (1a) and overwrite the local version of that document.
  look at filename.ext
 
  get 10929 from http://pandorawiki.org/index.php?title=Cli-love&oldid=10929
 
  check against some local record
 
  
5) If newer, it downloads the referred-to page.
+
  \wget  http://pandorawiki.org/index.php?title=Cli-love/some-help-page&oldid=10929  -O filename.ext
  
  (implement a security measure to only download from pandorawiki.org)
+
{{hr}}
  \wget http://pandorawiki.org/index.php?title=Cli-love&oldid=10929 -O filename.ext
 
  
6) and overwrites the local version of that document.
+
* Be able to easily force-download all documents, in case there are any issues.

Latest revision as of 18:41, 16 July 2014

This requires I get wiki administrative access, so that one or more pages can be created, and locked so that regular users cannot see them.

This also allows free user-access to update online documentation. Only a wiki administrator can approve a specific oldid which can be downloaded into a user's local cli-love.


For every wiki documentation page I want to bridge to CLI Love:

1) Create a locked page. Its exact url and oldid will be hard-coded within the cli-love documentation updating script. Example URL:

 http://pandorawiki.org/index.php?title=Cli-love/some-help-page/update&oldid=1

1a) Within (1) is a reference to a specific wiki page and oldid number. Example content:

 http://pandorawiki.org/index.php?title=Cli-love/some-help-page&oldid=10929

2) The cli-love script is be hard-coded to download that locked page (1).

 \wget  http://pandorawiki.org/index.php?title=Cli-love/some-help-page/update&oldid=1&action=raw  -O filename.ext

3) Read its contents of (2) and compare it to an already-known URL.

4) If the already-known URL is different, then download the new content (1a) and overwrite the local version of that document.

 \wget  http://pandorawiki.org/index.php?title=Cli-love/some-help-page&oldid=10929  -O filename.ext

  • Be able to easily force-download all documents, in case there are any issues.