Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 06:42
    magneticcore commented #2429
  • 06:42
    magneticcore commented #2429
  • 06:04

    github-actions[bot] on gh-pages

    Deployed 109d6f7 with MkDocs ve… (compare)

  • 06:03

    dependabot-preview[bot] on npm_and_yarn

    (compare)

  • 06:03

    dependabot-preview[bot] on master

    Bump eslint from 7.23.0 to 7.24… (compare)

  • 06:03
    dependabot-preview[bot] closed #2542
  • 06:01

    github-actions[bot] on gh-pages

    Deployed 7c47f88 with MkDocs ve… (compare)

  • 06:01
    dependabot-preview[bot] synchronize #2542
  • 06:01

    dependabot-preview[bot] on npm_and_yarn

    Bump eslint from 7.23.0 to 7.24… (compare)

  • 06:01
    dependabot-preview[bot] edited #2542
  • 06:00

    dependabot-preview[bot] on npm_and_yarn

    (compare)

  • 06:00

    dependabot-preview[bot] on master

    Bump @typescript-eslint/eslint-… (compare)

  • 06:00
    dependabot-preview[bot] closed #2546
  • 06:00

    github-actions[bot] on gh-pages

    Deployed ea3da6a with MkDocs ve… (compare)

  • 05:59
    dependabot-preview[bot] edited #2542
  • 05:59

    github-actions[bot] on gh-pages

    Deployed 6290725 with MkDocs ve… (compare)

  • 05:59

    dependabot-preview[bot] on npm_and_yarn

    (compare)

  • 05:59

    dependabot-preview[bot] on master

    Bump esbuild from 0.11.5 to 0.1… (compare)

  • 05:59
    dependabot-preview[bot] closed #2544
  • 05:58

    dependabot-preview[bot] on npm_and_yarn

    (compare)

