-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Conversation
…iátaxis checklist from GDocs (with few changes)
If you liked my suggestion about com/org differentiation on a note, we could add it here as well |
@humitos I meant to maybe add something about substitutions like |
There was a problem hiding this 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: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Co-authored-by: Eric Holscher <[email protected]>
readthedocs.org/docs/user/guides/subprojects.rst Lines 25 to 32 in d8f5282
The version |
… we want to use without a strict formulation
…s.org into styleguide-updates
There was a problem hiding this 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 👍
|
||
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. |
There was a problem hiding this comment.
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 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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 🤷
There was a problem hiding this comment.
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 🤞
df4686e
to
e7abad7
Compare
e7abad7
to
2bc794e
Compare
There was a problem hiding this 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: |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great 💯
Co-authored-by: Eric Holscher <[email protected]>
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 👍 |
CC: @ericholscher these were the 3 things I remember from recent conversations.
Please feel free to suggest more things 👍
📚 Documentation previews 📚
docs
): https://docs--9840.org.readthedocs.build/en/9840/dev
): https://dev--9840.org.readthedocs.build/en/9840/