So how is it supposed to work? Because you didn't really explain what the right behavior should be.
Why is this line needed if you're not using make to build the docs?