Skip to content

Commit 87c5984

Browse files
committed
added repository overview
1 parent 24b9b76 commit 87c5984

File tree

11 files changed

+387
-5
lines changed

11 files changed

+387
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
run: |
2828
ls -R ./out # Debug: Show built files
2929
test -f ./out/index.html || exit 1 # Fail if no index.html
30+
grep -q "⚠️ Failed to load repository data" ./out/github_repos.html && exit 1
3031
3132
- name: Deploy to GitHub Pages
3233
if: github.ref == 'refs/heads/main' && github.event_name == 'push'

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
.vscode
22
.DS_Store
3-
venv
3+
venv
4+
build
5+
data
6+
mkdocs_github_repos_plugin.egg-info

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ You can see the commits and page builds in the [Actions tab](https://github.com/
2727

2828
You should be able to access the doc site via your web browser at `localhost:8000`.
2929

30+
To start the server locally again later:
31+
32+
1. `source venv/bin/activate`
33+
2. `mkdocs serve`
34+
3035
## To contribute
3136

3237
We would love contributions to the docs! We have a [Contributing Guide](/docs/about/help_docs.md)

docs/github_repos.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- This content will be replaced by the plugin -->

docs/ppuc/getting_started.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Planning
44

55
If you want to run an existing playfield with PPUC you need to take some decisions:
6+
67
- Should the original wiring be kept?
78
- Should lamps (inserts, GI and/ flashers) be replaced by addressable RGB LEDs?
89
- Should switches be wired using a matrix or directly.
@@ -18,6 +19,7 @@ protocol enhances the DOF protocol which is known from the virtual pinball world
1819
Dependeing on your decisions abouve, you you might need different IO boards and a different amount.
1920
The entire hardware is open source and you can order the boards from your prefered PCB manufacturer.
2021
Gerber and BOM files are part of the repositories:
22+
2123
- [IO_16_8_1](https://github.com/PPUC/Hardware_IO_16_8_1)
2224
- [IO_16x8_matrix](https://github.com/PPUC/Hardware_IO_16x8_matrix)
2325
- [Out_8X10](https://github.com/PPUC/Hardware_Out_8x10)
@@ -36,6 +38,7 @@ Repeat that procedure for every board.
3638
## Wiring the boards
3739

3840
todo:
41+
3942
- Power
4043
- RS485 bus
4144
- Coils

docs/stylesheets/ppuc.css

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,93 @@
6060
.md-content .md-typeset img, .md-content .md-typeset svg, .md-content .md-typeset video {
6161
border: 1px gray solid;
6262
}
63+
64+
/* GitHub Repos Grid */
65+
.github-repos {
66+
display: grid;
67+
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
68+
gap: 1.5rem;
69+
margin: 1.5rem 0;
70+
}
71+
72+
/* Repo Card */
73+
.github-repo-card {
74+
border: 1px solid var(--md-default-fg-color--lightest);
75+
border-radius: 0.25rem;
76+
padding: 1rem;
77+
transition: box-shadow 0.25s, transform 0.25s;
78+
background: var(--md-default-bg-color);
79+
position: relative;
80+
}
81+
82+
.github-repo-card:hover {
83+
box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
84+
transform: translateY(-2px);
85+
}
86+
87+
.github-repo-card h3 {
88+
margin-top: 0;
89+
margin-bottom: 0.5rem;
90+
}
91+
92+
.github-repo-card h3 a {
93+
color: var(--md-typeset-a-color);
94+
}
95+
96+
.github-repo-card p {
97+
margin-bottom: 0.75rem;
98+
color: var(--md-default-fg-color--light);
99+
font-size: 0.9rem;
100+
}
101+
102+
/* Release Info */
103+
.github-repo-release {
104+
margin-top: 0.75rem;
105+
padding-top: 0.75rem;
106+
border-top: 1px dashed var(--md-default-fg-color--lightest);
107+
font-size: 0.85rem;
108+
}
109+
110+
.github-repo-release a {
111+
color: var(--md-accent-fg-color);
112+
}
113+
114+
.release-date {
115+
color: var(--md-default-fg-color--light);
116+
font-size: 0.8rem;
117+
display: block;
118+
margin-top: 0.25rem;
119+
}
120+
121+
/* Stats */
122+
.repo-stats {
123+
display: flex;
124+
gap: 1rem;
125+
margin-bottom: 0.75rem;
126+
font-size: 0.85rem;
127+
}
128+
129+
.repo-stats span {
130+
display: flex;
131+
align-items: center;
132+
gap: 0.25rem;
133+
}
134+
135+
/* Archived Repo Indicator */
136+
.github-repo-card[data-archived="true"] {
137+
opacity: 0.8;
138+
position: relative;
139+
}
140+
141+
.github-repo-card[data-archived="true"]::after {
142+
content: "Archived";
143+
position: absolute;
144+
top: 0.5rem;
145+
right: 0.5rem;
146+
background: var(--md-default-fg-color--lightest);
147+
color: var(--md-default-bg-color);
148+
padding: 0.1rem 0.5rem;
149+
border-radius: 0.25rem;
150+
font-size: 0.7rem;
151+
font-weight: bold;
152+
}

mkdocs.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,31 @@ site_name: Pinball Power-Up Controller & DMD
22
site_url: https://ppuc.github.io/docs/
33
site_description: Pinball Power-Up Controller & DMD (PPUC) is a free and open-source pinball controller and display system.
44
use_directory_urls: true
5-
repo_url: https://github.com/PPUC/docs
6-
repo_name: Website source on GitHub
7-
edit_uri: blob/main/docs/
5+
repo_url: https://github.com/PPUC
6+
repo_name: PPUC on GitHub
7+
edit_uri: dosc/blob/main/docs/
88
docs_dir: docs
99

1010
plugins:
1111
- search
12+
- github_repos:
13+
organization: PPUC
14+
cache_minutes: 30
15+
github_token: "" # Only needed for private repos
16+
exclude_repos:
17+
- dmd
18+
- docs
19+
- .github
20+
- ZeDMD_Updater
21+
- ColorizingDMD
22+
- pindmd3-firmware
23+
- libppuclogger
24+
include_archived: false # Whether to show archived repos
25+
forked_repos:
26+
- dmd-extensions
27+
- pinmame
28+
- libdmdutil
29+
1230
extra_css:
1331
- stylesheets/ppuc.css
1432

@@ -65,6 +83,7 @@ extra:
6583
social:
6684
- icon: fontawesome/brands/github
6785
link: https://github.com/PPUC
86+
name: PPUC Organization
6887
- icon: fontawesome/brands/discord
6988
link: https://discord.gg/fkkk4MbBn5
7089
name: Join our Discord
@@ -84,4 +103,5 @@ nav:
84103
- ppuc_hardware/out_8x10.md
85104
- ppuc_hardware/opto_16.md
86105
- ZeDMD:
87-
- zedmd/index.md
106+
- zedmd/index.md
107+
- GitHub Repositories: github_repos.md

plugins/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)