Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.mof text eol=crlf
*.sh text eol=lf
*.svg eol=lf
*.yml text eol=lf

# Ensure any exe files are treated as binary
*.exe binary
Expand Down
18 changes: 17 additions & 1 deletion .github/PSModule.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# This file is used to configure the Process-PSModule workflow.
# Reference:
# - https://github.com/PSModule/Process-PSModule?tab=readme-ov-file#configuration
# - https://psmodule.io/Process-PSModule/guides/configuring-the-pipeline/

ImportantFilePatterns:
- '^src/'
- '^README\.md$'
- '^tests/'
- '^\.github/PSModule\.yml$'
- '^\.github/workflows/'
- '^\.github/zensical\.toml$'

Test:
CodeCoverage:
Expand All @@ -20,6 +28,14 @@ Test:
# Docs:
# Skip: true

Publish:
Module:
MajorLabels: 'release:major, major, breaking'
MinorLabels: 'release:minor, minor, feature'
PatchLabels: 'release:patch, patch, fix'
IgnoreLabels: 'release:skip, NoRelease'
PrereleaseLabels: 'release:prerelease, prerelease'

Linter:
env:
VALIDATE_BIOME_FORMAT: false
Expand Down
75 changes: 0 additions & 75 deletions .github/mkdocs.yml

This file was deleted.

32 changes: 22 additions & 10 deletions .github/workflows/Process-PSModule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
push:
branches:
- main
pull_request:
branches:
- main
Expand All @@ -13,19 +16,28 @@
- reopened
- synchronize
- labeled
- unlabeled

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
group: >-
${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
contents: write
pull-requests: write
statuses: write
pages: write
id-token: write
permissions: {}

jobs:
Process-PSModule:
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@205d193f34cbbaf9992955c21d842bcf98a1859f # v5.4.6
secrets: inherit
permissions:
contents: read
pages: write
id-token: write
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v8
secrets:
PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }}
GitHubAppClientId: ${{ secrets.SHELLY_CLIENT_ID }}
GitHubAppPrivateKey: ${{ secrets.SHELLY_PRIVATE_KEY }}
TestData: >-
{"secrets":{"DISCORD_BOT_TOKEN":"${{ secrets.DISCORD_BOT_TOKEN }}"},
"variables":{
"DISCORD_TEST_GUILD_ID":${{ toJSON(vars.DISCORD_TEST_GUILD_ID) }},
"DISCORD_TEST_CHANNEL_ID":${{ toJSON(vars.DISCORD_TEST_CHANNEL_ID) }}}}
109 changes: 109 additions & 0 deletions .github/zensical.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
[project]
site_name = "Discord"
site_url = "https://psmodule.io/Discord/"
docs_dir = "docs"
repo_name = "PSModule/Discord"
repo_url = "https://github.com/PSModule/Discord"

[project.theme]
language = "en"
font.text = "Mona Sans"
font.code = "Source Code Pro"
logo = "Assets/icon.png"
favicon = "Assets/icon.png"
features = [
"announce.dismiss",
"content.code.annotate",
"content.code.copy",
"content.tooltips",
"navigation.expand",
"navigation.footer",
"navigation.indexes",
"navigation.instant",
"navigation.instant.prefetch",
"navigation.instant.preview",
"navigation.instant.progress",
"navigation.tabs",
"navigation.top",
"navigation.tracking",
"search.highlight",
"search.share",
"search.suggest",
"toc.follow",
]

[project.theme.icon]
repo = "material/github"
link = "material/link-variant"

[[project.theme.palette]]
media = "(prefers-color-scheme)"
toggle.icon = "material/link"
toggle.name = "Switch to dark mode"

[[project.theme.palette]]
media = "(prefers-color-scheme: dark)"
scheme = "slate"
primary = "black"
accent = "light blue"
toggle.icon = "material/toggle-switch-off-outline"
toggle.name = "Switch to light mode"

[[project.theme.palette]]
media = "(prefers-color-scheme: light)"
scheme = "default"
primary = "black"
accent = "light blue"
toggle.icon = "material/toggle-switch"
toggle.name = "Switch to system preference"

[project.plugins.meta]

[project.plugins.search]

[project.markdown_extensions.toc]
permalink = "#"

[project.markdown_extensions.attr_list]

[project.markdown_extensions.abbr]

[project.markdown_extensions.admonition]

[project.markdown_extensions.def_list]

[project.markdown_extensions.footnotes]

[project.markdown_extensions.md_in_html]

[project.markdown_extensions.tables]

[project.markdown_extensions.pymdownx.details]

[project.markdown_extensions.pymdownx.superfences]
custom_fences = [
{ name = "mermaid", class = "mermaid", format = "pymdownx.superfences.fence_code_format" },
]

[project.markdown_extensions.pymdownx.tasklist]
custom_checkbox = true

[project.extra.consent]
title = "Cookie consent"
description = """
We use cookies to recognize your repeated visits and preferences, as well
as to measure the effectiveness of our documentation and whether users
find what they're searching for. With your consent, you're helping us to
make our documentation better.
"""
actions = ["accept", "reject"]

[[project.extra.social]]
icon = "fontawesome/brands/discord"
link = "https://discord.gg/jedJWCPAhD"
name = "PSModule on Discord"

[[project.extra.social]]
icon = "fontawesome/brands/github"
link = "https://github.com/PSModule/"
name = "PSModule on GitHub"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

# PSModule framework outputs folder
outputs/*
.PSModule/

# .Net build output
bin/
Expand Down
Loading
Loading