Use content as description if not provided #91
+90
−17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces automatic description mechanism for docs pages that has no description (or having a fake description, i.e. title = description). This mechanism developed from the existing mechanism on rule pages,
As usual, if a
description:is given (except if it is a fake description), it will use it instead of the content as the description. Also, if this PR is good, I will create another PR to remove the fake descriptions.This PR also includes adding some relevant meta tags.
These changes are done with Discord and Twitter in mind (Google will just take the content if you want to search, other services also benefit such as Bluesky, WhatsApp, Slack, etc).
Happy New Year!
Examples
Entry reports
Before
After
Management guideliens
Before
After