mkdocs-material icon indicating copy to clipboard operation
mkdocs-material copied to clipboard

added tutorials page and blog tutorial

Open alexvoss opened this issue 10 months ago • 3 comments

I have added the blog tutorial to a new branch as the old one got messy and I could not make sense of it.

The tutorials page is under docs/tutorials.md and can be found under Getting-started, then Tutorials.

As mentioned elsewhere, there are perhaps bits that don't need to be in here or perhaps not in all their glory (looking at you custom social layout) but I did not want to cut anything before discussion.

alexvoss avatar Apr 05 '24 17:04 alexvoss

Thanks, that is very helpful and goes in the direction I though it would go. Mayn't get to refactor by Tuesday but it should not take too long.

alexvoss avatar Apr 07 '24 06:04 alexvoss

This looks pretty good! Cutting the tutorial into multiple parts makes them way more digestible ☺️ Two things that caught my attention immediately:

  1. The blog tutorials are not linked in the navigation, i.e., the sidebar is empty. I understand that this might not work when we have too many tutorials, but just start with putting them in the navigation, so they are more easily accessible
  2. Maybe too many admonitions are used. Note that admonitions are not linkable, as they do not feature a distinctive id attribute. It might be a good idea to convert some admonitions to sections, especially at the end of the third part.

squidfunk avatar Apr 27 '24 09:04 squidfunk

We still need to finish the template repositories. Once they are online, we can merge this PR.

squidfunk avatar May 24 '24 12:05 squidfunk

@suidfunk, do you have a killer use case for the card_include and cards_exclude options in the social plugin? I realize that what I did above with the meta plugin could also be done using these. It would be good to show both but not using the same example.

alexvoss avatar May 26 '24 21:05 alexvoss

No, just leave them out. It's a general feature that allows to use different layouts via multiple instances, but it's definitely advanced use.

squidfunk avatar May 27 '24 09:05 squidfunk

@squidfunk, I have changed the custom layout example. Was unhappy that it duplicated the events, so decided to use celebrating new releases as a use case. Hope that fits the bill. The code got a bit easier, which I think is also good for a tutorial. Template is also pushed to the repo. Have a look to see if you are happy with it.

alexvoss avatar May 28 '24 03:05 alexvoss

Perfect! Let's go ahead with that.

squidfunk avatar May 28 '24 11:05 squidfunk