Skip to content

Conversation

MrHinsh
Copy link
Member

@MrHinsh MrHinsh commented Sep 5, 2025

This pull request primarily enhances how documentation URLs are generated in the Get-DiscussionId.ps1 script by including the class type name in the URL path. It introduces a new function to extract the class type name from data files and updates all relevant code paths to use this value. Additionally, a minor metadata update is made to a documentation markdown file.

Improvements to documentation URL generation:

  • Added a new function Get-ClassTypeNameFromDataFile to extract the typeName property from YAML data files, with error handling for missing or invalid files. (.powershell/docs/Get-DiscussionId.ps1)
  • Updated all references to data file paths to use the correct directory: .\docs\data\classesThis pull request primarily enhances how documentation URLs are generated in the Get-DiscussionId.ps1` script by including the class type name in the URL path. It introduces a new function to extract the class type name from data files and updates all relevant code paths to use this value. Additionally, a minor metadata update is made to a documentation markdown file.

Improvements to documentation URL generation:

  • Added a new function Get-ClassTypeNameFromDataFile to extract the typeName property from YAML data files, with error handling for missing or invalid files. (.powershell/docs/Get-DiscussionId.ps1)
    instead of .\docsThis pull request primarily enhances how documentation URLs are generated in the Get-DiscussionId.ps1` script by including the class type name in the URL path. It introduces a new function to extract the class type name from data files and updates all relevant code paths to use this value. Additionally, a minor metadata update is made to a documentation markdown file.

Improvements to documentation URL generation:

  • Added a new function Get-ClassTypeNameFromDataFile to extract the typeName property from YAML data files, with error handling for missing or invalid files. (.powershell/docs/Get-DiscussionId.ps1)
    . (.powershell/docs/Get-DiscussionId.ps1) [1] [2]
  • Modified the construction of documentation URLs to include the class type name as a path segment, ensuring URLs are more specific and organized. (.powershell/docs/Get-DiscussionId.ps1) [1] [2] [3]
  • Ensured that the class type name is consistently extracted and used in both the main discussion creation logic and in the loop over markdown objects, including normalization to lowercase where appropriate. (.powershell/docs/Get-DiscussionId.ps1)

Documentation metadata update:

  • Added a discussionId field to the front matter of docs/content/docs/get-started/validation/index.md.

@MrHinsh MrHinsh self-assigned this Sep 5, 2025
@MrHinsh MrHinsh marked this pull request as ready for review September 5, 2025 04:01
@MrHinsh MrHinsh enabled auto-merge September 5, 2025 04:01
@nkdagility-actions-bot
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://blue-river-093197403-2979.westeurope.5.azurestaticapps.net

@MrHinsh MrHinsh merged commit a0f7a82 into main Sep 5, 2025
15 checks passed
@MrHinsh MrHinsh deleted the fixes-for-discussion-format- branch September 5, 2025 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant