Skip to content

Docs: Additions to style guide - placeholders, seealso::, Diátaxis and new word list entry #9840

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

Merged
merged 15 commits into from
Jan 13, 2023

Conversation

benjaoming
Copy link
Contributor

@benjaoming benjaoming commented Dec 22, 2022

CC: @ericholscher these were the 3 things I remember from recent conversations.

Please feel free to suggest more things 👍


📚 Documentation previews 📚

…iátaxis checklist from GDocs (with few changes)
@benjaoming benjaoming requested a review from a team as a code owner December 22, 2022 18:53
@benjaoming benjaoming requested a review from agjohnson December 22, 2022 18:53
@humitos
Copy link
Member

humitos commented Dec 22, 2022

If you liked my suggestion about com/org differentiation on a note, we could add it here as well

@benjaoming
Copy link
Contributor Author

@humitos I meant to maybe add something about substitutions like |com_brand| and |org_brand| but can you reference the suggestion?

Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

Some good first steps here, had a couple additions and one question.

@@ -43,6 +43,10 @@ Content
use the ``doc`` role and not a hyperlink.
* If you are cross-referencing to a section within our website,
use the ``ref`` role with the label from the `autosectionlabel extension <http://www.sphinx-doc.org/en/master/usage/extensions/autosectionlabel.html>`__.
* Use ``<abstract concept>`` and ``<variable>`` as placeholders in code and URLs. For instance:
Copy link
Member

Choose a reason for hiding this comment

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

I was thinking $variable to differentiate them?

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! So on that note, would you prefer $variable and that the example is https://$slug.readthedocs.io ?

Copy link
Contributor

@agjohnson agjohnson Dec 22, 2022

Choose a reason for hiding this comment

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

Also, the sh interpolation syntax is nice as it give variable boundaries:

https://${slug}.readthedocs.io

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 that I prefer just one notation and that it's <variable name> and <abstract concept>. It's because I have a hard time coming up with examples from our documentation of referenced variable names that are 100% bound and not actually also an abstract concept that we introduced in the docs.

So even if we say https://$slug.readthedocs.io or https://${slug}.readthedocs.io, there actually doesn't exist a real variable called slug but just a concept from the text. So this might as well be <slug> and no distinction.

Copy link
Member

Choose a reason for hiding this comment

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

I think that seems reasonable, especially since we're using $ variables to actually be explicit vars in places in the application (eg;. $rest in redirects). So probably better to preserve them for that.

@humitos
Copy link
Member

humitos commented Dec 24, 2022

@benjaoming

I meant to maybe add something about substitutions like |com_brand| and |org_brand| but can you reference the suggestion?

.. note::
|org_brand|
You need to be *maintainer* of a subproject in order to choose it from your main project.
|com_brand|
You need to have *admin access* to the subproject in order to choose it from your main project.

The version diataxis/main is broken on Read the Docs, so I cannot link to the rendered version, but it would appear at https://docs.readthedocs.io/en/diataxis-main/subprojects.html#adding-a-subproject once it builds properly.

Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

Header changes look good 👍

@benjaoming benjaoming changed the title Docs: Additions to style guide - placeholders, seealso:: and Diátaxis Docs: Additions to style guide - placeholders, seealso::, Diátaxis and new word list entry Jan 4, 2023

Word List
---------

We have a specific way that we write common words:

* ``Git repository`` for the place that stores Git repos. We used to use ``VCS``, but this is deprecated.
* ``Git provider`` for generic references to GitHub/Bitbucket/GitLab/Gitea etc.
We avoid "host" and "platform" because they are slightly more ambiguous.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Better suggestions are most welcome 🙏

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 should definitely note that they are called "Services" in the dashboard:

image

Copy link
Member

Choose a reason for hiding this comment

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

Yea, we also call them integrations in some places too I think? It would be good to be explicit when we're talking about Git-specific hosts that are actually used for code & auth, so I think Git provider is fine? Though provider is a bit abstract as well, tbh, but so are host & platform 🤷

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As you also noted in the PR adding texts to the Dashboard UI of "Connected Services", we would want to keep changes to the current Dashboard minimal. In the upcoming Dashboard frontend, we will hopefully recall our terminology and find it natural to add some more tweaks both in the Dashboard and in the documentation. The future version of the documentation will also be less complicated to impose changes to - I feel somewhat confident about that 🤞

@benjaoming benjaoming force-pushed the styleguide-updates branch 4 times, most recently from df4686e to e7abad7 Compare January 11, 2023 20:52
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

These changes are great. A couple nits, but I think it's ready to merge.

@@ -43,6 +43,10 @@ Content
use the ``doc`` role and not a hyperlink.
* If you are cross-referencing to a section within our website,
use the ``ref`` role with the label from the `autosectionlabel extension <http://www.sphinx-doc.org/en/master/usage/extensions/autosectionlabel.html>`__.
* Use ``<abstract concept>`` and ``<variable>`` as placeholders in code and URLs. For instance:
Copy link
Member

Choose a reason for hiding this comment

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

I think that seems reasonable, especially since we're using $ variables to actually be explicit vars in places in the application (eg;. $rest in redirects). So probably better to preserve them for that.


Word List
---------

We have a specific way that we write common words:

* ``Git repository`` for the place that stores Git repos. We used to use ``VCS``, but this is deprecated.
* ``Git provider`` for generic references to GitHub/Bitbucket/GitLab/Gitea etc.
We avoid "host" and "platform" because they are slightly more ambiguous.
Copy link
Member

Choose a reason for hiding this comment

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

Yea, we also call them integrations in some places too I think? It would be good to be explicit when we're talking about Git-specific hosts that are actually used for code & auth, so I think Git provider is fine? Though provider is a bit abstract as well, tbh, but so are host & platform 🤷

* ``Git`` should be upper case, except when referring to the command, when it should be written as `:program:\`git\``.
* ``Git`` should be upper case. Except when referring to the :program:`git` command, then it should be written as `:program:\`git\``.

Substitutions
Copy link
Member

Choose a reason for hiding this comment

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

This is great 💯

@benjaoming
Copy link
Contributor Author

I hope that it's fine merging this based on @ericholscher's feedback. I don't have too many worries here, but please feel welcome to ping me back with additional inputs to these changes 👍

@benjaoming benjaoming merged commit 3ae0dc4 into readthedocs:main Jan 13, 2023
@benjaoming benjaoming deleted the styleguide-updates branch January 13, 2023 10:16
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.

4 participants