[doc] correction to publish_doc rule

was ok for first publish, but didn't work on already "init" git repository