WolfgangFahl / py-3rdparty-mediawiki

Wrapper for pywikibot and mwclient MediaWiki API librarties with improvements for 3rd party wikis
Apache License 2.0
4 stars 5 forks source link

Moving .wiki files from a local machine to a live wiki #44

Closed cuppajoeman closed 3 years ago

cuppajoeman commented 3 years ago

Say one has an x.wiki file and would like to upload that to their wiki

There is a method to upload files from a target wiki to a destination one, but I don't need a source wiki in my case as the file is on my own physical machine.

WolfgangFahl commented 3 years ago

@cuppajoeman thanks for the suggestion - this is a much needed feature to complete the toolkit and a prerequisite for #21

If you like this project please give us a star to publicly show it :-)

tholzheim commented 3 years ago

To upload an x.wiki file you can now use wikirestore.

For example the file is located in /home/user/documents you can use: wikirestore -t wikiId -p "x" --backupPath "/home/user/documents"

To upload all files located at /home/user/documents use: wikirestore -t wikiId --backupPath "/home/user/documents"

cuppajoeman commented 3 years ago

@tholzheim This is great! It means that I can turn my editing workflow into this: image

This means my editing can all be done in my own personal environment and not through the gui interface. This will really speed up how I use my wiki. Thanks to anyone who worked on this feature!!!

Ps: here is the result of that image: http://keepaskingwhy.com/mediawiki/index.php/Field