erwini
@erwini
Sounds as a possible solution. Not sure, how to install/enable it with mkdocs-material. (btw: add classes to td/th works with attr_list extension)
Isaac Muse
@facelessuser
Yup, I forgot to mention attr_list. As form md_in_html, you just enable it the same as you would attr_list in mkdocs.
erwini
@erwini
Thanks for hints. Works. It was not so easy to find out the correct path for css, but was successful.
Martin Donath
@squidfunk
What did you find troublesome? The docs show exactly how extra CSS is resolved:
erwini
@erwini
The documentation is ok. What i wanted to do is, if i have a table with many small columns, the width of the columns are to big resulting in an scrole bar.
So, i wanted to change this for some tables. Using extension md_in_html provides the possability to change the column width of all columns in the table. Example written in MD-File: <div class="small-columns" markdown="1"> md-table </div>.
Because table is using some more css, which influence the styling, i have to find out the propper path in such a way, that the own ccs hits the tables th doing the wanted styling.
So i end up with this: div.small-columns table th {min-width: 1em !important;}. The path was the "hardwork", noting the div is sitting in front of the table tag in the resulting html.
Martin Donath
@squidfunk
Ok, so CSS specificity was the problem. I see.
Glad you solved it!
erwini
@erwini
Other styling question: is it possible to make text block in the middle wider, so the 16:9 screen is fully used and have smaller/no white borders on the left and right of the navigation?
Martin Donath
@squidfunk
yes, should be doable through extra CSS. It'll probably be also added as a config option for Insiders.
Martin Donath
@squidfunk
@erwini in the end, it's 2-3 lines of CSS: I documented it here https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#content-area-width
1 reply
Martin Donath
@squidfunk
Insiders 1.10.0 is out – allowing the table of contents to be moved into the left sidebar! Video: https://twitter.com/squidfunk/status/1328005179770359808
Martin Donath
@squidfunk
Concept: Admonition sidebars – squidfunk/mkdocs-material#2051
localhost_8000_getting-started_.png
Daniel R
@danierutu
Woah, that's awesome! :heart:
Isaac Muse
@facelessuser
Wow. That’s intersting. I’ll have to check it out. Do you control it with special classes?
Martin Donath
@squidfunk
Yes, it's done with regular Admonition syntax and some additional classes
Just a POC right now but it works exceptionally well already.
Martin Donath
@squidfunk
Here's a video showing how it'll work with collapsible Admonitions: https://twitter.com/squidfunk/status/1328243288785235975
Benjamin Staneck
@Stanzilla
oh man, how close are we to the next insiders -> normal push?
Martin Donath
@squidfunk
Benjamin Staneck
@Stanzilla
I meant for the next feature push to the non sponsorware version
Martin Donath
@squidfunk
Or do you mean funding goal / milestone? In that case $330 are still missing. The milestone as such is feature-complete as of 1.10.0.
Benjamin Staneck
@Stanzilla
ah, kk
Martin Donath
@squidfunk
Currently at $670. i posted a graph on Twitter last week
Im really hoping some companies will chim in. The growth rate is good at the moment, but mainly $10 sponsors. Currently 40 in total.
Martin Donath
@squidfunk
Somebody made a Gource animation of Material for MkDocs! 7000 icons coming in @​5:00 https://www.youtube.com/watch?v=ZAMGVj_pvk4&ab_channel=Gourcer
Isaac Muse
@facelessuser
That’s funny. I would have liked to see them animate all the dependencies as well. Node dependencies: 5 hours later…
Martin Donath
@squidfunk
Haha yeah, that would be awesome to see. Big ball of mud probably 😉
apopova
@AnastasiaTWW
hi guys! have you ever tried to solve the problem with cached css and js contents? I've deployed a new script but it works only after all saved browser files are deleted. can I force css and js files update on the mkdocs-material side? I want to try to solve the problem on my side without changing the deployment configuration
Martin Donath
@squidfunk
All Material for MkDocs assets have chunk hashes, so I guess your problem relates to custom/extra CSS?
If so, the probably easiest thing you can try is using query-string based cached busting: https://css-tricks.com/strategies-for-cache-busting-css/#query-strings – albeit it's not a best practice, it's easier to implement than chunk hashes, which demand a build process.
apopova
@AnastasiaTWW
@squidfunk thanks a lot! looks like this hack helped :)
Martin Donath
@squidfunk
Glad I could help!
Benjamin Staneck
@Stanzilla
image.png
found some more search oddities, inserted "MoveTo" into a few more documents, search finds it but the preview does not show it
Martin Donath
@squidfunk
The search preview currently shows the text from the beginning, highlighting any words it finds in the first few sentences. The match may be at a latter point in the document.
Better search summaries are already on the roadmap: https://squidfunk.github.io/mkdocs-material/insiders/#biquinho-vermelho – it's something I wanted to do before, but it's far from easy to solve this for all of the 40 languages. However, it will definitely be addressed in the next months.
Benjamin Staneck
@Stanzilla
hrm yeah
it gives the impression that it does not find the searched for term at all currently
Martin Donath
@squidfunk
Jep, I'll push it up on my priority list, definitely something to improve 😊In the meantime, the search highlighting feature of Insiders helps to highlight the occurrences in the results.
Try searching for "awesome" on the Insiders docs and just press ENTER, it'll highlight the result in the text: https://squidfunk.github.io/mkdocs-material-insiders/deprecations/?h=+awesome#bundled-plugins
Benjamin Staneck
@Stanzilla
yeah insiders search is way better
luzai
@luzai
Hi, may I ask whether we could encrypt the pages with a password while rendering latex code successfully?
Martin B
@martinbira
Try it out with the mkdocs-encryptcontent-plugin, https://github.com/CoinK0in/mkdocs-encryptcontent-plugin
luzai
@luzai
image.png
Thank you, but I cannot render the latex code when using this plugin.
Martin Donath
@squidfunk
You probably need some logic that triggers MathJax after the content has been decrypted
Isaac Muse
@facelessuser
MkDocs uses Markdown, not LaTeX. If you want to parse LaTeX in Markdown, you need some kind of extension that can parse LaTeX inside Markdown, or at least preserve the LaTeX from being treated as Markdown and use a JavaScript Library to parse it afterwards. The latter is how most known Markdown extensions handle LaTeX math. Material’s documentation covers this here: https://squidfunk.github.io/mkdocs-material/reference/mathjax/. And the extension it references gives even more details in its own documentation: https://facelessuser.github.io/pymdown-extensions/extensions/arithmatex/.