# Strip upstream (ArtCraft / Discord) branding. Run: perl tools/craft-skills/skills/debrand/debrand.pl .  (--check in CI)
delete docs/brand
# MIT/Apache texts stay verbatim. The copyright holder line stays everywhere (legal requirement).
keep ^(LICENSE-(MIT|APACHE)|\.debrand)$
dropline ^ATTRIBUTION\.md$ :: \|\s*`docs/brand/
sub (?s)\nThe ArtCraft name, wordmark and logos in docs/brand/.*?LICENSE-brand\.txt\.\n =>
sub (?s)\nThe ArtCraft name, wordmark and logos in \[`docs/brand/`\].*?must remove them\.\n =>
sub  The one exception is the ArtCraft brand files in `docs/brand/`: ArtCraft trademarks, not open source, used under `docs/brand/LICENSE-brand\.txt`\. =>
sub \| \[Website\]\(https://getartcraft\.com/apps/\w+\) (?=\|) =>
sub https://getartcraft\.com/apps/gridcraft => https://github.com/storytold/gridcraft
sub https://discord\.gg/artcraft => https://github.com/storytold/gridcraft/issues
forbid (?i)artcraft(?! Team and the GridCraft contributors)
forbid (?i)discord
