Skip to content

Commit 934176f

Browse files
refactor: slim template scaffolding to minimum baseline (#33)
## Summary - remove Process-PSModule TestData showcase wiring and its matching environment test - slim template scaffolding to a minimal, coherent starter module structure - keep guidance-chain files introduced in PR #32 unchanged ## Why This is PR 2 in the stacked simplification. The template should start lean and practical, not present optional feature catalog examples. ## Validation - run the smallest relevant local checks for updated scaffolding --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent cb7ee46 commit 934176f

37 files changed

Lines changed: 74 additions & 730 deletions

.github/copilot-instructions.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/mkdocs.yml

Lines changed: 0 additions & 81 deletions
This file was deleted.

.github/workflows/Process-PSModule.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,6 @@ permissions:
2727

2828
jobs:
2929
Process-PSModule:
30-
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@da180bac16b13bfbcdf08b2e4e221b5b49e5ff28 # v6.1.4
30+
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@fb1bdb8fefd243292f779d2a856a38db6fe6daf4 # v6.1.13
3131
secrets:
32-
APIKEY: ${{ secrets.APIKEY }}
33-
TestData: >-
34-
{
35-
"secrets": {
36-
"TEST_SECRET": "${{ secrets.TEST_SECRET }}"
37-
},
38-
"variables": {
39-
"TEST_VARIABLE": "${{ vars.TEST_VARIABLE }}"
40-
}
41-
}
32+
APIKey: ${{ secrets.APIKEY }}

.github/zensical.toml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
[project]
2+
site_name = "-{{ REPO_NAME }}-"
3+
repo_name = "-{{ REPO_OWNER }}-/-{{ REPO_NAME }}-"
4+
repo_url = "https://github.com/-{{ REPO_OWNER }}-/-{{ REPO_NAME }}-"
5+
6+
[project.theme]
7+
variant = "classic"
8+
language = "en"
9+
logo = "Assets/icon.png"
10+
favicon = "Assets/icon.png"
11+
features = [
12+
"navigation.instant",
13+
"navigation.instant.progress",
14+
"navigation.indexes",
15+
"navigation.top",
16+
"navigation.tracking",
17+
"navigation.expand",
18+
"search.suggest",
19+
"search.highlight",
20+
"content.code.copy"
21+
]
22+
23+
[[project.theme.palette]]
24+
media = "(prefers-color-scheme)"
25+
toggle.icon = "lucide/sun-moon"
26+
toggle.name = "Switch to dark mode"
27+
28+
[[project.theme.palette]]
29+
media = "(prefers-color-scheme: dark)"
30+
scheme = "slate"
31+
primary = "black"
32+
accent = "light-blue"
33+
toggle.icon = "lucide/moon"
34+
toggle.name = "Switch to light mode"
35+
36+
[[project.theme.palette]]
37+
media = "(prefers-color-scheme: light)"
38+
scheme = "default"
39+
primary = "black"
40+
accent = "light-blue"
41+
toggle.icon = "lucide/sun"
42+
toggle.name = "Switch to system preference"
43+
44+
[project.theme.icon]
45+
repo = "fontawesome/brands/github"
46+
47+
[project.markdown_extensions.toc]
48+
permalink = true
49+
50+
[project.markdown_extensions.attr_list]
51+
[project.markdown_extensions.admonition]
52+
[project.markdown_extensions.md_in_html]
53+
[project.markdown_extensions.pymdownx.details]
54+
[project.markdown_extensions.pymdownx.superfences]
55+
56+
[[project.extra.social]]
57+
icon = "fontawesome/brands/discord"
58+
link = "https://discord.psmodule.io"
59+
name = "-{{ REPO_OWNER }}- on Discord"
60+
61+
[[project.extra.social]]
62+
icon = "fontawesome/brands/github"
63+
link = "https://github.com/-{{ REPO_OWNER }}-/"
64+
name = "-{{ REPO_OWNER }}- on GitHub"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For step-by-step instructions, see the [template quickstart](https://psmodule.gi
1212
## After creating a repository from this template
1313

1414
1. Replace the `{{ NAME }}` and `{{ DESCRIPTION }}` placeholders throughout the repository.
15-
2. Remove the scaffold example functions, tests, and examples that do not represent your module.
15+
2. Replace the starter function, test, and example with your module's first real command.
1616
3. Set the repository description and custom properties on GitHub.
1717
4. Confirm `.github/PSModule.yml` only overrides defaults when your module needs different behavior.
1818
5. Open a draft pull request and run the full CI pipeline.

examples/General.ps1

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
1-
<#
1+
<<#
22
.SYNOPSIS
3-
This is a general example of how to use the module.
3+
Basic module usage example.
44
#>
55

6-
# Import the module
7-
Import-Module -Name 'PSModule'
8-
9-
# Define the path to the font file
10-
$FontFilePath = 'C:\Fonts\CodeNewRoman\CodeNewRomanNerdFontPropo-Regular.tff'
11-
12-
# Install the font
13-
Install-Font -Path $FontFilePath -Verbose
14-
15-
# List installed fonts
16-
Get-Font -Name 'CodeNewRomanNerdFontPropo-Regular'
17-
18-
# Uninstall the font
19-
Get-Font -Name 'CodeNewRomanNerdFontPropo-Regular' | Uninstall-Font -Verbose
6+
Import-Module -Name '{{ NAME }}'
7+
Get-PSModuleTest -Name 'World'

src/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/assemblies/LsonLib.dll

-42.5 KB
Binary file not shown.

src/classes/private/SecretWriter.ps1

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/classes/public/Book.ps1

Lines changed: 0 additions & 147 deletions
This file was deleted.

0 commit comments

Comments
 (0)