Added sphinx substitutions in place of hardcoded version numbers.

Refs #19571