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

Writing style: additions, improvements #248

Closed
wants to merge 9 commits into from

Conversation

grahamperrin
Copy link
Contributor

@grahamperrin grahamperrin commented Aug 19, 2023

https://docs.freebsd.org/en/books/fdp-primer/writing-style/

The two existing conventions should not be headed at the same level as the heading that pleads for writers to follow the two.

Add the conventions that apply to spacing between sentences.

Mark up an acronym, as it should be marked.

Demonstrate the macro:page[section] approach to linking to a manual page.

Attention to the listing for the FreeBSD-defined FreeBSD.Spacing rule for Vale.

The two conventions should not be at the same level as the heading that pleads for writers to follow the conventions
A first attempt to express the multiple conventions.
An acronym without enclosure characters is followed by direction to always use the characters.
@grahamperrin grahamperrin changed the title Writing style: conventions Writing style: additions, improvements Aug 19, 2023
Internal link to an anchor in the same page.
Briefly demonstrate how to link to a manual page.

Looking ahead: this might be better at or around
https://docs.freebsd.org/en/books/fdp-primer/asciidoctor-primer/#asciidoctor-links

For now: present a tip, below the correct way to refer to a manual page – for newcomers to get a better idea of how to write what's required (including use of a FreeBSD-defined macro).
Attention to the FreeBSD-defined Vale rule, with reference to the sentence-spacing anchor in the same page.
@@ -321,7 +352,7 @@ This rule proposes better wording.

. FreeBSD.Hyphens: Often adverbs ending with 'ly' are added with a hyphen which is wrong.

. FreeBSD.Spacing: Often double spaces are hard to catch with the naked eye and this is addressed here.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was the presence of a listing for this rule consistent with the NO below?

FreeBSD.Spacing = NO

@@ -321,7 +352,7 @@ This rule proposes better wording.

. FreeBSD.Hyphens: Often adverbs ending with 'ly' are added with a hyphen which is wrong.

. FreeBSD.Spacing: Often double spaces are hard to catch with the naked eye and this is addressed here.
. FreeBSD.Spacing: Between a pair of sentences, it may be incorrect to have two spaces (see link:{sentence-spacing}[spacing between sentences]).
Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://github.com/freebsd/freebsd-doc/tree/main/.vale/styles/FreeBSD

  • I can not see a related .yml file
  • am I looking in the wrong place?

@grahamperrin grahamperrin marked this pull request as ready for review August 19, 2023 13:33
@sergio-carlavilla
Copy link
Contributor

Please create a review in phabricator and add the doceng team.
Is the Doceng Team who approves the changes in the writing style of the documentation

@grahamperrin
Copy link
Contributor Author

Before this goes to Phabricator, can someone answer the two questions?

I don't want to go there with something that's obviously wrong.

@sergio-carlavilla
Copy link
Contributor

The purpose of phabricator is exactly that, make comments on the changes and decide if it’s ok or not

Comment on lines +163 to +166
[TIP]
====
`man:csh[1]` -- `man:` for the FreeBSD-defined _ManPageMacro_, `csh` names a page and `[1]` specifies the section of the manual from which the named page is taken.
====
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lwhsu
Copy link
Member

lwhsu commented Aug 19, 2023

Please don't use pull request in the main repository as the personal working area. Every event in this repository generates a notification to the watcher and that caused unnecessary alarm and cause other important ones got overwhelmed.

The personal fork is exactly for this purpose and please use it before the change is ready for review.

@grahamperrin grahamperrin marked this pull request as draft August 19, 2023 14:24
@grahamperrin
Copy link
Contributor Author

alarm

Are settings somehow not effective?

image

@lwhsu
Copy link
Member

lwhsu commented Aug 19, 2023

alarm

Are settings somehow not effective?

image

Are you telling everyone to customize notification for all your WIP and when you create a new one? Things should not work like this...

@grahamperrin

This comment was marked as resolved.

@lwhsu
Copy link
Member

lwhsu commented Aug 19, 2023

Where do I get an overview of comments for the branch in my fork?

I don't really understand what you mean, but you can still create a pull request in your fork, and invite people to join review. That could be a better workflow for not letting all your WIPs overwhelm other important information.

@grahamperrin
Copy link
Contributor Author

pull request in … fork

https://github.com/freebsd/freebsd-doc/forks?include=active&page=1&sort_by=open_pull_request_counts apparently zero at the time of writing.

Please know that the UX is inferior.

@grahamperrin

This comment was marked as resolved.

