reverted expand_staticdoc