You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚙️ [Maintenance]: Split README standard and rollout evidence (#65)
This PR extracts the README-focused part of #61 into its own reviewable
scope.
## Included
- README content-preservation and published-landing-page defaults in
Repository-Defaults.md
- README placeholder validation guard updates
## Why
PR #61 combined multiple topics. This split isolates README policy so
review can focus on one concern.
## Traceability
- Split from: #61
Copy file name to clipboardExpand all lines: src/docs/Modules/Repository-Defaults.md
+21-5Lines changed: 21 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -199,6 +199,8 @@ Dependabot PRs still go through normal review. Automated dependency updates are
199
199
200
200
A module README is a start page, not the command reference or full manual. It brings a reader in, answers the first questions, and sends them to the right documentation surface.
201
201
202
+
Making the README shorter must not delete unique information. The README is published as the module's landing page on the documentation site (for example `psmodule.io/<ModuleName>`); the per-command reference is generated separately from comment-based help. So the README is often the only published home for prerequisites, platform and dependency notes, authentication and setup guidance, operational behavior such as caching, state, or update and versioning semantics, and upstream attribution. Trimming the README must preserve that content: keep it on the landing page, or move it only to another surface that also publishes (a command group's overview page under `src/functions/public/<Group>/<Group>.md`, or comment-based help). Only remove content that is genuinely duplicated by the generated command reference.
203
+
202
204
The README answers these questions, in this order:
203
205
204
206
| Question | Module README responsibility |
@@ -252,15 +254,25 @@ Use PowerShell help and command discovery for module details:
252
254
253
255
```powershell
254
256
Get-Command -Module <ModuleName>
255
-
Get-Help -Name 'CommandName' -Examples
257
+
Get-Help -Name <Command> -Examples
256
258
```
257
259
````
258
260
259
-
README pages should include a short capabilities or usage showcase before the documentation link when the module has working capabilities. Keep that section focused on discovery and marketing: show representative outcomes, not every command, parameter, or edge case.
261
+
In the documentation examples, replace `<Command>` with a real command exported by the module, for example `Get-Help -Name Get-GitHubRepository -Examples`, so the snippet runs as written. Do not ship placeholder tokens such as `'CommandName'` or `<CommandName>` as if they were runnable commands.
262
+
263
+
Implemented modules must include the capabilities or usage showcase before the documentation link. Keep it focused on discovery: show one to three representative outcomes, not every command, parameter, or edge case. A landing page with only an installation snippet and a documentation link is not enough for a module that has working commands.
264
+
265
+
Keep, trim, or relocate content — do not delete it:
266
+
267
+
- **Keep on the landing page:** the overview, prerequisites and requirements (PowerShell version, supported platforms, module or native dependencies), installation, the capabilities showcase, and the short operational notes a reader needs before first use.
268
+
- **Trim:** exhaustive command inventories, parameter tables, and repetitive examples that differ only by a parameter. These come from comment-based help — point to `Get-Help` and the documentation site instead of restating them.
269
+
- **Relocate only to a published home — never drop:** long-form guides and unique conceptual content (authentication and setup walkthroughs, deep operational detail, end-to-end scenarios) may move out of the README only into a surface that is actually published: a command group's overview page under `src/functions/public/<Group>/<Group>.md`, or comment-based help. A bare top-level `docs/` folder is not published by the current docs build, so moving content there drops it from the site. When there is no published home for it yet, keep the full content in the README. A longer landing page is acceptable and expected for feature-rich modules; do not shorten by deleting.
270
+
271
+
Retain upstream attribution and licensing context. Credit, acknowledgements, donation notes, and third-party license notices for wrapped or bundled work must stay in the README, or move to a clearly linked place. The rule below about community and policy sections does not apply to attribution the project is expected to carry.
260
272
261
273
README pages should not duplicate generated command documentation. Do not add full command inventories, parameter tables, or long reference sections when those details are already produced from comment-based help.
262
274
263
-
Do not add a community-file or policy link section by default. Readers can find standard repository files such as `LICENSE`, `CONTRIBUTING.md`, `SECURITY.md`, and `CODE_OF_CONDUCT.md` through GitHub conventions and the repository file tree. Link them only when the module has an unusual rule the user must know before using it.
275
+
Do not add a community-file or policy link section by default. Readers can find standard repository files such as `LICENSE`, `CONTRIBUTING.md`, `SECURITY.md`, and `CODE_OF_CONDUCT.md` through GitHub conventions and the repository file tree. Link them only when the module has an unusual rule the user must know before using it, or when it carries required upstream attribution.
264
276
265
277
## Placeholder and in-progress repositories
266
278
@@ -295,12 +307,16 @@ Before opening a README-only PR, check that the README follows the default and d
`Template-PSModule` is the exception: it intentionally keeps `{{ NAME }}` and `{{ DESCRIPTION }}` tokens because those are template inputs.
303
317
318
+
For an implemented module, also confirm the README keeps a capabilities or usage showcase and that any unique content removed from the previous version — prerequisites, setup or authentication guidance, operational notes, or upstream attribution — was relocated to `docs/`, `examples/`, or comment-based help rather than deleted.
319
+
304
320
## Documentation ownership
305
321
306
322
Command details belong in comment-based help and generated documentation. The README can showcase capability, then points to those sources for reference detail.
@@ -312,7 +328,7 @@ Use these defaults:
312
328
- Realistic end-to-end scenarios live in `examples/`.
313
329
- Product docs beyond generated command help live under `docs/` and publish through GitHub Pages or the initiative's module documentation site.
314
330
- README capability examples are short, representative, and user-facing.
315
-
- README pages stay short and stable.
331
+
- README pages stay focused and stable, and keep the narrative content that has no other published home.
316
332
317
333
This keeps the repository landing page readable and prevents drift between README content, PowerShell help, and generated documentation.
0 commit comments