@grahamperrin
Copy link
Contributor Author

generates a notification to the watcher and that caused unnecessary alarm

Some mailing lists are largely populated by notifications from Bugzilla. I don't complain about these notifications. I sometimes set the preference in Bugzilla to not receive notifications.

@sergio-carlavilla
Copy link
Contributor

I don't really understand what you mean,

I mean, comments made by me or by other people. There's at least one.

This is the purpose of phabricator…

@sergio-carlavilla
Copy link
Contributor

sergio-carlavilla commented Aug 19, 2023

generates a notification to the watcher and that caused unnecessary alarm

Some mailing lists are largely populated by notifications from Bugzilla. I don't complain about these notifications. I sometimes set the preference in Bugzilla to not receive notifications.

Yes, but you can configure this in a mailing list.

We cannot make this configuration for each PR you open here, this is the problem.

@grahamperrin
Copy link
Contributor Author

Are you telling everyone to customize notification

No.

A person might prefer to click Status

image

@grahamperrin
Copy link
Contributor Author

#248 (comment)

Where do I get an overview of comments for the branch in my fork?

I found the answer to my question. I'll hide it as resolved.

@sergio-carlavilla
Copy link
Contributor

So, can you please move all the drafts to your personal fork, close in the FreeBSD repo and when are ready open a review in phabricator?

@lwhsu
Copy link
Member

lwhsu commented Aug 20, 2023

Are you telling everyone to customize notification

No.

A person might prefer to click Status

image

You misunderstand the workflow. People want to work on something else, they create a fork of a repository, and doing their work in a branch locally or in the personal fork. When the work is done and ready for review. Submit a pull request to official repository or phabricator (currently preferred) and people watch those repositories will be notified and will start the review and comment. Don't do it before things are actually ready so people won't be notified by your WIP.

Of course people can click on that status button, but that's for suppressing the "PR ready for review they don't want to follow", not for a PR which shouldn't be created yet. Why ask others to do more things while you can do the right thing in the beginning?

If you really want to check what your PR will be like, and invite people to review or comment or WIP, create a pull request to your personal fork first, then invite people can help you. After you're comfortable for more formal review, you can create another pull request to this main repository, or phabricator. Just buzzing everyone isn't the most helpful way to get things done. Trust me, I am happy to review your code and provide comments, but if there is overwhelming notification on all your actions, that will become a distraction instead.

@grahamperrin
Copy link
Contributor Author

I found the answer to my question. …

#248 (comment)

So, can you please move all the drafts to your personal fork, close in the FreeBSD repo and when are ready open a review in phabricator?

Is there a move feature?

The question was specific to an overview of comments.

I found this overview, however it's too simplistic: no overview of what's outstanding, and so on.

@sergio-carlavilla
Copy link
Contributor

sergio-carlavilla commented Aug 20, 2023

I found the answer to my question. …

#248 (comment)

So, can you please move all the drafts to your personal fork, close in the FreeBSD repo and when are ready open a review in phabricator?

Is there a move feature?

The question was specific to an overview of comments.

I found this overview, however it's too simplistic: no overview of what's outstanding, and so on.

No, but as Li-Wen pointed, you can create a fork and then open PR on your own fork, and then when the PR it’s ready open a review in phabricator.

Edit: Or if the functionality exists, I’m not aware of it

@grahamperrin
Copy link
Contributor Author

Some mailing lists are largely populated by notifications from Bugzilla. I don't complain about these notifications. I sometimes set the preference in Bugzilla to not receive notifications.

Yes, but you can configure this in a mailing list. …

Do you mean, for the list administrator to reject notification emails from Bugzilla?

As an end user of a list, for example:

image

– I see no way to to filter.

@sergio-carlavilla
Copy link
Contributor

Some mailing lists are largely populated by notifications from Bugzilla. I don't complain about these notifications. I sometimes set the preference in Bugzilla to not receive notifications.

Yes, but you can configure this in a mailing list. …

Do you mean, for the list administrator to reject notification emails from Bugzilla?

As an end user of a list, for example:

image

– I see no way to to filter.

Graham, we need to focus in the problem here.
If you have doubts about the mailing lists, send an email to the mailing list admin.

Can you please move all your PR to your personal fork?

Thanks.

@grahamperrin
Copy link
Contributor Author

If you have doubts about the mailing lists, send an email to the mailing list admin.

Key point:

#248 (comment)

I don't complain about these notifications.

@grahamperrin grahamperrin deleted the primer branch August 20, 2023 11:14
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.

3 participants