-
Notifications
You must be signed in to change notification settings - Fork 866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple preprocessors #662
Comments
You can put your |
When I created |
Your |
This is exactly what I talked about - quickly we have to copy everything. |
@evil-shrike Now we expose 2 methods for preprocessor file. You can find documents here This will ship with today's release v2.7 |
docfx supports template merging. It's useful for custom templates when we have not to reimplement all logic from default template in our custom one. But if I want to add my own preprocessor (to add a field into view model) I have to copy almost all default template items.
For example if I want to extend
ManagedReference.html.primary.js
and created such the file in my template then standard login from default template won't run. So I have to copy defaultManagedReference.html.primary.js
and patch it. But then I also have to copycommon.js
andManagedReference.common.js
. So I'm quickly loosing merging capabilities and have to synchronize my template with every new version.It would be nice to have an ability to add a preprocessor in custom template and keep standard preprocessors running.
The text was updated successfully, but these errors were encountered: