Open main menu

Changes

1,284 bytes added ,  08:34, 26 April 2020
no edit summary
{{highlight|
text = The Collections extension has been in flux with the evolving situation with PDF handling in MediaWiki. The information here is retained for reference purposes. This notice will be removed and the information updated once a new Collection extension is available.
}}
 
 
[[File:mwlib.png|frame|A single article or collection of pages can be output in a variety of formats; on-demand]]
<source lang="bash">
cd
mkdir -p $HOME/lib/python2.7
# edit .bashrc to alias python to python2.7 (already installed on system)
MYENV=WIKI
wget http://peak.telecommunity.com/dist/virtual-python.pypython virtual-python.py --no-site-packageswget http://peak.telecommunity.com/dist/ez_setup.pysudo python ez_setup.pysudo easy_install pippip install virtualenvvirtualenv --no-site-packages $MYENV
cd $MYENV
source ~/WIKI/bin/activate
./bin/pip install -i http://pypi.pediapress.com/simple/ mwlib
./bin/pip install -i http://pypi.pediapress.com/simple/ mwlib.rl
sudo yum install libgcj
sudo rpm -i pdftk-2.02-1.el6.x86_64.rpm
# or do a user install of pdftk
mkdir $HOME/src
cd $HOME/src
wget http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-2.02-src.zip
unzip pdftk-2.02-src.zip
cd pdftk-2.02-dist/pdftk
make -f Makefile.Redhat > make.log 2>&1
cp pdftk ~/bin/
</source>
<pre>
exit 0
</source>
 
 
=== Digital Ocean ===
*{{@todo}} Install, verify and document process of setting up local render server
I have not installed a local render server, but on 2016-01-09 I did update the Collection extension. The new setup renders through pediapress. When I get a chance, I'll take a look at the current development status of the [https://meta.wikimedia.org/wiki/Book_tool book tool] and related efforts like [[mw:Offline content generator|Offline content generator]]
{{References}}