by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:31
    squidfunk commented #1741
  • 12:36
    coliff commented #1741
  • 12:23
    Stanzilla commented #1741
  • 12:22
    coliff commented #1741
  • 12:19
    Stanzilla commented #1741
  • 11:51
    squidfunk commented #1741
  • 11:49
    squidfunk commented #1741
  • 11:34
    netlify[bot] commented #1743
  • 11:34
    slavianap commented #478
  • 11:34
    coliff edited #1743
  • 11:33
    coliff opened #1743
  • 11:24
    coliff commented #1741
  • 11:20
    Stanzilla commented #1741
  • 11:19
    Stanzilla commented #1741
  • 11:10

    github-actions[bot] on gh-pages

    Deployed 6fcdcc5 with MkDocs ve… (compare)

  • 11:09

    dependabot-preview[bot] on npm_and_yarn

    (compare)

  • 11:09

    squidfunk on master

    Bump @types/webpack from 4.41.1… (compare)

  • 11:09
    squidfunk closed #1742
  • 10:46
    netlify[bot] commented #1742
  • 10:44
    dependabot-preview[bot] labeled #1742
Martin Donath
@squidfunk
Yeah, it's the same with all of my repositories
Benjamin Staneck
@Stanzilla
missing permission or so?
Martin Donath
@squidfunk
I didn't change anything and it worked perfectly before.
Where could permissions be missing?
Benjamin Staneck
@Stanzilla
in the app settings, I would try reinstalling it on GitHub
Martin Donath
@squidfunk
Just released 5.2.0 btw
Only 4 open issues and one of them is the tutorials discussion. I think that's a historical low.
Benjamin Staneck
@Stanzilla
yay
Bilal
@bilal-fazlani
I am trying it with docker and getting
WARNING -  Config value: 'dev_addr'. Warning: The use of the IP address '0.0.0.0' suggests a production environment or the use of a proxy to connect to the MkDocs server. However, the MkDocs' server is intended for local development purposes only. Please use a third party production-ready server instead.
Martin Donath
@squidfunk
That's correct. See the discussion in mkdocs/mkdocs#2108
This was the only solution we could settle on. Waylan wanted to do it anyway.
Bilal
@bilal-fazlani
Removed strict mode for now on local machine. Dark mode is looking good!
Martin Donath
@squidfunk
Cool!
Bilal
@bilal-fazlani
So the solution as I understand is - run on ci with strict but on local - dont use strict?
Martin Donath
@squidfunk
I have no experience with strict mode, maybe someone else can answer this.
Vyacheslav
@Voronenko
Good day. Perhaps silly question - if I want to have one of the pages in a completely different design - I am about to add custom layout to the theme overrides dir. But is there any way to have access to the templating variables, in particular defined by macros plugin?
I was hoping, I would be able to use custom var set defined as per https://mkdocs-macros-plugin.readthedocs.io/en/latest/ in elements of the custom template too
any workaround?
Martin Donath
@squidfunk
You can just define another template as front matter, like here: https://raw.githubusercontent.com/squidfunk/mkdocs-material/master/docs/data-privacy.md
Within this template, you can customize whatever you want, add further CSS, use plugins etc.
Vyacheslav
@Voronenko
let me rephrase than, for example above, if I want also to use custom jninja templating in overrides/main.html itself, is there place/procedure where I can specify some additional variables for that layout template
Saying I want to load some custom set of dynamic variables to be used in that layout, in particular from json files
and use it in jinja logic - for loops over data inside layout and so on
for inner data (i.e. markdown files under docs itself) I usually use macros plugin. But it definitely does not expose those vars on layout level
Martin Donath
@squidfunk
I don't think that's possible. It's more related to MkDocs/Jinja, maybe you can ask on their issue tracker or support channel.
Maybe there's another plugin that does allow that. You could also check the MkDocs plugins wiki.
Benjamin Staneck
@Stanzilla
oasvi
@oasvi
@squidfunk I am an absolute noob at this and have a few questions
How do I change the font to one that is not on Google Fonts?
How do I make a landing page like yours
And how do I host properly on GitHub Pages because I am lost
Also, when I set the favicon, it resets it after doing mkdocs build to your default one
Martin Donath
@squidfunk
The docs will get a makeover and lay out the steps in a more user friendly way in the future. I just need some time to work on that, but unfortunately I don't have much time on my hands right now. Need to finish other projects and do some client work 😅 hope that more people sponsor this project in the future, so I can devote more time to it.
meanwhile, there's a feature beach where we started tutorials section: https://deploy-preview-1586--mkdocs-material-preview.netlify.app/tutorials/github-pages/ you should find some directions there.
*branch
Benjamin Staneck
@Stanzilla
Martin Donath
@squidfunk
I don't know. If it makes a difference on a mint Material for MkDocs installation, we can preload it. For this to be integrated, we need to measure actual load time with and without on mobile and desktop devices and see whether it makes a difference. If you want to go down that road, we can work on it in as part of a PR.
However, please understand that I think that it doesn't make sense to blindly follow Lighthouse reports. Therefore – actual data in the form of a reproducible case. Probably a repository would be best.
Furthermore, measuring the Material for MkDocs landing page might not be representative. It contains a rather large image and no further content, so it's much more media-heavy than average docs.
but otherwise agree
Benjamin Staneck
@Stanzilla
image.png
heh, does it check if it is used more than once?
(webpack)
Martin Donath
@squidfunk
Lighthouse gives you an estimate, not real data. And yes, it should replace all occurrences.
Benjamin Staneck
@Stanzilla
somehow it does not want to
Benjamin Staneck
@Stanzilla
I did not change that line from your config
Benjamin Staneck
@Stanzilla
oh you meant I should add it, yeah I guess something like return content.replace(new RegExp(from, 'g'), to)
Martin Donath
@squidfunk
Jup, you can PR if you like
Haven't considered the case of multiple replacements up to now, but it should be no problem to integrate.