-
Notifications
You must be signed in to change notification settings - Fork 44
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
mkdocs material theme #227
mkdocs material theme #227
Conversation
Provide an update to the latest stable version of mkdocs. This change require to many modification of an outdates theme, for that reason a new theme "Material" is included. The new theme provide extensions to handle notes and other admonitions. For that reason the class="well" html code is removed and replaced by the new prefix (extension method). References: OpenIndiana#226
The logo should no longer be part of the sub-pages or pages because it's part of the header. This is required to make the documentation more readable for the user.
Add css code to create grid overview based on the html and markdown code. Update copyright to the current year (2022).
The MkDocs Material "admonitions" for notes look good, but unfortunately the change from using a This is because Pandoc uses the |
I will have a look to get it working also with pdf creation. I’m sure there will be a solution. |
I've had a look and the solution for the existing doc theme is as follows: Replace the Add the markdown extension
With this extension the markdown inside the With the Material theme, the note sections can be specified as follows in order to leave the divs for the PDF generation scripts to use:
The script will require changes to no longer look at the line which was adding the icon, but it should otherwise work as before. |
Well that was basically the reason why I ask if it make sense to work on a more modern theme or not. Sure it was always possible to make a solution with a existing css change. But the idea was to go into a more modern and maintained theme at all. |
You need to add |
I noticed a mistake in my brief test and edited the post. Unfortunately GitHub was too slow refreshing. We could keep the existing approach or modernise as explained in the edited post. |
I'm happy to add the required commits to this branch to add basic Should then by ready for review and merge after some minor linting fixes or rule changes. |
Sounds great :-) |
Also remove redundent check
These do not have any effect on formatting and are flagged as an error by Markdown Lint
Mostly minor trailing spaces or blank line. Only major change is a table which needed updating to a compatible format.
'The configuration option google_analytics has been deprecated and will be removed in a future release of MkDocs'
Provide an update to the latest stable version of mkdocs. This change
require to many modification of an outdates theme, for that reason a new
theme "Material" is included.
The new theme provide extensions to handle notes and other admonitions.
For that reason the class="well" html code is removed and replaced by
the new prefix (extension method).
The logo should no longer be part of the sub-pages or pages because it's
part of the header. This is required to make the documentation more
readable for the user.
Add css code to create grid overview based on the html and markdown
code. Update copyright to the current year (2022).
References: #226