It's actually quite easy to do, all you have to do is write a utility that imports the whole structure into the document library, I found that all links and paths in the sandcastle release are relative, today I ran the import manually and it worked like a charm ...
source
to share