MSAdministrator / PSLogging

A PowerShell Logging Module that uses Classes to log to the console, log file, or the event viewer
MIT License
13 stars 3 forks source link

Scaffold Out Reference Docs for Classes #3

Open michaeltlombardi opened 7 years ago

michaeltlombardi commented 7 years ago

We probably should have the class reference docs cover:

PlatyPS doesn't (yet) have a way to generate reference documentation for PowerShell classes, so we'll need to work something out for this. The work for the event viewer class currently pulls mainly from the reference documentation layout for a function, rather than a class.

For an example of class documentation from MSDN, see the ScheduledJobDefinition class.

MSAdministrator commented 7 years ago

Thanks for this! I believe someone (maybe KevMar) created a port of PlatyPS to include Classes. I'll have to review and incorporate possibly if it's publicly available.

michaeltlombardi commented 7 years ago

If that exists, we need it in the mainline project, because it's a painful thing to have to address manually for each class for every module.

MSAdministrator commented 7 years ago

@michaeltlombardi question for you if you don't mind. I have added documentation to "documentation" branch in the following locations:

I'm not sure exactly what I should add to these locations:

Do you have a reference or link that I could use to create said documentation?

Thanks again for your help!

michaeltlombardi commented 7 years ago

Sorry for not responding sooner - those are what you can think of as section-index pages. There's nothing super valuable in them by default (gitbook does weird things if you forget to scaffold out readmes for a chapter), but you can update them with things like:

You can also leave them pretty barebones, most people won't invest huge effort into them.

Looking at the uploaded class docs now!