-
Notifications
You must be signed in to change notification settings - Fork 49
Improve Wiki Generation - Automatically Add Examples to Appropriate Resource Page #226
Comments
Maybe we can use the Also I don't think we should use
So maybe Example files should have a comment block like this. Maybe <#
.SYNOPSIS
Create a Hub and Spoke style DFS Replication Group
.DESCRIPTION
Create a Hub and Spoke style DFS Replication Group called WebSite
containing one Hub member and one or more Spoke members. The name of
the Hub computer is passed in the HubComputerName parameter and
defaults to 'Hub'. The Hub member contains a folder called WebSiteFiles
with the path 'd:\inetpub\wwwroot\WebSiteFiles'. This path is
replicated to all members of the SpokeComputerName parameter array
into the 'd:\inetpub\wwwroot\WebSiteFiles' folder. The spoke
computers are passed in the SpokeComputerName parameter and
defaults to 'Spoke1', 'Spoke2' and 'Spoke3'.
.EXAMPLE
Example -OutputPath $env:TEMP
Compiles the configuration and saves it into the temp folder.
.LINK
DFSReplicationGroup
.LINK
DFSReplicationGroupFolder
.LINK
DFSReplicationGroupMembership
.LINK
DFSReplicationGroupConnection
#> This renders like this (using
|
This definitely has some promise. I think we could support the current method (without linking) and the new method at the same time so that there could be a transition period (as it would require a bit of work in each repo to convert over). So I'd propose making this change and in such a way that each repo could opt-in to this new auto documentation method once the content was in the newer format. I'm happy to look at doing this over the weekend. |
Agree that the transition should be opt-in if we can't do it seamless, like if |
I've had a think about this and I do think I could probably make it "auto-detect" with-out using the opt-in. So I'll give this a go over the weekend (makes a change from just creating and reviewing resources 😁) |
I know what you mean 😁 |
Forgot about this one! Looks like I'll need to get it sorted before I can use the publish examples! Try today/tomorrow. |
Examples sometimes need to appear in multiple resources README.MD in wiki auto-generation repos. To do this currently the same example is stored multiple times in the repo.
From @johlju - dsccommunity/DFSDsc#64 (comment)
The text was updated successfully, but these errors were encountered: