Thanks for your reply.
I think I should change the "document-details", but I'm not sure if I just change the templates. In line 131, share/templates/document-details/document-details.js" is the creation of URL to call the page.
var itemUrl = YAHOO.lang.substitute("site/{site}/document-details?nodeRef={nodeRef}",
I want to see the preview of a document that is not in Share, so I think we should not be necessary to have a site, but directly call webscript. Carried out some tests and confirmed that you can make previews of documents that are in web-client, but now you need a website, although the document is not in Share.
This is the first change I want to do, then I would remove some regions on document-details.ftl, but this seems easier to do because I only have to modify document-details.ftl