Skip to content

Conversation

@esethna
Copy link
Contributor

@esethna esethna commented Jan 17, 2017

  1. Updates to doc guidelines based on feedback from PM team in Style guide #642
  2. Some other updates to the RST guide to make it quicker to reference and add a few more tips
  3. Replace the existing "documentation guidelines" doc with the new one.

@JeffSchering please take a look when you have a chance!

@esethna esethna added 1: PM Review Requires review by a product manager Needs PM Review #2 labels Jan 17, 2017
@esethna esethna requested review from jasonblais and lfbrock January 17, 2017 17:56
Copy link
Contributor

@JeffSchering JeffSchering left a comment

Choose a reason for hiding this comment

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

You made some good changes here,

Keyboard buttons Key1+Key2 "Press CTRL+U to upload a file."
Placeholder field {placeholder} "Use the URL in the form of {domain}.mattermost.com/{team}."
================= ================== =============================================================

Copy link
Contributor

Choose a reason for hiding this comment

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

{domain}.mattermost.com/{team}

This should be {hostname}.mattermost.com/{team}... mattermost.com is the domain

Avoid
Failed sign in? No problem! Simply enter the correct password and we'll let you in right away.
The *Status* pane is will be opened by the system.

Copy link
Contributor

Choose a reason for hiding this comment

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

The *Status* pane is will be opened by the system.

This should be The *Status* pane is opened by the system.

----
Type "mattermost-integration-giphy" in the **repo-name** field, then click Search and then the *Connect* button once Heroku finds your repository

----
Copy link
Contributor

Choose a reason for hiding this comment

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

This change moves the style guide.

From: Core Team Handbook > Documentation Style Guide

To: Core Team Handbook > Development Process > Documentation Guidelines

Is that your intent?

I think the style guide should remain at Core Team Handbook > Documentation Style Guide

But if you do want to move the guide, you need to update core.rst also.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, I've updated the core.rst to maintain the location in the TOC

Copy link
Contributor

Choose a reason for hiding this comment

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

ok

Preferred
You can view the status in the *Status* pane.
Use title case for page titles and section titles.

Copy link
Contributor

Choose a reason for hiding this comment

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

I find that the page is more visually appealing, and it's easier to scan and pick out structure when title case is reserved for page titles, and section titles use sentence case, especially for short sections. Sections are subordinate to the page and so their titles should not have the same appearance as the page title.

In any case, the conversion of section titles to title case in this PR is inconsistent... some have it, many do not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would say that almost all our documentation currently uses title case as the standard. The visual separator between page titles and section titles would be the size of the heading, when PM's discussed we thought that was sufficient. Are you okay with using title case as the standard for now and we can revisit if it comes up again in the future?

Copy link
Contributor

Choose a reason for hiding this comment

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

ok. Just make it consistent in this doc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done


Try to keep sentences to 25 words or less in length. Short, single-clause sentences are often easier to understand and easier to translate.
Try to keep sentences to 25 words or less in length. Short, single-clause sentences are often easier to understand and easier to translate. Tools such as the `Hemingway writing app <http://www.hemingwayapp.com/>`_ can be helpful in checking for readability.

Copy link
Contributor

Choose a reason for hiding this comment

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

Might be useful to mention a target readability level.

Preferred
The cows ran from wolves, coyotes, and mosquitoes.
If login fails due to an invalid password, turn Caps Lock off and then attempt to re-enter your password.

Copy link
Contributor

Choose a reason for hiding this comment

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

If login fails due to an invalid password, turn Caps Lock off and then attempt to re-enter your password.

Probably don't need the word "attempt" here.


Use active voice in preference to passive voice. Active voice has the subject of a sentence doing the action. In passive voice, the subject has an action done to it. Use passive voice only when you want to emphasize the action more than the subject.
In general, Mattermost documentation will use the serial comma unless doing so decreases clarity and understanding of the sentence.

Copy link
Contributor

Choose a reason for hiding this comment

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

In general, Mattermost documentation will use the serial comma unless doing so decreases clarity and understanding of the sentence.

Maybe: "Use the serial comma unless doing so decreases clarity and understanding of the sentence".

:scale: 50 //number is a percentage
Inserting an inline image is a bit more complicated. It's a two-part construct that consists of a label and the image directive. Surround the label text with vertical bars, the `|` character. For example:

