To share a document or a link with your private community, in the knowledge page click on "Upload +" and then fill the key information as follows:

Did this answer your question?