Minor tweaks to fix current Ddoc themes due to the new Ddoc theme#1497
Minor tweaks to fix current Ddoc themes due to the new Ddoc theme#1497CyberShadow merged 1 commit intodlang:masterfrom
Conversation
The new Ddoc theme [1] introduced three new macros: DDOC_MEMBER, DDOC_MEMBER_HEADER and DDOC_HEADER_ANCHOR. This tweak configures these new macros to have no impact on the existing ddoc themes. [1] dlang/dmd#6173
|
@andralex @CyberShadow fixed the existing dlang.org ddoc theme. |
|
Awesome, thanks for the quick PR. Waiting on the doc autotester. |
|
Since the new default macros are in a separate file, can this [1] section either be referencing the file on GitHub or somehow included in the |
|
Thanks. |
I think it's doable with a Makefile rule. |
|
Nice, thanks very much @CyberShadow for watching things over. |
|
Which approach is preferred? |
|
I'll let you and @CyberShadow consult on that. Works? |
|
Works for me. |
|
Well, I really should be working on other stuff right now. It seems like a low-priority thing, but if you're up for it, put up a PR, and if it passes the doc tester with a good diff ping me and I'll merge it. |
|
@CyberShadow I can do the work myself, I just wanted an opinion on which approach to use. |
|
Sorry, what are the options? Aside from the Makefile copying the file from the DMD repo to the dlang repo, then including it into the DDoc. |
|
I guess you could also add a special DDoc macro that expands to the default macro list (excluding itself of course), but I wouldn't be a good judge on how sensible that would be. |
The other would be to link directly to the file on GitHub. |
|
Ah, right. Well, that's an option, but it would have some issues:
As things are, that file doesn't change very often, does it? Perhaps it's simplest to update the list manually for now. |
True.
It needs escaping, so it's not as easy as copy pasting the file. |
The new Ddoc theme [1] introduced three new macros: DDOC_MEMBER,
DDOC_MEMBER_HEADER and DDOC_HEADER_ANCHOR. This tweak configures these
new macros to have no impact on the existing ddoc themes.
[1] dlang/dmd#6173