Repository navigation
Releases
v0.7.0
Changelog
- 680bb98: fix(cli)!: exit with the heibench codes for usage and environment (#69) (@CameronBrooks11)
- 987564b: chore: bump version to 0.7.0 (#70) (@CameronBrooks11)
v0.6.0
Changelog
- c810491: build!: move the module path to github.com/heibench/wikisync (#64) (@CameronBrooks11)
- 9d96e87: chore: relicense from MIT to Apache-2.0 (#65) (@CameronBrooks11)
- 6c17447: docs(changelog): say what the old module path resolves to (#67) (@CameronBrooks11)
- 9b5075a: chore: bump version to 0.6.0 (#68) (@CameronBrooks11)
v0.5.1
Changelog
- 6c6317b: fix(mw): send every API call through one request path (#52) (@CameronBrooks11)
- cdad553: fix(mw): read only the revision id when push checks for a conflict (#53) (@CameronBrooks11)
- 1197ed5: refactor(core): simplify the pull API (#54) (@CameronBrooks11)
- d08a881: refactor(core): one way to select tracked pages (#55) (@CameronBrooks11)
- dd503d1: refactor(core): one naming pattern for status, diff and push outcomes (#57) (@CameronBrooks11)
- 4750d5d: refactor(cli): split cmdPull and share the login step with push (#59) (@CameronBrooks11)
- a613ae2: docs: current package docs and an 80-column --help (#60) (@CameronBrooks11)
- cfe212a: fix(cli): say "login failed" once, and agree counts with their nouns (#61) (@CameronBrooks11)
- a066f68: fix(cli): print push's warning when the saved text can't be read back (#62) (@CameronBrooks11)
- 459d89c: chore: bump version to 0.5.1 (#63) (@CameronBrooks11)
v0.5.0
Changelog
- e6fbc65: feat(pull): pull the pages on your watchlist with --watchlist (#43) (@CameronBrooks11)
- ac0daf0: chore: bump version to 0.5.0 (#44) (@CameronBrooks11)
v0.4.0
Changelog
- fa52538: ci: set read-only token permissions on the check workflow (#38) (@CameronBrooks11)
- 3cfa896: ci: bump actions/deploy-pages from 4 to 5 (#39) (@dependabot[bot])
- 1be0969: ci: bump actions/upload-pages-artifact from 3 to 5 (#40) (@dependabot[bot])
- eb518a9: feat(pull): follow --category into subcategories with --depth (#41) (@CameronBrooks11)
- 5f2cbcc: chore: bump version to 0.4.0 (#42) (@CameronBrooks11)
v0.3.1
Fixes push treating a mistyped page title as "nothing to push".
Fixed
-
pushreports titles that aren't tracked. Given a title that isn't in
the working tree, for example a typo,pushused to skip it silently, print
"no local changes to push" and exit 0, so the edit was never published and
nothing said so. It now names the title and exits 1:push: "Main Pgae" is not tracked (run 'wikisync pull' first)This applies in a preview or with
--apply, alongside other pages, and in an
empty folder. (#24, #36)
v0.3.0
wikisync now works with any MediaWiki wiki the same way: there is no default
wiki, and each working folder remembers the one it was pulled from.
Documentation is now at https://cameronbrooks11.github.io/wikisync/.
Changed
-
No default wiki. wikisync no longer assumes Appropedia. The first
pull
into an empty folder needs--host(and--pathifapi.phpisn't under
/w/). After that,pullandpushin the folder use the wiki recorded in
its manifest, and refuse a different--hostor--path, so a folder only
ever talks to one wiki. (#32)Upgrading: folders you already pulled into record their wiki, so they keep
working with no--host. Only a first pull into a new folder changes:wikisync pull --host www.appropedia.org --dir ./pages "Page" -
just test-liveneedsWIKISYNC_TEST_HOST. (#32)
Added
v0.2.1
Fixes large pages being reported as missing in a multi-page pull.
Fixed
- Pulling many large pages no longer drops some of them. MediaWiki caps an
API response at 8 MiB. When a batch of 50 pages went over it, wikisync 0.2.0
reported the pages left out of the response as "page does not exist" and still
exited 0. On Appropedia's 50 pages of 200 kB or more, 0.2.0 pulled 30 and
skipped 20; 0.2.1 pulls all 50. No local file was overwritten by the bug:
pages reported missing were skipped. (#19)
v0.2.0
Pull a whole set of pages at once, and push --apply is no longer
experimental.
Added
-
Pull by category or prefix. (#17)
wikisync pull --dir ./pages --category "Simple living" wikisync pull --dir ./pages --prefix "User:You/"
Both can be repeated and combined with page titles. Subcategories aren't
followed. -
Pull everything you're tracking again with a bare
wikisync pull --dir ./pages. Files with unpulled local changes are still left alone. (#17) -
Translations are skipped by default. Many Appropedia category members are
machine translations (Page/es,Page/ar, …). A category or prefix pull keeps
only pages in the wiki's own language unless you pass--all-languages; on
Appropedia,Category:Simple livinggives 6 pages, with 15 translations
skipped. A page you name explicitly is always pulled. (#17) -
A safety limit. A category or prefix selection over 500 pages (after
translations are left out) is refused before anything is downloaded. Raise it
with--max. (#17) -
Pages are fetched 50 per request, so large pulls take few requests. (#17)
Changed
v0.1.2
Pulled pages are now laid out like the wiki, so namespaced pages are easy to
find and open in an editor.
Changed
-
Namespace and subpage folders.
pullwrites each page into a folder per
namespace, with subpages as subfolders. Main-namespace pages stay at the
root. (#14)Page v0.1.1 v0.1.2 User:CameronBrooks11/wikisyncUser%3ACameronBrooks11%2Fwikisync.wikiUser/CameronBrooks11/wikisync.wikiUser talk:ExampleUser_talk%3AExample.wikiUser_talk/Example.wikiWelcome to AppropediaWelcome_to_Appropedia.wikiunchanged The namespace comes from the wiki itself, so a colon in a main-namespace
title stays part of the filename. -
Upgrading moves nothing. A page you pulled with an earlier version keeps
its existing path when you pull it again. Only newly pulled pages use folders.
Safety
- Titles come from the wiki, so wikisync checks them before writing. A title
that can't be laid out safely as folders (one containing..or an empty
segment) is saved as a single file with its slashes encoded. No title can
write outside the folder you pulled into. - If two pages would map to the same file (for example
User:fooand a
main-namespace pageUser/foo), the second is refused rather than
overwriting the first.
Status
push --apply is still experimental: it's tested against MediaWiki 1.45 in
CI, but not yet against Appropedia itself (#12).