After World War II , Slovenia became a republic of the renewed Yugoslavia , which though Communist , distanced itself from Moscow 's rule .