-
Notifications
You must be signed in to change notification settings - Fork 61k
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
Shell not indicated in some examples, missing alternative shell solutions #253
Comments
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
On second thought, I think it would make more sense to have tabs similar to the platform specific content, but render the tabs for each example group instead of once at the top of the page: Changing the tab should be reflected by all other shell-specific examples. I'll try to implement a prototype. I think it will require nested Liquid tags? Let me know if you can think of another way.
|
Hard-coding it to shells might actually allow this to be implemented without nesting tags, but I'm in favor of a generic tab widget solution. I believe that it will require a group name to correctly update related example groups, and to avoid switching tabs of unrelated groups with an equally named tab. Something along:
|
Thanks for opening an issue @Simran-B! I'll let the @github/docs-content-ecosystem review 💛 |
Thanks a lot for these suggestions, @Simran-B!
Although Linux/bash is our default when showing examples (the vast majority of Actions CI is done using Linux runners), we can do a lot better at explaining and showing this in our examples.
This is a good idea, but I don't think we have plans at the moment to expand the 'tabs' we have in the documentation. This will require some engineering effort to support additional liquid tags, and it's not currently on our roadmap. At the moment, we only support operating system tags. I've triaged this as an enhancement issue, so anyone can pick up and add explanatory text/headings to examples that require some explanation on the appropriate shell/OS 🙂 |
@lucascosti Thanks for the positive feedback!
I'm looking into an implementation of general purpose tabs, but I'm uncertain about several aspects of the documentation system and hit a few problems. Is there anyone I can talk to about the architecture and the components of the system? There seems to be very little documentation about the documentation system. Shopify's liquid implementation in Ruby and its documentation is somewhat helpful, but I'm unsure how closely liquid.js follows its design. |
I'll tag in @github/docs-engineering for this, and if they're open to receiving contributions 🙂 |
I am here and now I am always ready to contribute in open source. But due to the reason that I am a beginner so I have limited knowledge and day by day I will improve my skills to contribute more and more to open source. |
I have a semi-functional prototype for a generic tab widget here if you are interested: #1606 |
@lucascosti This year, I spent a lot of times starting from scratches multiple Windows workflows and let me tell you that it was a very painful experience since the doc uses Linux as first class citizen versus Windows as third class citizen. Here is an important page which should cover all OSes: https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#github-context. This is the basic about using GitHub Actions. The GitHub Actions from the marketplace is also another painful experience since a bunch of them just does not work with Windows and we don't know until we try it. The whole experience is not great for Windows developers. |
Hi @ArchieCoder! Thanks for this feedback. Because of resource constraints, we generally focus on the most common use-case in our docs as a default, which are Linux runners. However, we can do a better job providing Windows examples where it's needed.
🤔 I'm a bit confused by this. The only Linux-specific content that I can see on that page is the Linux syntax for echoing an environment variable, e.g. We are of course open to receiving contributions for improving our content for Windows developers. 🙂
Yes, although most GitHub-developed actions should work fine on Windows, how an action works is up to its developer. Most actions are not developed by GitHub, and I would suggest interacting and collaborating with an action's developer through their action's repo. If you'd like to discuss this further, I'd suggest opening a docs discussion or starting a conversation in the GitHub Support Community so other members of the community can also discuss 🙂 |
@lucascosti Hi, Okay, you are right that the Context and expression syntax page is okay! I apologize. I posted the wrong page https://docs.github.com/en/free-pro-team@latest/actions/reference/environment-variables. |
I opened a PR to add env var examples for shells other than Bash: #2121 A couple of questions:
|
We haven't had much activity on this issue in a while and it seems to be collecting spam. I'm going to close it now, but if anyone wants to pick work back up, we can absolutely reopen it! Thanks! |
* Page setup * Edit initial content * Rename the file to remove MST * Apply suggestions from code review Co-authored-by: Ryan Booz <[email protected]> * Apply suggestions from code review Co-authored-by: Ryan Booz <[email protected]> Co-authored-by: Jacob Prall <[email protected]>
What article on docs.github.com is affected?
For instance, Actions - Workflow commands: Setting an environment variable does not say that the examples are bash specific. They won't work as-is in cmd or powershell on Windows.
What part(s) of the article would you like to see updated?
Additional information
In Workflow syntax for GitHub Actions there is actually a great example of how it should be:
The text was updated successfully, but these errors were encountered: