Split rules on main and inner
gh-pages: refactoring
Merge with master