Replies: 4 comments 3 replies
-
Material for MkDocs is written from scratch, without the use of a CSS framework or library, except for SCSS and the Material Design color definitions. When you drop in Bootstrap, it might override some styles which might break the layout. Sadly, I don't have any experience using Bootstrap together with Material for MkDocs. Note that 2.6.6 to 7.0.6 is a very big version jump. If you defined overrides, make sure to remove them from the beginning and add them gradually, to better isolate breaking things. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the prompt reply. At this point, I've decided to remove bootstrap and refactor my implementation using e.g. the button classes from mkdocs-material. Fortunately most of the HTML sections are generated from python markdown extensions I wrote so the changes will be very localized. I still need to find a replacement from modal windows and I'm considering the Jbox plugin
Thanks for the tip. I managed to reintegrate the majority of my changes starting from the new templates available in v7.0.6. |
Beta Was this translation helpful? Give feedback.
-
I just created a mkdocs plugin, search GitHub for mkdocs-bootstrap-elements-plugin. Made it for personal use and still has some kinks to iron out but I had the same issue therefore made it. Check it out and if you have suggestions let me know. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the insight!
…On Sun, Sep 1, 2024, 3:58 AM kdkiss ***@***.***> wrote:
I just created a mkdocs plugin, search GitHub for
mkdocs-bootstrap-elements-plugin. Made it for personal use and still has
some kinks to iron out but I had the same issue therefore made it. Check it
out and if you have suggestions let me know.
—
Reply to this email directly, view it on GitHub
<#2461 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFILM2H2VX6MFE6QO5RBZDZULQNXAVCNFSM6AAAAABNOIFPIOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANJRGEZTINA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Since I'm not an experienced web-developer, I've decided to use mkdocs and mkdocs-material to generate the user documentation for our Fortran code.
Our website generated using mkdocs 0.17.5 and mkdocs-material 2.6.6 works nicely.
Now I'm trying to migrate to mkdocs 1.1.2 and mkdocs-material 7.0.6 to take advantage of new features and bug fixes.
Unfortunately, it seems that the bootstrap library I use to implement modal windows, buttons and popovers now comes into conflict with mkdocs-material.
This is what I get for the homepage if I load bootstrap 3.3.7:
These are the libraries loaded in main.html:
Note that I get the correct layout if I remove:
but without this lib all the bootstrap components do not work properly.
I've inspected some of the HTML elements in the browser and I see that in some cases the CSS property
is taken from
bootsrap.css
but I cannot judge if this is the source of the problem(I can provide further info if needed)
I would like to know if there's an easy solution to use bootstrap with the new version of mkdocs-material
or if you recommend replacing bootstrap with other solutions/libraries based on Material Design.
Best regards,
Matteo
Beta Was this translation helpful? Give feedback.
All reactions