-
I am using the new modern theme on DocFX 2.73.1. For some reason I cannot get the Copying the default template example works and the icon link attributes do get assigned, but how exactly should we call javascript functions on document load? For example, if you wanted to use jQuery to insert some DOM elements how would it be done now? I found it very odd that the link attributes get assigned in the example but inspecting the resulting HTML I can't seem to find a reference to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Ok, it's been a while since I came back to this level of DocFX customization, but finally figured it out. To understand I started hunting down commits referencing So if I get this straight, Which functions exactly are called, their names and signatures seem to be changing a lot. Is there a plan to stabilize on this API so we can know where exactly we should hook into? I understand the idea of having specific callbacks to configure specific modules, but would be nice to have something more general like a For now I am hooking into |
Beta Was this translation helpful? Give feedback.
Ok, finally understand that
main.js
simply runs already in the right place to manipulate DOM elements, so if you have a function you need to call, the following seems to work well: