Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:50
    reigHns92 commented #4219
  • 14:12
    squidfunk commented #4206
  • 14:10
    squidfunk labeled #4217
  • 14:10
    squidfunk commented #4217
  • 14:08
    squidfunk labeled #4218
  • 14:08
    squidfunk labeled #4219
  • 14:08
    squidfunk commented #4219
  • 14:08
    squidfunk closed #4219
  • 12:52
    reigHns92 edited #4219
  • 12:52
    reigHns92 edited #4219
  • 12:34
    ldeluigi commented #4206
  • 10:58
    reigHns92 edited #4219
  • 10:58
    reigHns92 edited #4219
  • 10:57
    reigHns92 opened #4219
  • 09:14
    notkenzotayko edited #4218
  • 09:14
    notkenzotayko edited #4218
  • 02:20
    notkenzotayko edited #4218
  • 02:19
    notkenzotayko opened #4218
  • 02:03
    jonaharagon opened #4217
  • Aug 06 14:21
    LordOfPolls commented #4213
Martin Donath
@squidfunk
The admonition issue is a non-issue, you're using the wrong syntax.
If you stick to the documentation, you should be fine.
GL513
@gl513:matrix.org
[m]
Ah, so I created a trash issue, sorry
Martin Donath
@squidfunk
If you're using undocumented behavior, i.e., something that is not contained in our documentation, you're in unchartered territory.
No worries. If you find something that doesn't work as intended the next time you might first create a discussion or ask here, as you don't need to go through the formal process of creating an issue, saving both, you and me, time.
GL513
@gl513:matrix.org
[m]
yeah, thanks
GL513
@gl513:matrix.org
[m]
Yes, I have.
Blueswen
@Blueswen

@Blueswen could you please create an issue providing a minimal reproducible example?

Ok , I will create an issue. BTW I also found this only happen on macOS. The char selecting is fine on Windows.

Blueswen
@Blueswen

... so to understand: we must essentially filter keyup events when there's a composition going on, right? So when compositionstart starts, we filter keyup until compositionend occurs.

Yes, exactly. Before I fond the OS issue, I think using what you said may be a solution.

Martin Donath
@squidfunk
My problem is that I don't know how to type Chinese characters, which is why I'm not getting the context menu to select from (where keyup is captured). We will have to do this in tandem, if that's okay for you.
Arthri
@Arthri
1 reply
GL513
@gl513:matrix.org
[m]
Martin Donath
@squidfunk
Thanks! There was a typo in the link, fixed in the latest commit. Give it 5min until the docs are deployed.
GL513
@gl513:matrix.org
[m]
Hey, is there a way to put the git timestamp below the comments?
– or –
Blueswen
@Blueswen

My problem is that I don't know how to type Chinese characters, which is why I'm not getting the context menu to select from (where keyup is captured). We will have to do this in tandem, if that's okay for you.

It's okay. Thanks for your helping.

Jason Li
@zeshengli
Hi! I have two questions regarding customizing the header part. Is it possible to increase the icon size? And is it possible to not show the site_name that I defined in mkdocs.yml? Thanks in advance!
Martin Donath
@squidfunk
Both possible. You can change the icon size with CSS and remove the site name by customizing the template. See the customization guide.
Jason Li
@zeshengli

Thanks for your reply! I was able to hide the site_name by overriding the header.html partial. I removed the header title and kept everything else the same.
But no luck with the icon size. I have two different logo images for light mode and dark mode, so I used the setup mentioned in this discussion. And in my extra.css I just add this block:

.md-typeset .md-header__button\ md-logo img {
   height: 3rem;
}

But the icon size does not change with the number, am I missing something here?

Robin Opletal
@fourstepper:robinopletal.com
[m]
Is it possible to include, during build time, markdown from directories that is not in the docs folder?
Martin Donath
@squidfunk
Jup, by using Snippets
Jason Li
@zeshengli
What would be your recommended way of having an interactive component for pip installation instruction like the one here for spaCy? We were using MDX and including a react component before but it's not supported as discussed here Thanks!
Martin Donath
@squidfunk
Well, you can add your component as HTML to Markdown, and then provide extra JavaScript to mount the component. I'm doing the same in the documentation with the Insiders sponsorship overview.
Note that this is not based on React or some other SPA framework since we're doing progressive enhancement. The whole workflow is based on RxJS, which is a great fit for enhancing static sites.
Thus, write your component as plain JavaScript and then mount it with RxJS. You can easily hook into instant loading and Material for MkDocs features.
I might write a blog article explaining how to mount custom stuff in the future.
Jason Li
@zeshengli
Really appreciate the detailed explanation!
Martin Donath
@squidfunk
8.3.0 is out, including the features from the funding goal we just reached! Many thanks to all sponsors for making this possible and allowing me to work on this project! ❤️
Arthri
@Arthri
where can I add a license for the wiki? is there somewhere I can place a CC button?
Arthri
@Arthri
2022.06.03 13.00.02.462.png
on an unrelated note, I found a small search bug where content tabs display like this in search
C and C++ become CC++
Martin Donath
@squidfunk
@Arthri I'm not sure what you mean by Wiki, but you can place a button anywhere in a Markdown file. For other locations on the page you'd need to extent the theme.
Arthri
@Arthri
I see, thanks
Some wikis(especially MediaWiki) https://www.mediawiki.org/wiki/MediaWiki have a notice they're under a CC license, and they're usually at the bottom of every page. Is there a equivalent for MkDocs/Material?
Arthri
@Arthri
thanks again
Timo Toups
@lampensau
love the new anchor links :heart_eyes:
Martin Donath
@squidfunk
Hehe, thanks! I also think they turned out pretty great
Blueswen
@Blueswen
@squidfunk , the Chinese searching bug fixed in squidfunk/mkdocs-material-insiders@95aea95 is really awesome. I think this could also help those language need composition like Japanese. Thanks again.
Martin Donath
@squidfunk
Perfect, glad to hear! As we intercept the composition(start|end) events, it should be fixed for Japanese and all languages using composition as well.
Blueswen
@Blueswen
@squidfunk I also found another Chinese searching highlighting bug. If target query string is behind other Chinese text, searching highlighting mark does not show up. I think it's because match expression in highlighter/index.ts can not deal with this scenario. I am not good at regex, but I found it could solved by adding another | in first group of expression (replace (^|${config.separator}|\\b) with (^|${config.separator}|\\b|)). Though it seems to work, I am not sure that could cause any side effect or not. Maybe you can fix this with a better way ?
image.png