Copy link
Contributor

Choose a reason for hiding this comment

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

" ... with vertical bars, the `|` character. ..."

Should have two backticks in reST: " ... with vertical bars, the ``|`` character. ..."

On output to HTML, the link looks like this: https://www.mattermost.org/manifesto/.

You can also create a link that has link text. For example:
Embed links into text using the following formatting, ```{text} <{url}>`_``, for example:
Copy link
Contributor

Choose a reason for hiding this comment

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

Embed links into text using the following formatting, ```{text} <{url}>`_``, for example:

I think doing it this way is less clear because there's so many non-alphanumeric characters involved in making a link. It's easy to think that { and } are part of the construct.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this okay given that we have the example to help clarify?

Copy link
Contributor

Choose a reason for hiding this comment

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

How about:

`Link display text <URL-of-website>_`

Also, I think "Embed links" might not be the best way; 'embed' is usually used for embedding images and object into the page. Probably better to say "Create links to external websites ..."

On output to HTML, the link looks like this: https://www.mattermost.org/manifesto/.

You can also create a link that has link text. For example:
Copy link
Contributor

Choose a reason for hiding this comment

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

By removing this, are you trying to say that "naked" links like this https://www.mattermost.org/manifesto/ are not allowed, and that all links must have a name and be of the form `Mattermost Manifesto <https://www.mattermost.org/manifesto/>`_?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. "Naked" links look messy in my mind, I think we should try to embed them in the text unless there is a reason to show the link.

Copy link
Contributor

Choose a reason for hiding this comment

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

unless there is a reason to show the link.

Exactly. So we need to cover the case that you would want to show the link.

Copy link
Contributor Author

@esethna esethna Jan 31, 2017

Choose a reason for hiding this comment

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

I've added a sentence to talk about naked URLs but mentioned that hyperlinks in text are preferred

@jasonblais jasonblais added the Awaiting Submitter Action Blocked on the author label Jan 19, 2017
@esethna esethna removed the Awaiting Submitter Action Blocked on the author label Jan 26, 2017
@JeffSchering JeffSchering added the Awaiting Submitter Action Blocked on the author label Jan 27, 2017
@esethna esethna removed the Awaiting Submitter Action Blocked on the author label Jan 31, 2017
------------

For bullet lists and sublists, use only the - character. For example:
For bullet lists and sublists, use `-` before the list item. For example:
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want - or - here?

In reStructuredText markup, the double colon marks the start of a section of literal text that corresponds to the HTML <pre> tag. However, the Sphinx processor applies syntax highlighting for Python to literal blocks, which is not always desired in Mattermost documentation.

To use a literal block as originally intended in the reStructuredText specification, you must cheat a little, and use the Sphinx code-block directive with the language set to `none`. For example:
To use a literal block with no syntax highlighting, use the Sphinx code-block directive with the language set to `none`. For example:
Copy link
Contributor

Choose a reason for hiding this comment

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

Formatting on none, does this follow the guidelines / should we update guidelines if it's not covered?

Internal Links to Mattermost Docs
----------------------------------

The Sphinx processor extends reStructuredText to implement references to locations within a documentation set. The extensions are called `roles`, and the two roles that are relevant in Mattermost documentation are the ``:doc:`` role and the ``:ref:`` role.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we update guideline to include the formatting for roles ? It's not clear if we should be using roles, "roles", or something else

@lfbrock lfbrock added the Awaiting Submitter Action Blocked on the author label Feb 2, 2017
@esethna esethna removed the Awaiting Submitter Action Blocked on the author label Feb 3, 2017
@lfbrock lfbrock removed the 1: PM Review Requires review by a product manager label Feb 3, 2017
@lfbrock
Copy link
Contributor

lfbrock commented Feb 3, 2017

+1

@jasonblais jasonblais added 3: Reviews Complete All reviewers have approved the pull request and removed Needs PM Review #2 labels Feb 3, 2017
@esethna esethna merged commit 68fc61a into master Feb 3, 2017
@esethna esethna deleted the style-guide-updates branch February 3, 2017 19:58
@lindy65 lindy65 removed the 3: Reviews Complete All reviewers have approved the pull request label Feb 13, 2017
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.

6 participants