Skip to content

Commit

Permalink
Added method stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHinsh committed Sep 17, 2024
1 parent 2c3e100 commit 4a672bf
Show file tree
Hide file tree
Showing 20 changed files with 45,985 additions and 15 deletions.
68 changes: 68 additions & 0 deletions .powershell/createStubsForSection.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
function Create-StubIndexForSection {
param (
[Parameter(Mandatory = $true)]
[array]$sections, # List of sections with slugs, titles, and content

[Parameter(Mandatory = $true)]
[string]$baseFolder # Base folder location to process
)

# Iterate over each section and create the appropriate .md files if they don't exist
foreach ($section in $sections) {
$folderPath = Join-Path $baseFolder $section["slug"]
$filePath = Join-Path $folderPath "index.md"

# Ensure the folder exists
if (-not (Test-Path $folderPath)) {
New-Item -Path $folderPath -ItemType Directory
}

# Only create the index.md file if it doesn't already exist
if (-not (Test-Path $filePath)) {
# Define the content for the .md file with custom card content
$content = @"
---
slug: $($section["slug"])
author: MrHinsh
title: $($section["title"])
aliases:
- $($section["aliases"])
date: $(Get-Date -Format yyyy-MM-dd)
type: methods
card:
title: $($section["title"])
content: $($section["content"])
button:
content: Start Optimizing Now
---
Coming soon!
"@

# Write the content to the index.md file
Set-Content -Path $filePath -Value $content

Write-Host "Created: $filePath"
}
else {
Write-Host "Skipped: $filePath (already exists)"
}
}
}

# Example usage of Create-StubIndexForSection

# Define the list of sections with their corresponding slugs, titles, aliases, and card content
$methods = @(
@{ "slug" = "scrum-framework"; "title" = "Scrum Framework"; "aliases" = "/methods/scrum-framework/"; "content" = "Master the Scrum Framework with our expert-led training. Empower your team to deliver high-value increments and ensure product success through iterative development and continuous feedback." },
@{ "slug" = "kanban-strategy"; "title" = "Kanban Strategy"; "aliases" = "/methods/kanban-strategy/"; "content" = "Optimize your workflow with Kanban strategies tailored for your team. Visualize work, limit work-in-progress, and enhance overall efficiency." },
@{ "slug" = "evidence-based-management"; "title" = "Evidence-Based Management"; "aliases" = "/methods/ebm/"; "content" = "Make data-driven decisions with Evidence-Based Management (EBM). Use metrics to guide your team toward continuous improvement and increased value delivery." },
@{ "slug" = "beta-codex-cell-structure-design"; "title" = "Beta Codex Cell Structure Design"; "aliases" = "/methods/beta-codex-cell-structure-design/"; "content" = "Implement Beta Codex cell structure design to decentralize and scale your organization. Create a flexible, adaptive team structure that promotes innovation." },
@{ "slug" = "open-space-agile"; "title" = "Open Space Agile"; "aliases" = "/methods/open-space-agile/"; "content" = "Harness the power of Open Space Agile to enable dynamic self-organization. Facilitate meaningful discussions and collaborative decision-making across your team." },
@{ "slug" = "one-engineering-system"; "title" = "One Engineering System"; "aliases" = "/methods/one-engineering-system/"; "content" = "Unify your development pipeline with One Engineering System. Ensure seamless collaboration and integration across all engineering teams and workflows." },
@{ "slug" = "liberating-structures"; "title" = "Liberating Structures"; "aliases" = "/methods/liberating-structures/"; "content" = "Unlock creativity and innovation through Liberating Structures. Engage your team in dynamic, inclusive conversations that drive impactful outcomes." }
)

# Call the function with the methods list and the base folder location
Create-StubIndexForSection -sections $methods -baseFolder "site\content\methods"
1 change: 1 addition & 0 deletions site/content/.obsidian/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions site/content/.obsidian/appearance.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
3 changes: 3 additions & 0 deletions site/content/.obsidian/community-plugins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"obsidian-git"
]
30 changes: 30 additions & 0 deletions site/content/.obsidian/core-plugins-migration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"file-explorer": true,
"global-search": true,
"switcher": true,
"graph": true,
"backlink": true,
"canvas": true,
"outgoing-link": true,
"tag-pane": true,
"properties": false,
"page-preview": true,
"daily-notes": true,
"templates": true,
"note-composer": true,
"command-palette": true,
"slash-command": false,
"editor-status": true,
"bookmarks": true,
"markdown-importer": false,
"zk-prefixer": false,
"random-note": false,
"outline": true,
"word-count": true,
"slides": false,
"audio-recorder": false,
"workspaces": false,
"file-recovery": true,
"publish": false,
"sync": false
}
20 changes: 20 additions & 0 deletions site/content/.obsidian/core-plugins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
"file-explorer",
"global-search",
"switcher",
"graph",
"backlink",
"canvas",
"outgoing-link",
"tag-pane",
"page-preview",
"daily-notes",
"templates",
"note-composer",
"command-palette",
"editor-status",
"bookmarks",
"outline",
"word-count",
"file-recovery"
]
58 changes: 58 additions & 0 deletions site/content/.obsidian/plugins/obsidian-git/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"commitMessage": "vault backup: {{date}}",
"commitDateFormat": "YYYY-MM-DD HH:mm:ss",
"autoSaveInterval": 0,
"autoPushInterval": 0,
"autoPullInterval": 0,
"autoPullOnBoot": true,
"disablePush": false,
"pullBeforePush": true,
"disablePopups": false,
"disablePopupsForNoChanges": false,
"listChangedFilesInMessageBody": false,
"showStatusBar": true,
"updateSubmodules": false,
"syncMethod": "merge",
"customMessageOnAutoBackup": false,
"autoBackupAfterFileChange": false,
"treeStructure": false,
"refreshSourceControl": true,
"basePath": "../,,/",
"differentIntervalCommitAndPush": false,
"changedFilesInStatusBar": false,
"showedMobileNotice": true,
"refreshSourceControlTimer": 7000,
"showBranchStatusBar": true,
"setLastSaveToLastCommit": false,
"submoduleRecurseCheckout": false,
"gitDir": "",
"showFileMenu": true,
"authorInHistoryView": "hide",
"dateInHistoryView": false,
"lineAuthor": {
"show": false,
"followMovement": "inactive",
"authorDisplay": "initials",
"showCommitHash": false,
"dateTimeFormatOptions": "date",
"dateTimeFormatCustomString": "YYYY-MM-DD HH:mm",
"dateTimeTimezone": "viewer-local",
"coloringMaxAge": "1y",
"colorNew": {
"r": 255,
"g": 150,
"b": 150
},
"colorOld": {
"r": 120,
"g": 160,
"b": 255
},
"textColorCss": "var(--text-muted)",
"ignoreWhitespace": false,
"gutterSpacingFallbackLength": 5,
"lastShownAuthorDisplay": "initials",
"lastShownDateTimeFormatOptions": "date"
},
"autoCommitMessage": "vault backup: {{date}}"
}
Loading

0 comments on commit 4a672bf

Please sign in to comment.