Hi,
the documentation has it's very individual styling with it's own CSS not caring about the themes. I added a JS switch to the german doc files for testing:
If the docs are opened from within Moodle the php code within the JS is parsed and replaced by the path to the active theme. The JS tests if the php function is parsed and replaced -> this means the doc file is opend within Moodle. If it finds the php code -> this means the doc file is opened directly. If and only if the doc file is opened within Moodle the JS writes the statements for loading "styles.php" and "docstyles.php" from the themes folder into the document and the doc is styled according to the selected theme.
Why using JS? The docs can be opened directly for example before installing Moodle for information purposes. JS is neccessary to hide the php code in the directly opened html doc, or else it would be shown on top of the doc. The call for the doc CSS "docstyles.css" is written before the JS, so anybody can see the styled doc, even if JS is deactivated.
For two themes I added the CSS for the docs "docstyles.php"
- "cornflower"
- "standardxhtml"
Can please anybody test it (please choose the language "Deutsch (de)") and report bugs, proposals etc.
Thank you
Urs