Skip to content

Commit 2145246

Browse files
Test
1 parent 578708b commit 2145246

4 files changed

Lines changed: 137 additions & 97 deletions

File tree

.github/workflows/DeployPages.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the "main" branch
8+
push:
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: write
15+
pages: write
16+
17+
defaults:
18+
run:
19+
shell: pwsh
20+
21+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
22+
jobs:
23+
# This workflow contains a single job called "build"
24+
build:
25+
# The type of runner that the job will run on
26+
runs-on: ubuntu-latest
27+
env:
28+
GH_TOKEN: ${{ github.token }}
29+
30+
# Steps represent a sequence of tasks that will be executed as part of the job
31+
steps:
32+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
33+
- uses: actions/checkout@v4
34+
35+
- uses: actions/checkout@v4
36+
with:
37+
repository: PSModule/.github
38+
path: src
39+
40+
- name: Copy GitHub profile folder to docs
41+
shell: pwsh
42+
run: |
43+
Copy-Item -Path src/profile/* -Destination docs -Recurse -Force
44+
Write-Verbose (Get-ChildItem -Path 'docs' -Recurse -File | Select-Object -ExpandProperty FullName | Sort-Object) -Verbose
45+
46+
- name: Configure GitHub Pages
47+
uses: actions/configure-pages@v5
48+
49+
- name: Install mkdoks-material
50+
run: |
51+
pip install mkdocs-material
52+
pip install mkdocs-git-authors-plugin
53+
pip install mkdocs-git-revision-date-localized-plugin
54+
pip install mkdocs-git-committers-plugin-2
55+
56+
- name: Publish mkdocs-material project
57+
run: |
58+
mkdocs gh-deploy --force

.github/workflows/hugo.yml

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

hugo.toml

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

mkdocs.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
site_name: ${{ REPO_NAME }}
2+
theme:
3+
name: material
4+
language: en
5+
font:
6+
text: Roboto
7+
code: Sono
8+
logo: assets/icon.png
9+
favicon: assets/icon.png
10+
palette:
11+
# Palette toggle for automatic mode
12+
- media: "(prefers-color-scheme)"
13+
toggle:
14+
icon: material/link
15+
name: Switch to dark mode
16+
# Palette toggle for dark mode
17+
- media: '(prefers-color-scheme: dark)'
18+
scheme: slate
19+
toggle:
20+
primary: black
21+
accent: green
22+
icon: material/toggle-switch-off-outline
23+
name: Switch to light mode
24+
# Palette toggle for light mode
25+
- media: '(prefers-color-scheme: light)'
26+
scheme: default
27+
toggle:
28+
primary: indigo
29+
accent: green
30+
icon: material/toggle-switch
31+
name: Switch to system preference
32+
icon:
33+
repo: material/github
34+
features:
35+
- navigation.instant
36+
- navigation.instant.progress
37+
- navigation.tabs
38+
- navigation.indexes
39+
- navigation.top
40+
- navigation.tracking
41+
- search.suggest
42+
- search.highlight
43+
44+
repo_name: PSModule/${{ REPO_NAME }}
45+
repo_url: https://github.com/PSModule/${{ REPO_NAME }}
46+
47+
plugins:
48+
- search
49+
- git-authors
50+
- git-revision-date-localized:
51+
enable_creation_date: true
52+
type: timeago
53+
54+
markdown_extensions:
55+
- toc:
56+
permalink: true # Adds a link icon to headings
57+
- attr_list
58+
- admonition
59+
- md_in_html
60+
- pymdownx.details # Enables collapsible admonitions
61+
62+
extra:
63+
social:
64+
- icon: fontawesome/brands/discord
65+
link: https://discord.gg/jedJWCPAhD
66+
name: PSModule on Discord
67+
- icon: fontawesome/brands/github
68+
link: https://github.com/PSModule/
69+
name: PSModule on GitHub
70+
consent:
71+
title: Cookie consent
72+
description: >-
73+
We use cookies to recognize your repeated visits and preferences, as well
74+
as to measure the effectiveness of our documentation and whether users
75+
find what they're searching for. With your consent, you're helping us to
76+
make our documentation better.
77+
actions:
78+
- accept
79+
- reject

0 commit comments

Comments
 (0)