-
Notifications
You must be signed in to change notification settings - Fork 17
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
[MSKINS-226] Add custom option to explicitly enable AnchorJS along with options #51
Conversation
having an option to disable, why not, but please enable by default: what is the issue with these (visual) anchors added in https://issues.apache.org/jira/browse/MSKINS-167? |
Why I didn't enable it by default: consistency with the rest. That is:
|
@hboutemy @slawekjaranowski Please let me know what you think regarding this. |
Will be better disable it ... generated anchors ids are not the same as doxia generate |
If we have working Doxia, why we need also js generated? |
Doxia does not generate any IDs by default, you have to request it in the markup. If Doxia would generate them by default, it might lead to duplicate IDs. See here for details. |
@hboutemy I will first apply the AnchorJS upgrade separately. As said, there is no way to explicitly disable this just like with other options and the inconsistency between AnchorJS IDs and Doxia IDs remains. I will leave this open for now. I still think that this is the right way since any other feature has to be enabled explicitly. This shouldn't be any different. |
I don't understand the whole discussion about generated ids: do we care about it? the objective is the deep anchors = the "Basic Link" in https://www.bryanbraun.com/anchorjs/ this PR makes whole things more complex: do you have any concrete issue with the current links we have in many Doxia generated sites since a few years that you want to disable it by default? one solution to enable by default but be able to disable could be: <custom>
<fluidoSkin>
<anchorJs>
<disable>true</disable>
</anchorJs>
</fluidoSkin>
</custom> |
Yes, problem is TOC macro for example. People assume that the refs in the TOC use the same id as generated by anchorjs which is not true. In fact, this skins knows nothing about Doxia. They are completely disjoint. I will need to add a note that these IDs do not correspond with Doxia IDs. Adding Ref: |
Added note about incompat. |
Branch rebased and I still consider this reasonable to include in the next major for consistency reasons with the other custom options. |
…th options This closes #51
This closes #51