Commit a0f7a82
authored
Add Get-ClassTypeNameFromDataFile function and update documentation links (#2979)
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]](diffhunk://#diff-a57e4bef6b3d02f906acbc6ae2295862ef115ce58be8845e0d635d9d31e6d346R482-R486)
[[2]](diffhunk://#diff-a57e4bef6b3d02f906acbc6ae2295862ef115ce58be8845e0d635d9d31e6d346R767-R772)
* 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]](diffhunk://#diff-a57e4bef6b3d02f906acbc6ae2295862ef115ce58be8845e0d635d9d31e6d346L493-R517)
[[2]](diffhunk://#diff-a57e4bef6b3d02f906acbc6ae2295862ef115ce58be8845e0d635d9d31e6d346L538-R562)
[[3]](diffhunk://#diff-a57e4bef6b3d02f906acbc6ae2295862ef115ce58be8845e0d635d9d31e6d346L755-R781)
* 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`.File tree
2 files changed
+35
-9
lines changed- .powershell/docs
- docs/content/docs/get-started/validation
2 files changed
+35
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
421 | 443 | | |
422 | 444 | | |
423 | 445 | | |
| |||
457 | 479 | | |
458 | 480 | | |
459 | 481 | | |
| 482 | + | |
460 | 483 | | |
461 | | - | |
| 484 | + | |
462 | 485 | | |
| 486 | + | |
463 | 487 | | |
464 | 488 | | |
465 | 489 | | |
| |||
490 | 514 | | |
491 | 515 | | |
492 | 516 | | |
493 | | - | |
| 517 | + | |
494 | 518 | | |
495 | 519 | | |
496 | 520 | | |
| |||
535 | 559 | | |
536 | 560 | | |
537 | 561 | | |
538 | | - | |
| 562 | + | |
539 | 563 | | |
540 | 564 | | |
541 | 565 | | |
| |||
740 | 764 | | |
741 | 765 | | |
742 | 766 | | |
| 767 | + | |
743 | 768 | | |
744 | 769 | | |
745 | | - | |
| 770 | + | |
746 | 771 | | |
| 772 | + | |
747 | 773 | | |
748 | 774 | | |
749 | 775 | | |
| |||
752 | 778 | | |
753 | 779 | | |
754 | 780 | | |
755 | | - | |
| 781 | + | |
756 | 782 | | |
757 | 783 | | |
758 | 784 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
0 commit comments