Cli-love/documentation updating idea

From Pandora Wiki
Revision as of 18:43, 22 June 2012 by Spiralofhope (talk | contribs) (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://...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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://pandorawiki.org/index.php?title=Cli-love&oldid=10929

3) The script would be hard-coded to download that locked page.

 \wget http://pandorawiki.org/index.php?title=locked-page&action=raw -O filename.ext

4) The script checks the oldid, and compares it to its downloaded version.

 (TODO)
 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.

 (implement a security measure to only download from pandorawiki.org)
 \wget http://pandorawiki.org/index.php?title=Cli-love&oldid=10929 -O filename.ext

6) and overwrites the local version of that document.