Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:21
    squidfunk commented #2155
  • 15:15

    github-actions[bot] on gh-pages

    Deployed e72af03 with MkDocs ve… (compare)

  • 15:14

    squidfunk on master

    Fixed stale link in Insiders do… (compare)

  • 15:03
    AltarBeastiful commented #2155
  • 10:32
    squidfunk labeled #2563
  • 10:12
    martinbira opened #2563
  • 08:02

    github-actions[bot] on gh-pages

    Deployed d038fa9 with MkDocs ve… (compare)

  • 08:01

    squidfunk on master

    Updated funding methods Merge branch 'master' of github… (compare)

  • Apr 13 16:51
    EdouardThiel commented #2550
  • Apr 13 16:29
    squidfunk closed #2559
  • Apr 13 16:29
    squidfunk commented #2559
  • Apr 13 16:29
    squidfunk closed #2560
  • Apr 13 16:28
    squidfunk commented #2560
  • Apr 13 16:28
    squidfunk closed #2550
  • Apr 13 16:28
    squidfunk commented #2550
  • Apr 13 15:38
    EdouardThiel opened #2560
  • Apr 13 15:36
    EdouardThiel opened #2559
  • Apr 12 22:39
    polarathene commented #2429
  • Apr 12 22:38
    polarathene commented #2429
  • Apr 12 19:53
    squidfunk labeled #2551
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/.
Isaac Muse
@facelessuser
I realize now that you may have been referring to it not working with encryption which may be a separate issue.
luzai
@luzai
Thank you very much! If not encrypted, the formula can be rendered. But it not works with encryption. I would submit an issue to mkdocs-encryptcontent-plugin and ask about the logic that triggers MathJax after decrypted.
Oleh Prypin
@oprypin
can someone explain to me in which situation this line of code kicks in?
https://github.com/squidfunk/mkdocs-material/blob/86a4c47c0a/material/partials/nav-item.html#L38
Oleh Prypin
@oprypin
aha it kicks in for the currently active item. but then why isn't nav_item.active or something used?
Oleh Prypin
@oprypin
i'm now determined to implement clickable links.
still no idea why it wasn't added.
mkdocs/mkdocs#1042
https://gitter.im/squidfunk/mkdocs-material?at=5f8770e93775d02b5a0e8178