Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added tutorials page and blog tutorial #7014

Draft
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

alexvoss
Copy link
Sponsor Collaborator

@alexvoss alexvoss commented Apr 5, 2024

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.

Copy link
Owner

@squidfunk squidfunk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this first draft! It's already quite good, but I think it does too many detours and is quite wordy at times. I tried to comment all section that I felt need massaging. For instance, custom social cards should not be part of this tutorial. Essentially, this tutorial should be a 5-10min starter that helps the user to get a blog of the ground, ideally with a starter template that can be cloned. Reading through it takes too long, IMHO. We should create multiple smaller tutorials out of this and keep the scope of a blog introductory tutorial as lean and small as we possibly can.

An idea for a multi-level tutorial spread across several pages:

Blog

  • Quick start: Get a blog up and running in 5 minutes (blog plugin)
  • Authors, categories and tags: How to organize and group blog articles, including recommended file system structure (+ meta plugin)
  • Post URLs: Configuring and influencing post URLs (settings, overrides, etc.) (+ blog plugin advanced config)
  • Improving sharing: Social cards and RSS plugin (+ social and RSS plugin)

Each of those can be a tutorial of its own, and zoom in on a specific aspect of the blog plugin in conjunction with other plugins. IMHO a 5min quick start is absolutely essential to show our great DX, and in-depth tutorials show how powerful the blog plugin and the combination with other plugins is.


...and warnings like this!

## Feeback wanted
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proof-reading required – I spotted several typos, including this one.

Copy link
Sponsor Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I must have written that part before turning on Vale, which would have alerted me to this one. It does not catch problems where a word is correctly spelled but is the wrong word in the context. I guess Grammarly or LanguageTool would find those.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noh prlblemo!

docs/tutorials/blogs.md Outdated Show resolved Hide resolved
docs/tutorials/blogs.md Outdated Show resolved Hide resolved
docs/tutorials/blogs.md Outdated Show resolved Hide resolved
docs/tutorials/blogs.md Outdated Show resolved Hide resolved

The tutorials are a recent addition to our documentation and we are still
working out what shape they should have in the end. Please contact us if you
want to provide feedback. <!--- TODOD: how? -->
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should create a discussion asking for feedback on this tutorial, pin it, and link to that.

To add social cards to your blog you need to install some dependencies.
These differ depending on what operating system you use.

TODO: paste in installation instructions here - use snippets since this is
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't. This tutorial is already very, very long, IMHO.

Copy link
Sponsor Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps adding social cards to a blog would be a part in the social cards tutorial rather than the other way round?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jup, good idea. A tutorial on how to get up and running, configure and customize social cards could be an excellent link target from the blog target. Something like: oh, you think you're done with what can be done with Material for MkDocs? Well, check those tutorials out! ...

docs/tutorials/blogs.md Outdated Show resolved Hide resolved
docs/tutorials/blogs.md Outdated Show resolved Hide resolved
itself and what configuration options you can use modify the defaults. Required
RSS element are marked with an asterisk.

| RSS element | default | configure |
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, this is so much line noise and irrelevant at this point. I'm not even sure I understand it.

@alexvoss
Copy link
Sponsor Collaborator Author

alexvoss commented Apr 7, 2024

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.

Comment on lines 35 to 36
apply material just covered as well as reflect on how you would it in your
work work.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is reading a bit weird. Especially the "work work" which must be a typo.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jup, as I mentioned in #7014 (comment), this is a draft and not proof-read.

@squidfunk
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants