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

CmdLet Help #1

Closed
lipkau opened this issue Jul 17, 2017 · 4 comments
Closed

CmdLet Help #1

lipkau opened this issue Jul 17, 2017 · 4 comments

Comments

@lipkau
Copy link
Member

lipkau commented Jul 17, 2017

Proposal

I would propose for use to use platyps in our modules.

What is PlatyPs

PlatyPS allows use to export the Comment Based Help of the functions into a MarkDown file (per function) and to convert these .md files into real external help files.

How would it work

  • We export all current help into markdown files
  • We remove all Comment Based Help from the files (Reason is listed in Cons)
  • We edit the resulting .md files to our needs
  • The CI/CD (Appveyor) would build these into external help files (.xml) and place them in the module

This would also work for the about_<moduleName> file/help

Pros

  • Better formatted help --> Examples could have more than 1 <code> line
  • Help of each function would be accessible in the GitHub repo (with nice formatting)
  • Module must not have a new release for only changes in the Help (although it can)
  • Help could be deployed with Update-Help
  • .md files could be shown (and edited) on our wordpress homepage

Cons

  • Help would no longer be in the same file as the function. Vors explained why:

hm, good question. I actually not sure what help engine does.
once you converted help to markdown, you would not be able to keep the description strings in sync: the metadata would be from the source code, but strings would be from the markdown.
hence, it will slowly but surely got out of sync between the two sources.
so I’d suggest to remove the comment based help once you converted help to markdown

@lipkau
Copy link
Member Author

lipkau commented Jul 17, 2017

@AtlassianPS/maintainers ,
What do you think? Please comment

@replicaJunction
Copy link

I'm strongly in favor of this. I just started using platyPS for some internal company modules a few days ago, and it's great! Quite simple to use and maintain the help docs. Having the help in a separate file in the repo isn't a problem as long as the CI job builds and deploys the help file properly.

Markdown isn't as scary as ReStructured Text (what I initially chose for the ReadTheDocs repo for JiraPS), so we might get more contributions to help (especially examples). It's also a lot easier to double-dip with markdown. GitHub wiki and ReadTheDocs both support markdown, though I haven't tested how either one works with platyPS's unique flavor, so we could experiment with some interactions there to have a friendly online help system as well.

@brianbunke
Copy link

brianbunke commented Jul 17, 2017

Con: It involves facing the sad reality that the internal PS help engine may never be improved
Con: Extra work 😞

Pro: It's pretty excellent once it's up and running

I'm not a GitHub wiki fan, but using GitHub Pages or ReadTheDocs would be a suitable host for these files.

@lipkau
Copy link
Member Author

lipkau commented Jul 17, 2017

OK. So we agree that it's a good idea.
I will create the task issues for the modules and start on this.

But we still need to discuss how to continue with this...
I am real fan of having the files in /docs (and not a branch)
And have an AtlassianPS/AtlassianPS-Docs (or similar) with the common stuff, such as how to contribute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants