platyPS | Write PowerShell External Help in Markdown
kandi X-RAY | platyPS Summary
kandi X-RAY | platyPS Summary
PlatyPS provides a way to:. Markdown help docs can be generated from old external help files (also known as MAML-xml help), the command objects (reflection), or both. PlatyPS can also generate cab files for Update-Help.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of platyPS
platyPS Key Features
platyPS Examples and Code Snippets
Community Discussions
Trending Discussions on platyPS
QUESTION
I've been trying to improve our PS documentation and started playing with PlatyPS. So far, it's been great, I have nice markdown docs now. I'm also able to generate MAML for use with CLI documentation from it and have been able to remove the doc-comment strings from my modules.
Unfortunately, when I import my module it's unable to see the MAML help files and Get-Help
for my exported function is very barebones.
My understanding is that when packaging MAML within a module, they need to be placed as follows:
...ANSWER
Answered 2022-Feb-09 at 05:09As it turns out, I was hitting a problem when generating the MAML from the markdown source. I was following this guide to PlatyPS and New-ExternalHelp
was not generating help for the commands I happened to be testing with.
These commands were not named with the Verb-Noun
nomenclature, and the files shared a name with their matching function. I took one of the functions and gave it a Verb-Noun
name instead and did the same with its corresponding .md
file. With a pattern of Verb-Noun.md
, New-ExternalHelp
now generated the command's MAML and placed them inside of MyModuleName-help.xml
.
However, this is not what I wanted. These particular functions are named like commands on purpose, and I do not want to follow the Verb-Noun
nomenclature for them. An edge case, probably, but I did find a solution for this as well. After a bit of testing, only the command name in the source .md
file for that command matters as far as MAML generation.
The filename needs to match the Verb-Noun.md
pattern, but you can have the command called FunctionName
inside and the help will generate correctly for the command FunctionName
, not Verb-Noun
. Now when I import the module, I get the correct help topic for the commands that were previously missing.
Now my .md
file no longer matches the command name but that isn't the end of the world.
QUESTION
I'm creating a binary PS module with PlatyPS help. I have a local poor-man's deploy script like this (PS 5.1):
...ANSWER
Answered 2021-Feb-18 at 21:11Answering my own question. My confusion stems from the fact that
QUESTION
I have a local Git repo linked to Azure Repos.I have a Master, Development and several feature branches. I want to push all of my changes to the development branch and then merge that to Master.
The issue is my git status keeps changing from "...up to date..." to "Your branch is ahead...". If I use git pull/git push, my git status says everything is good, but if I wait a few minutes, git status says my branch is ahead again. I'm not sure what I broke.
...ANSWER
Answered 2020-Feb-04 at 15:08Have you tried something explicit like
git push origin development:development
to ensure your local development
branch is pushed to origin/development
?
EDIT (04/02/2020) : See my comment below also about using development
and Development
as two of your branch names
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install platyPS
Install platyPS module from the PowerShell Gallery:
Create initial Markdown help for MyAwesomeModule module:
Edit markdown files in .\docs folder and populate {{ ... }} placeholders with missed help content.
Create external help from markdown help
Congratulations, your help is now in markdown!
Now, if your module code changes, you can easily update your markdown help with
For information about building from sources and contributing see contributing guidelines.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page