In the example you attached, only the Partbody is published.
To use published geometry for assembly constraints, you have to publish the features (axis coincidence, shaft offset, gear offset, gear surface contact etc) that will be used from this part.