-
Notifications
You must be signed in to change notification settings - Fork 101
Writing Specification #23
Comments
This is all my thoughts for the time being. If you have any good suggestions, please let me know and we can discuss them further. |
A good guideline for a official documents. I wonder if there are tools that can help us format or check contents as yapf or pylint in python. It's could be more and more difficult to follow with increments of translated language and contributors. |
I recommend using Markdown All in one plugin in vscode or useing Markdown plugin in Jetbrains eidtors. they are support markdownlint. |
I’d suggest having a punctuation style for lists. e.g. I personally prefer always using Your issue actually is inconsistent about this: 1. Heading levels should only increment by one level at a time
2. First heading should be a top-level heading
3. Clear separation of paragraphs
4. Every sentence should end with appropriate punctuation marks.
5. please don't end with empty line in code block.
… So it probably should be: 1. Heading levels should only increment by one level at a time.
2. First heading should be a top-level heading.
3. Clear separation of paragraphs.
4. Every sentence should end with appropriate punctuation marks.
5. Please don't end with empty line in code block.
… This is generally my preference:
|
@smlbiobot You're right. I didn't notice this. I'll correct it later and add it to the Writing Specification. |
Here are some of the more possibly mundane thoughts but that I think would be an improvement.
This is same for when the docs use real curly quotes (another typographic thing): Instead of:
Write:
This example is from https://typographyforlawyers.com/straight-and-curly-quotes.html — a great article if you have no idea what I’m talking about! |
@smlbiobot Sorry, I'm busy moving these days. |
Ok, everyone, I think you can take the initiative to read this issue, which shows that you already know what we are going to do. let's beginning!
Writing Specification
In the process of contributing guide documents, we should have a consistent writing standard to help vuepress display
better and translators translate more easily. so now we draft this document for every contributor and translator.
the document has 2 part:
Overall
Most of our documents are written by the markdown. The current rules are as follows:
1. Heading levels should only increment by one level at a time
When using multiple heading levels, nested headings should increase by only one level at a time:
2. First heading should be a top-level heading
please let document Heading start at H1.
# Heading1
3. Clear separation of paragraphs
In the scenario described above, we should keep the paragraphs clear and keep an empty line between them.
# Heading this is some content... ::-1 the vuepress block should have an empty line with markdown content. -1::
4. Every sentence should end with appropriate punctuation marks.
Ensure that every sentence ends with punctuation marks such as period, ellipsis and question mark.
5. please don't end with empty line in code block.
in python file, because of PEP8, we often end with an empty line. In markdown file, it's will let code block display
more ugly. vuepress will automatically add empty line when rendering. Please don't manually add empty line in the end of
code block.
6. Leave blank before and after grammar blocks in sentences.
If there are multiple consecutive syntax blocks, only one space is left at the beginning and end of the consecutive
syntax blocks
For the use of numbers in a sentence, we also try to leave a blank space.
7. Try to use Arabic numerals.
It is inevitable to use numbers in our usual writing process. Please use Arabic numerals as much as possible.
8. Use PEP8 in code block for Python.
PEP8 is a standard Python writing standard. When you write Python in code block, please apply PEP8.
9. Try to avoid using italics
In vuepress, italics can't bring great display effect, because its font is too thin, please use bold instead of italics.
10. Emphasize keywords, not the whole sentence
In some sentences, if we emphasize a whole sentence, we can't find the key point. We should try to emphasize the
keywords instead of the whole sentence.
Custom
For some specific languages, They have a special writing standard. such as Chinese, Japanese, Korean. Because of the
particularity of language, they need special writing format.
Translators can negotiate with each other to reach a consensus. Just keep the style consistent on the basis of the above.
The text was updated successfully, but these errors were encountered: