/dev/docs/pages
Type: /type/page
body: The pages plugin in Infogami allows pulling pages from the wiki to a
directory and pushing pages from directory to wiki.

The `pull` action is used  to pull pages from the wiki.

    python run.py pull dir paths.txt

dir is the directory to store the pages and paths.txt should contains
paths of the pages to pull without trailing /, separated by newline.
I tried to support * wildcard to some extent. As of now, it have to be
present only after a /.  templates/* is valid, but t* is not.

The `push` action is used to push pages to wiki.

    python run.py push dir

All the pages from `dir` directory will be moved to the wiki.

On install, if pages plugin is enabled, it collects pages from
$plugin/pages directory from every plugin and moves them to wiki.

I have pulled all types, templates, macros, about pages and dev docs
from wiki and added to pages directory in openlbrary plugin.
From now on, any new instance of openlibrary will have all these pages
by default.

If you want to push all templates and types to an existing instance,
the easiest thing to do is

    python run.py push plugins/openlibrary/pages

Make sure you update the repository before doing this.
title: Exporting Wiki Pages
m: edit