mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-24 03:45:30 +00:00
change file structure
This commit is contained in:
parent
fa17abdd49
commit
17d523d8f8
0
LICENSE → .github/LICENSE
vendored
0
LICENSE → .github/LICENSE
vendored
0
SECURITY.md → .github/SECURITY.md
vendored
0
SECURITY.md → .github/SECURITY.md
vendored
0
mkdocs.yml → .github/mkdocs.yml
vendored
0
mkdocs.yml → .github/mkdocs.yml
vendored
6
.github/workflows/github-pages.yaml
vendored
6
.github/workflows/github-pages.yaml
vendored
@ -24,8 +24,8 @@ jobs:
|
|||||||
python-version: 3.x # Install latest Stable release of Python 3
|
python-version: 3.x # Install latest Stable release of Python 3
|
||||||
cache: 'pip' # caching pip dependencies
|
cache: 'pip' # caching pip dependencies
|
||||||
|
|
||||||
- name: Install Necessary Dependencies using 'pip install -r requirements.txt'
|
- name: Install Necessary Dependencies using 'pip install -r .github/requirements.txt'
|
||||||
run: pip install -r requirements.txt
|
run: pip install -r .github/requirements.txt
|
||||||
|
|
||||||
- name: Build & Deploy using 'mkdocs'
|
- name: Build & Deploy using 'mkdocs'
|
||||||
run: mkdocs gh-deploy --force
|
run: mkdocs gh-deploy --force -f .github/mkdocs.yml
|
@ -1,4 +0,0 @@
|
|||||||
Get-ChildItem @(
|
|
||||||
"$env:SystemRoot\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package*.mum",
|
|
||||||
"$env:SystemRoot\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package*.mum"
|
|
||||||
) | ForEach-Object { dism.exe /online /norestart /add-package:"$_" }
|
|
@ -563,17 +563,17 @@ function Add-LinkAttributeToJson {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Update-Progress "Loading JSON files" 10
|
Update-Progress "Loading JSON files" 10
|
||||||
$tweaks = Get-Content -Path "config/tweaks.json" | ConvertFrom-Json
|
$tweaks = Get-Content -Path "../config/tweaks.json" | ConvertFrom-Json
|
||||||
$features = Get-Content -Path "config/feature.json" | ConvertFrom-Json
|
$features = Get-Content -Path "../config/feature.json" | ConvertFrom-Json
|
||||||
|
|
||||||
Update-Progress "Getting last modified dates of the JSON files" 20
|
Update-Progress "Getting last modified dates of the JSON files" 20
|
||||||
$tweaksLastModified = (Get-Item "config/tweaks.json").LastWriteTime.ToString("yyyy-MM-dd")
|
$tweaksLastModified = (Get-Item "../config/tweaks.json").LastWriteTime.ToString("yyyy-MM-dd")
|
||||||
$featuresLastModified = (Get-Item "config/feature.json").LastWriteTime.ToString("yyyy-MM-dd")
|
$featuresLastModified = (Get-Item "../config/feature.json").LastWriteTime.ToString("yyyy-MM-dd")
|
||||||
|
|
||||||
$tweaksOutputDir = "docs/dev/tweaks"
|
$tweaksOutputDir = "../docs/dev/tweaks"
|
||||||
$featuresOutputDir = "docs/dev/features"
|
$featuresOutputDir = "../docs/dev/features"
|
||||||
$privateFunctionsDir = "functions/private"
|
$privateFunctionsDir = "../functions/private"
|
||||||
$publicFunctionsDir = "functions/public"
|
$publicFunctionsDir = "../functions/public"
|
||||||
$functions = @{}
|
$functions = @{}
|
||||||
$itemnametocut = "WPF(WinUtil|Toggle|Features?|Tweaks?|Panel|Fix(es)?)?"
|
$itemnametocut = "WPF(WinUtil|Toggle|Features?|Tweaks?|Panel|Fix(es)?)?"
|
||||||
|
|
||||||
@ -592,7 +592,7 @@ Load-Functions -dir $publicFunctionsDir
|
|||||||
Update-Progress "Adding documentation links to JSON files" 50
|
Update-Progress "Adding documentation links to JSON files" 50
|
||||||
|
|
||||||
# Define the JSON file paths
|
# Define the JSON file paths
|
||||||
$jsonPaths = @(".\config\feature.json", ".\config\tweaks.json")
|
$jsonPaths = @("../config/feature.json", "../config/tweaks.json")
|
||||||
|
|
||||||
# Loop through each JSON file path
|
# Loop through each JSON file path
|
||||||
foreach ($jsonPath in $jsonPaths) {
|
foreach ($jsonPath in $jsonPaths) {
|
||||||
@ -612,12 +612,12 @@ foreach ($jsonPath in $jsonPaths) {
|
|||||||
Set-Content -Path $jsonPath -Value $jsonString
|
Set-Content -Path $jsonPath -Value $jsonString
|
||||||
}
|
}
|
||||||
|
|
||||||
Add-LinkAttributeToJson -jsonFilePath "config/tweaks.json" -outputDir "dev/tweaks"
|
Add-LinkAttributeToJson -jsonFilePath "../config/tweaks.json" -outputDir "dev/tweaks"
|
||||||
Add-LinkAttributeToJson -jsonFilePath "config/feature.json" -outputDir "dev/features"
|
Add-LinkAttributeToJson -jsonFilePath "../config/feature.json" -outputDir "dev/features"
|
||||||
|
|
||||||
Update-Progress "Generating content for documentation" 60
|
Update-Progress "Generating content for documentation" 60
|
||||||
$tweakResult = Generate-MarkdownFiles -data $tweaks -outputDir $tweaksOutputDir -jsonFilePath "config/tweaks.json" -lastModified $tweaksLastModified -type "tweak" -initialProgress 60
|
$tweakResult = Generate-MarkdownFiles -data $tweaks -outputDir $tweaksOutputDir -jsonFilePath "../config/tweaks.json" -lastModified $tweaksLastModified -type "tweak" -initialProgress 60
|
||||||
$featureResult = Generate-MarkdownFiles -data $features -outputDir $featuresOutputDir -jsonFilePath "config/feature.json" -lastModified $featuresLastModified -type "feature" -initialProgress 70
|
$featureResult = Generate-MarkdownFiles -data $features -outputDir $featuresOutputDir -jsonFilePath "../config/feature.json" -lastModified $featuresLastModified -type "feature" -initialProgress 70
|
||||||
|
|
||||||
Update-Progress "Generating table of contents" 80
|
Update-Progress "Generating table of contents" 80
|
||||||
$allTocEntries = $tweakResult.TocEntries + $featureResult.TocEntries
|
$allTocEntries = $tweakResult.TocEntries + $featureResult.TocEntries
|
||||||
@ -639,6 +639,6 @@ $indexContent += Process-MultilineStrings @"
|
|||||||
\\
|
\\
|
||||||
"@
|
"@
|
||||||
$indexContent += $(Generate-TypeSectionContent $featureEntries) + "`r`n"
|
$indexContent += $(Generate-TypeSectionContent $featureEntries) + "`r`n"
|
||||||
Set-Content -Path "docs/devdocs.md" -Value $indexContent -Encoding utf8
|
Set-Content -Path "../docs/devdocs.md" -Value $indexContent -Encoding utf8
|
||||||
|
|
||||||
Update-Progress "Process Completed" 100
|
Update-Progress "Process Completed" 100
|
Loading…
Reference in New Issue
Block a user