Skip to content

Script for uploading auto-generated documentation to the Freifunk-Wiki

Notifications You must be signed in to change notification settings

freifunk-berlin/falter-wiki-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Falter wiki-bot

This script uploads some automatic generated documentation to the Freifunk wiki. In the given article, it will search for a section with a title similar to *bbb-configs* (as regex). Afterwards it will modify this section with the given text.

The text can be handled to the script via cli (--text) oder via a file (-f). Please note, that the mediawiki API calls will modify the whole section, including the title. So your new section text must contain the section title too.

How to use

$ ./edit_section.py -h
usage: edit_section.py [-h] -s SECTION -t TITLE (--text TEXT | -f FILE)

optional arguments:
  -h, --help            show this help message and exit
  -t TITLE, --title TITLE
                        article which should be edited.
  --text TEXT           String which should be posted into section.
  -f FILE, --file FILE  Read text from a file

For example:

./edit_section.py -t Spielwiese -f txt

About

Script for uploading auto-generated documentation to the Freifunk-Wiki

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages