Repository navigation
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).