Replies: 1 comment
-
Thanks for sharing your experience – those are very valuable insights, as it helps us making the blog plugin better.
It should be enough to run mkdocs-material/.github/workflows/documentation.yml Lines 68 to 69 in d144a1c The publishing guide doesn't include it, because the GitHub action tries to be as minimal as possible, and the optimize plugin for which this is for (not the blog plugin) mentions a link to the image processing guide in the documentation:
This is mentioned in the MkDocs documentation. We can't mirror all options from MkDocs, but since Material for MkDocs is the main entrypoint for many people building documentation, we should add an example for hosting on a custom domain to our docs. (cc @alexvoss)
It is mentioned in our documentation, albeit not at the best location. We'll be reworking the customization guide as well in the near future, explaining how to create and use custom templates. (cc @alexvoss)
We can certainly add the top-level
The
I'm sorry, but we can't offer a CSS crash course on our docs. Our docs are already 91 pages and growing, and maintaining a documentation of this size becomes quite a challenge. However, we offer examples in our reference how to use buttons, in fact, exactly for your use case: [Subscribe to our newsletter](<url-to-newsletter>){ .md-button } I'm not sure what you mean by integrations – we try to provide the basic building blocks with which you can build practically everything you wish for. Other than that, I'm happy to learn about what you specifically imagine how this should work.
Yes, we're thinking about writing a few blog posts how to migrate from other systems like Jekyll and friends, but we would have to rely on the community to create scripts that simplify integrations. Please understand that we must try to invest our time with the maximum possible impact, and writing tools for blog integrations for specific other tools provides a much smaller impact that working for example on the new search. Thus, we have to rely on the community to help us our on those matters
Everything that works with Material for MkDocs should also work with the blog plugin – that the entire idea of it: you can leverage the entirety of powerful components for blogging that you already use for technical writing. We're also happy for any further feedback we receive! |
Beta Was this translation helpful? Give feedback.
-
First of all, kudos for the new blog plugin and the excellent documentation!
I recently moved my blog, and thought it might be helpful to share some of the problems I encountered, as this kind of feedback can be hard to come by. A small way to kind of pay back & hopefully help make mkdocs-material better for more users!
pngquant
for mkdocs imaging . Just adding a step withapt install pngquant
did not work for me first try. I solved it using a custom action, see https://github.com/timvink/personal-site/blob/33b08538220693144f7e829f1ef1b40566fc29e0/.github/workflows/ci.yml#L23C1-L26C23 .CNAME
file to thegh-pages
branch. But everytime my site re-builds, it deletes theCNAME
file and my website becomes unavailable. Solution was to add theCNAME
file to thedocs/
folder in my master branch.home.html
and add that to a page (index.md
in this case) using the meta YAML, is actually very useful. I was surprised this was not in the docs.. this kind of customization seems common to me.home.html
for myindex.md
, I wanted to loop over the blog pages, just like in theblog.html
template. But those blog pages where not available in the jinja2 context. I solved that by creating a custom mkdocs hook script like this:It's not intuitive.. maybe the list of blogpages can be added to the context by the blog plugin itself?
<domainname>.<tld>/<slug-of-blogpost>
. Even with the customized slug (which I used) I am still forced to use<domainname>.<tld>/blog/<slug-of-blogpost>
. Notice the/blog
in there. I did not want to break my old links by migrating, so I usedmkdocs-redirect
plugin to manually map the old links to the new. I recommend the mkdocs-material docs refer tomkdocs-redirect
when explain how to migrate and/or allow changing the url for a blogpost from the root (instead of from /blog)In case you're interested, you can see the source code in https://github.com/timvink/personal-site/tree/main
Overall very happy with the migration -- looking forward to using all the mkdocs functionality for blogging!
Might report back after a while with new findings. I have yet to try out things like using a jupyter notebook (https://github.com/greenape/mknotebooks) as a blogpost, which could be very cool for technical blogging; inserting random javascript interactive snippets, etc.
Beta Was this translation helpful? Give feedback.
All reactions