I just made a fix which should allow the theme component to work within discourse-docs. We might need better fixes directly in discourse-docs in the future, but that should be enough for now.
Please update your discourse-reply-template-theme-component and let me know how it goes.