Revert "pass docdir & htmldir for testing"

This reverts commit d842909a6e02d3852cc673a4f09ca91685d72078.