feat(pm/wiki): add Public namespace #163

merged
opened by a.starrysky.fyi targeting main from private/minion/push-znnulvoxwzkq

Previously our Johnny Decimal templates wouldn't work with pages that started with Public:. Setting that up as a namespace will make it work again with no further modification. It'll also have the benefit of easily listing them and changing the UI around moving pages to be public

Changed files
+9
packetmix
systems
wiki
+9
packetmix/systems/wiki/wiki.nix
··· 224 225 $wgScribuntoDefaultEngine = 'luasandbox'; 226 227 $wgNamespacesWithSubpages[NS_MAIN] = true; 228 229 $wgNamespacePreloadDoExpansion = false; // This can't expand {{PAGENAME}} (or like) correctly, making it very nearly useless 230 ··· 236 ]; 237 $wgSearchType = 'CirrusSearch'; 238 $wgNamespacesToBeSearchedDefault[NS_CATEGORY] = true; 239 240 $wgUrlProtocols[] = "rad:"; 241
··· 224 225 $wgScribuntoDefaultEngine = 'luasandbox'; 226 227 + define("NS_PUBLIC", 3000); 228 + define("NS_PUBLIC_TALK", 3001); 229 + 230 + // Add namespaces. 231 + $wgExtraNamespaces[NS_PUBLIC] = "Public"; 232 + $wgExtraNamespaces[NS_PUBLIC_TALK] = "Public_talk"; 233 + 234 $wgNamespacesWithSubpages[NS_MAIN] = true; 235 + $wgNamespacesWithSubpages[NS_PUBLIC] = true; 236 237 $wgNamespacePreloadDoExpansion = false; // This can't expand {{PAGENAME}} (or like) correctly, making it very nearly useless 238 ··· 244 ]; 245 $wgSearchType = 'CirrusSearch'; 246 $wgNamespacesToBeSearchedDefault[NS_CATEGORY] = true; 247 + $wgNamespacesToBeSearchedDefault[NS_PUBLIC] = true; 248 249 $wgUrlProtocols[] = "rad:"; 250