Create a "code style guide" for docs #44
Labels
No labels
Contributors' Guidance
Improve written Material
Contributors' Guidance
technical support measures
effort
high
effort
low
effort
medium
good first issue
help wanted
meeting topic
needs changes
needs reporter feedback
needs review
priority
high
priority
low
priority
medium
priority
on hold
type/content
type/misc
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
docs/tickets#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
Our tooling is very flexible, with many different ways to accomplish the same things.
Some of the different ways to do things can have functional consequences, such as whether or not translations work: docs/quick-docs#967
Others are more about consistency, such as the syntax that we use for links, or when & where & how to use variables: council/docs#287
Suggestion
It would be great to have a documented set of Do's and Don'ts somewhere, and ensure that all docs repos reference it. These should ideally include "what", "why", and links to examples like I've provided here.
Perhaps this ticket could be used to track the list of things which should go into the style guide? If you feel this is already captured somewhere, feel free to close.
Related issues
I'll add as a bonus: let's have a linter for these things!
And a bonus bonus: let's make the linter easy for people to integrate into Forge CI for docs repos!
Re: linter - see #9
@pbokoc wrote in #44 (comment):
Vale is for linting your prose -- passive voice, gerunds, that sort of thing.
I'm talking about syntax and structure: don't declare variables scoped to a single page, always use the same syntax to create links, etc. A quick search turns up https://github.com/docToolchain/asciidoc-linter/ but it looks like we'd have to write some custom rules for it. Not sure whether there are better alternatives.
I think, on one hand we should include rules/hints like the examples above in our Style Guide. On the other hand we should include it in our QA/QI of automation efforts.
What are the next steps here?