Skip to content

Commit

Permalink
Update layout for tags (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHinsh authored Feb 18, 2025
2 parents 9b0dcf5 + ad02bb8 commit 0ca5e52
Show file tree
Hide file tree
Showing 52 changed files with 13,030 additions and 641 deletions.
65 changes: 30 additions & 35 deletions .powershell/single-use/resources/Update-ReourcesFrontMatter.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $outputDir = ".\site\content\resources\"
$resources = $null
# Get list of directories and select the first 10
$resources = Get-ChildItem -Path $outputDir -Recurse -Filter "index.md" | Sort-Object { $_ } -Descending #| Select-Object -Skip 600 # | Select-Object -First 300
$resources += Get-ChildItem -Path "site\content\capabilities\training-courses" -Recurse -Include "index.md", "_index.md" | Sort-Object { $_ } -Descending
#$resources += Get-ChildItem -Path "site\content\capabilities\training-courses" -Recurse -Include "index.md", "_index.md" | Sort-Object { $_ } -Descending

$Counter = 1

Expand Down Expand Up @@ -191,43 +191,38 @@ while ($hugoMarkdownQueue.Count -gt 0 -or $hugoMarkdownBatchQueue.Count -gt 0) {
if ($404aliases -is [array] -and $404aliases.Count -gt 0) {
Update-StringList -frontMatter $hugoMarkdown.FrontMatter -fieldName 'aliasesFor404' -values $404aliases -addAfter 'aliases'
}

if ($hugoMarkdown.FrontMatter.draft -ne $true -or ($hugoMarkdown.FrontMatter.ResourceType -eq "videos" -and $hugoMarkdown.FrontMatter.isShort -ne $true)) {
# Do for Non-Draft items only

#================Themes, Categories, & TAGS==========================
$BodyContent = $hugoMarkdown.BodyContent
If ($hugoMarkdown.FrontMatter.ResourceType -eq "videos") {
$captionsPath = Join-Path $hugoMarkdown.FolderPath "index.captions.en.md"
if (Test-Path ($captionsPath )) {
$BodyContent = Get-Content $captionsPath -Raw
}
#================Themes, Categories, & TAGS==========================
$BodyContent = $hugoMarkdown.BodyContent
If ($hugoMarkdown.FrontMatter.ResourceType -eq "videos") {
$captionsPath = Join-Path $hugoMarkdown.FolderPath "index.captions.en.md"
if (Test-Path ($captionsPath )) {
$BodyContent = Get-Content $captionsPath -Raw
}
#-----------------marketing-------------------
# $marketingClassification = Get-CategoryConfidenceWithChecksum -ClassificationType "marketing" -Catalog $marketingCatalog -CacheFolder $hugoMarkdown.FolderPath -ResourceContent $BodyContent -ResourceTitle $hugoMarkdown.FrontMatter.title -MaxCategories 3
# $categories = $marketingClassification | ConvertFrom-Json | ForEach-Object { $_.category } #| Sort-Object
# Update-StringList -frontMatter $hugoMarkdown.FrontMatter -fieldName 'marketing' -values @($categories) -Overwrite
#-----------------Categories-------------------
$categoryClassification = Get-CategoryConfidenceWithChecksum -updateMissing `
-ClassificationType "categories" `
-Catalog $categoriesCatalog `
-CacheFolder $hugoMarkdown.FolderPath `
-ResourceContent $BodyContent `
-ResourceTitle $hugoMarkdown.FrontMatter.title
$categories = $categoryClassification | ConvertFrom-Json | Sort-Object final_score -Descending | Select-Object -First 3 | ForEach-Object { $_.category } #| Sort-Object
Update-StringList -frontMatter $hugoMarkdown.FrontMatter -fieldName 'categories' -values @($categories) -Overwrite
#-----------------Tags-------------------
$tagClassification = Get-CategoryConfidenceWithChecksum -batch -updateMissing `
-ClassificationType "tags" `
-Catalog $tagsCatalog `
-CacheFolder $hugoMarkdown.FolderPath `
-ResourceContent $BodyContent `
-ResourceTitle $hugoMarkdown.FrontMatter.title
}
#-----------------marketing-------------------
# $marketingClassification = Get-CategoryConfidenceWithChecksum -ClassificationType "marketing" -Catalog $marketingCatalog -CacheFolder $hugoMarkdown.FolderPath -ResourceContent $BodyContent -ResourceTitle $hugoMarkdown.FrontMatter.title -MaxCategories 3
# $categories = $marketingClassification | ConvertFrom-Json | ForEach-Object { $_.category } #| Sort-Object
# Update-StringList -frontMatter $hugoMarkdown.FrontMatter -fieldName 'marketing' -values @($categories) -Overwrite
#-----------------Categories-------------------
$categoryClassification = Get-CategoryConfidenceWithChecksum -updateMissing `
-ClassificationType "categories" `
-Catalog $categoriesCatalog `
-CacheFolder $hugoMarkdown.FolderPath `
-ResourceContent $BodyContent `
-ResourceTitle $hugoMarkdown.FrontMatter.title
$categories = $categoryClassification | ConvertFrom-Json | Sort-Object final_score -Descending | Select-Object -First 3 | ForEach-Object { $_.category } #| Sort-Object
Update-StringList -frontMatter $hugoMarkdown.FrontMatter -fieldName 'categories' -values @($categories) -Overwrite
#-----------------Tags-------------------
$tagClassification = Get-CategoryConfidenceWithChecksum -batch -updateMissing `
-ClassificationType "tags" `
-Catalog $tagsCatalog `
-CacheFolder $hugoMarkdown.FolderPath `
-ResourceContent $BodyContent `
-ResourceTitle $hugoMarkdown.FrontMatter.title

$tags = $tagClassification | ConvertFrom-Json | Sort-Object final_score -Descending | Select-Object -First 10 | ForEach-Object { $_.category } #| Sort-Object
Update-StringList -frontMatter $hugoMarkdown.FrontMatter -fieldName 'tags' -values @($tags) -Overwrite
$tags = $tagClassification | ConvertFrom-Json | Sort-Object final_score -Descending | Select-Object -First 10 | ForEach-Object { $_.category } #| Sort-Object
Update-StringList -frontMatter $hugoMarkdown.FrontMatter -fieldName 'tags' -values @($tags) -Overwrite

}
# =================COMPLETE===================
# =================CONTENT===================
switch ($ResourceType) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -602,15 +602,6 @@
"reasoning": "Content is primarily about Scrum roles and events, with no mention of Continuous Delivery principles or practices.",
"level": "Ignored"
},
"BetaCodex": {
"category": "BetaCodex",
"calculated_at": "2025-02-12T21:26:27",
"ai_confidence": 0,
"non_ai_confidence": 0,
"final_score": 0.0,
"reasoning": "Content does not discuss BetaCodex principles or practices; it is unrelated to the category.",
"level": "Ignored"
},
"Cross Functional Teams": {
"category": "Cross Functional Teams",
"calculated_at": "2025-02-12T21:26:29",
Expand Down Expand Up @@ -1321,5 +1312,68 @@
"final_score": 0.0,
"reasoning": "Content does not discuss any psychological principles or theories related to organisational behaviour; it appears to be about Scrum roles and events.",
"level": "Ignored"
},
"Leadership": {
"category": "Leadership",
"calculated_at": "2025-02-18T17:29:05",
"ai_confidence": 0,
"non_ai_confidence": 0,
"final_score": 0.0,
"reasoning": "Content does not provide any relevant information or discussion on leadership practices; it is too vague and lacks substance.",
"level": "Ignored"
},
"Social Technologies": {
"category": "Social Technologies",
"calculated_at": "2025-02-18T17:29:06",
"ai_confidence": 0,
"non_ai_confidence": 0,
"final_score": 0.0,
"reasoning": "The content does not provide any substantial information or discussion related to Social Technologies, specifically Scrum or its components. It is too vague and lacks relevant details.",
"level": "Ignored"
},
"Scrum": {
"category": "Scrum",
"calculated_at": "2025-02-18T17:29:08",
"ai_confidence": 0,
"non_ai_confidence": 0,
"final_score": 0.0,
"reasoning": "The content does not provide any substantial information or discussion about Scrum principles, practices, or frameworks. It is too vague and lacks detail to be classified under the Scrum category.",
"level": "Ignored"
},
"Beta Codex": {
"category": "Beta Codex",
"calculated_at": "2025-02-18T17:29:11",
"ai_confidence": 0,
"non_ai_confidence": 0,
"final_score": 0.0,
"reasoning": "Content does not provide any relevant information or discussion related to BetaCodex principles or practices.",
"level": "Ignored"
},
"One Engineering System (1ES)": {
"category": "One Engineering System (1ES)",
"calculated_at": "2025-02-18T17:29:13",
"ai_confidence": 0,
"non_ai_confidence": 0,
"final_score": 0.0,
"reasoning": "Content does not discuss the One Engineering System (1ES) or its principles; it is unrelated and lacks relevant information.",
"level": "Ignored"
},
"Agile Product Operating Model": {
"category": "Agile Product Operating Model",
"calculated_at": "2025-02-18T17:29:14",
"ai_confidence": 0,
"non_ai_confidence": 0,
"final_score": 0.0,
"reasoning": "Content does not provide any relevant information or discussion related to the Agile Product Operating Model.",
"level": "Ignored"
},
"Platform Engineering": {
"category": "Platform Engineering",
"calculated_at": "2025-02-18T17:29:15",
"ai_confidence": 0,
"non_ai_confidence": 0,
"final_score": 0.0,
"reasoning": "Content does not discuss Platform Engineering; it is unrelated and lacks relevant information.",
"level": "Ignored"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@
},
"Product Management": {
"category": "Product Management",
"calculated_at": "2025-02-12T18:08:45",
"calculated_at": "2025-02-18T17:41:48",
"ai_confidence": 50,
"non_ai_confidence": 10,
"final_score": 46.0,
"reasoning": "The content mentions an Agile Product Operating Model, which relates to product management methodologies, but lacks depth in discussing strategic alignment or specific product management practices.",
"level": "Ignored"
"level": "Tertiary"
},
"Agile Leadership": {
"category": "Agile Leadership",
Expand Down Expand Up @@ -325,12 +325,12 @@
},
"Software Development": {
"category": "Software Development",
"calculated_at": "2025-02-12T18:09:57",
"calculated_at": "2025-02-18T17:41:48",
"ai_confidence": 50,
"non_ai_confidence": 0,
"final_score": 45.0,
"reasoning": "The content mentions Agile, which is a significant aspect of software development methodologies, but does not provide enough detail to classify it as primarily about software development.",
"level": "Ignored"
"level": "Tertiary"
},
"Engineering Excellence": {
"category": "Engineering Excellence",
Expand Down Expand Up @@ -593,15 +593,6 @@
"reasoning": "Content primarily discusses the Agile Product Operating Model, which is not directly related to Continuous Delivery principles or practices.",
"level": "Ignored"
},
"BetaCodex": {
"category": "BetaCodex",
"calculated_at": "2025-02-12T18:11:07",
"ai_confidence": 0,
"non_ai_confidence": 0,
"final_score": 0.0,
"reasoning": "Content primarily discusses Agile Product Operating Model, which does not directly align with the principles and practices of BetaCodex.",
"level": "Ignored"
},
"Cross Functional Teams": {
"category": "Cross Functional Teams",
"calculated_at": "2025-02-12T18:11:08",
Expand Down Expand Up @@ -694,12 +685,12 @@
},
"Agile Transformation": {
"category": "Agile Transformation",
"calculated_at": "2025-02-12T18:11:21",
"calculated_at": "2025-02-18T17:41:48",
"ai_confidence": 50,
"non_ai_confidence": 10,
"final_score": 46.0,
"reasoning": "The content mentions 'Agile' and discusses an 'Agile Product Operating Model', which suggests a connection to Agile principles, but does not provide enough detail to classify it as primarily about Agile transformation.",
"level": "Ignored"
"level": "Tertiary"
},
"Technical Debt": {
"category": "Technical Debt",
Expand Down Expand Up @@ -1090,12 +1081,12 @@
},
"Product Delivery": {
"category": "Product Delivery",
"calculated_at": "2025-02-12T18:07:52",
"calculated_at": "2025-02-18T17:41:48",
"ai_confidence": 50,
"non_ai_confidence": 10,
"final_score": 46.0,
"reasoning": "The content mentions an Agile Product Operating Model, which relates to product delivery methodologies, but lacks depth in discussing the end-to-end process or specific practices involved in delivering software products.",
"level": "Ignored"
"level": "Tertiary"
},
"Agile Product Management": {
"category": "Agile Product Management",
Expand Down Expand Up @@ -1321,5 +1312,68 @@
"final_score": 0.0,
"reasoning": "Content heavily discusses Agile methodologies and does not address psychological principles or theories related to organisational behaviour.",
"level": "Ignored"
},
"Leadership": {
"category": "Leadership",
"calculated_at": "2025-02-18T17:41:50",
"ai_confidence": 0,
"non_ai_confidence": 0,
"final_score": 0.0,
"reasoning": "Content does not discuss leadership practices; it focuses on an Agile product model without addressing leadership roles or strategies.",
"level": "Ignored"
},
"Social Technologies": {
"category": "Social Technologies",
"calculated_at": "2025-02-18T17:41:52",
"ai_confidence": 0,
"non_ai_confidence": 0,
"final_score": 0.0,
"reasoning": "The content title mentions 'Agile', but the description does not provide any details or discussions related to Scrum, Kanban, Lean, or Agile practices. It lacks specific references to the frameworks or methodologies that define the category.",
"level": "Ignored"
},
"Scrum": {
"category": "Scrum",
"calculated_at": "2025-02-18T17:41:53",
"ai_confidence": 0,
"non_ai_confidence": 0,
"final_score": 0.0,
"reasoning": "The content primarily discusses an Agile Product Operating Model, which does not specifically focus on Scrum principles, roles, or practices.",
"level": "Ignored"
},
"Beta Codex": {
"category": "Beta Codex",
"calculated_at": "2025-02-18T17:41:54",
"ai_confidence": 0,
"non_ai_confidence": 0,
"final_score": 0.0,
"reasoning": "Content primarily discusses Agile Product Operating Model, which does not directly align with the principles and practices of BetaCodex.",
"level": "Ignored"
},
"One Engineering System (1ES)": {
"category": "One Engineering System (1ES)",
"calculated_at": "2025-02-18T17:41:55",
"ai_confidence": 0,
"non_ai_confidence": 0,
"final_score": 0.0,
"reasoning": "Content primarily discusses the Agile Product Operating Model, which is not directly related to the One Engineering System framework.",
"level": "Ignored"
},
"Agile Product Operating Model": {
"category": "Agile Product Operating Model",
"calculated_at": "2025-02-18T17:41:57",
"ai_confidence": 80,
"non_ai_confidence": 40,
"final_score": 76.0,
"reasoning": "The content primarily focuses on the Agile Product Operating Model, providing a description that aligns with the key topics of the category.",
"level": "Secondary"
},
"Platform Engineering": {
"category": "Platform Engineering",
"calculated_at": "2025-02-18T17:41:58",
"ai_confidence": 0,
"non_ai_confidence": 0,
"final_score": 0.0,
"reasoning": "Content heavily discusses Agile concepts without a direct connection to platform engineering.",
"level": "Ignored"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ card:
content: More info
title: Agile Product Operating Model
content: Agile Product Operating Model
categories: []
tags: []
categories:
- Product Management
tags:
- Agile Product Operating Model

---
Description of Agile Product Operating Model.
Loading

0 comments on commit 0ca5e52

Please sign in to comment.