Skip to content

v0.1.2

Choose a tag to compare

@github-actions github-actions released this 23 Oct 14:08
· 20 commits to main since this release
c2e2faf

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. pull writes 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/wikisync User%3ACameronBrooks11%2Fwikisync.wiki User/CameronBrooks11/wikisync.wiki
    User talk:Example User_talk%3AExample.wiki User_talk/Example.wiki
    Welcome to Appropedia Welcome_to_Appropedia.wiki unchanged

    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:foo and a
    main-namespace page User/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).