For having an offline version of Oracles Java tutorials, where all links to the Java API shall point to the also downloaded local version of the Java API docs, I use the following wget command (look out if trying: gets over 25,000 files):wget -mkp -nH -nv -E  --accept-regex .*javase/8/docs/api.*|.*javase/tutorial.* http://docs.oracle.com/javase/8/Unfortunately only a part of the links are converted to point correctly to the local files. All files under javase/tutorial are fine, but all the files pointing from there to the API files which are downloaded to javase/8/docs/api do not point to this local files, but instead point still to the online version.Any ideas what's wrong? I know there is a downloadable version of the tutorials, but it's API links point only to the online Java API doc.
How to force wget to convert *all* downloaded links to relative ones?
wget