Docs website follow-ups: HelpUri, unfenced examples, duplicate function

Aperta
#219 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
powershell

Direzione di ricerca

Start with the listed cmdlet help blocks and the generate_docs task, then inspect src/Public/Tenant/Update-FabricTenantSetting.ps1 beside Update-FabricCapacityTenantSettingOverrides.ps1. The issue leaves decisions open about the HelpUri host and whether the duplicate file should become a new command or be deleted, and that command would need tests and docs. Done means resolving those decisions, correcting the examples and duplicate definition, and regenerating docs.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

documentation

Follow-ups found while building the documentation website (#3, PR #218).

1. Point HelpUri at the documentation website

Every command now has a stable page at https://dataplat.github.io/FabricTools/commands/<Name>/. If HelpUri points there, Get-Help <Command> -Online opens it, as suggested in #3.

  • Pass HelpUri to New-MarkdownCommandHelp (PlatyPS v1 supports -HelpUri) in the generate_docs and Generate_help_from_built_module tasks, and/or set [CmdletBinding(HelpUri = '...')] in the cmdlets
  • Decide whether to use the github.io URL now or wait for fabrictools.io, so the URL changes only once
  • Merge only after the site is deployed (PR #218, plus Settings > Pages > Source = GitHub Actions)

2. .EXAMPLE code without code fences

In these cmdlets, the .EXAMPLE blocks in comment-based help put code and explanation on plain lines, so PlatyPS writes the code as normal text instead of a ```powershell block. The website detects and formats this code, but Get-Help -Examples output and the markdown help are inconsistent with the other cmdlets.

  • Connect-FabricGit
  • Disconnect-FabricGit
  • Get-FabricGitConnection
  • Get-FabricGitCredential
  • Get-FabricGitStatus
  • Initialize-FabricGitConnection
  • Invoke-FabricGitCommit
  • Invoke-FabricGitUpdate
  • Update-FabricGitCredential
  • Start-FabricNotebook
  • Get-FabricAPIclusterURI
  • Get-FabricAuthToken
  • Get-FabricConnection
  • Get-FabricDebugInfo
  • Get-FabricUsageMetricsQuery
  • Invoke-FabricRestMethod

Follow the format of the other cmdlets (code first, then the explanation), then regenerate the docs with ./build.ps1 -Tasks generate_docs.

Optional: add a QA test that fails when an example in docs/en-US has no code fence.

3. Duplicate function in Update-FabricTenantSetting.ps1

src/Public/Tenant/Update-FabricTenantSetting.ps1 defines Update-FabricCapacityTenantSettingOverrides, the same function as src/Public/Tenant/Update-FabricCapacityTenantSettingOverrides.ps1. Which definition wins depends on build order, and there is no Update-FabricTenantSetting command.

  • Decide whether Update-FabricTenantSetting (updating tenant settings) was intended. If so, implement it under that name with tests and docs. If not, delete the file.
  • Optional: add a QA test that each file in src/Public defines one function, named like the file.

🤖 Generated with Claude Code

Lingua principale
PowerShell
Stelle
60
Fork
18
Merge medio
11h 38m
PR unite (30g)
26

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dataplat/FabricTools

Tutte le issue di dataplat/FabricTools

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.