dokuwiki update only when configured
This commit is contained in:
parent
ed57d08a10
commit
aa0a707d49
7
autorev2
7
autorev2
@ -233,9 +233,10 @@ for z in rev.zones():
|
|||||||
revfile.write_text(newrev)
|
revfile.write_text(newrev)
|
||||||
print(f"{revfile} modified.")
|
print(f"{revfile} modified.")
|
||||||
|
|
||||||
wikitext = ""
|
if conf.dokuwiki_url:
|
||||||
for z in rev.zones():
|
wikitext = ""
|
||||||
|
for z in rev.zones():
|
||||||
wikitext += "\n".join(rev.zone_wiki(z)) +"\n\n"
|
wikitext += "\n".join(rev.zone_wiki(z)) +"\n\n"
|
||||||
dokuwiki_update(wikitext)
|
dokuwiki_update(wikitext)
|
||||||
|
|
||||||
# vim: set tabstop=4 shiftwidth=4 expandtab smarttab:
|
# vim: set tabstop=4 shiftwidth=4 expandtab smarttab:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user