Replies: 4 comments 7 replies
-
IKR? I really wish that GitHub included some CSS styling to forbid line breaks in code spans (it's really easy to do) 😅 I'll take some time to think about this. Here are just some random, unordered, and possibly even contradictory thoughts:
|
Beta Was this translation helpful? Give feedback.
-
Put in my vote 🙂 |
Beta Was this translation helpful? Give feedback.
-
I'm torn between the YAML idea and just a plain i guess here's a comparison of the two: - uses: actions/checkout@v3
with:
# Repository name with owner. For example, actions/checkout
# Default: ${{ github.repository }}
repository: ''
# The branch, tag or SHA to checkout. When checking out the repository that
# triggered a workflow, this defaults to the reference or SHA for that event.
# Otherwise, uses the default branch.
ref: ''
# Personal access token (PAT) used to fetch the repository. The PAT is configured
# with the local git config, which enables your scripts to run authenticated git
# commands. The post-job step removes the PAT.
#
# We recommend using a service account with the least permissions necessary. Also
# when generating a new PAT, select the least scopes necessary.
#
# [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
#
# Default: ${{ github.token }}
token: ''
# SSH key used to fetch the repository. The SSH key is configured with the local
# git config, which enables your scripts to run authenticated git commands. The
# post-job step removes the SSH key.
#
# We recommend using a service account with the least permissions necessary.
#
# [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
ssh-key: ''
After seeing this, I actually think I prefer the Also the codeblock kinda also has example stuff surrounding it? It's a bit of a conflation between "example" and "options table"... well that's my vote. 😉 P.S. if you really want to space out the - number 1
- number 2 like so:
@spenserblack any chance this sways your vote? 🗳️ |
Beta Was this translation helpful? Give feedback.
-
So to summarize on the two frontrunners: YAML codeblock
Normal
|
pros | cons |
---|---|
|
No real cons? just a lack of pros from the YAML idea; namely the copy-with-docs thing |
@spenserblack wait a minute... what if we did BOTH? A short description in the example code for any options, plus an options table? Maybe even filtered by option popularity like path
get's a comment and a <li>
entry, but commit-date
only gets an <li>
?
so like this
- uses: actions/checkout@v3
with:
# Change this to set the directory that will be published to your GitHub wiki
path: wiki
# If you're using an external GitHub repository, un-comment this and change it. You'll
# need a PAT to push to one outside of the scope of ${{ github.token }}.
# repository: jcbhmr/test-repo
# token: ${{ secrets.GITHUBX_TEST_REPO_PAT }}
...
then the full options ul
Beta Was this translation helpful? Give feedback.
-
Even adding prettier won't do anything to help the rendered version. If your descriptions are good, they should ideally be like two sentences. One to describe what the option is, and one to describe what the option does (is used for). Like:
The point is that these descriptions can get long-ish and they don't fit well in a table when rendered like this: (from your own example lol)
like wtf is that multiline
${{ github.token }}
thing?Point is there are these options that I've thought of: (see top PR original post for
<details>
sections examples of each)<pre>
block<ul>
<dl>
listHere's my rudimentary analysis of the options:
To make the
<dl>
slightly better in source, you couldbut some might argue (even me) that ☝️ is worse
We should open a discussion about this 😜
Originally posted by @jcbhmr in #13 (comment)
2 votes ·
Beta Was this translation helpful? Give feedback.
All reactions