Skip to content

Commit 5ec6a29

Browse files
committed
Implemented ProzillaOS games + updated docs
1 parent c810138 commit 5ec6a29

File tree

13 files changed

+199
-80
lines changed

13 files changed

+199
-80
lines changed

.markdownlint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"default": true,
33
"MD033": false,
44
"MD041": false,
5-
"MD013": false
5+
"MD013": false,
6+
"MD024": false
67
}

README.md

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -63,35 +63,7 @@ For more information, refer to the [self-hosting guide](https://os.prozilla.dev/
6363

6464
## Packages
6565

66-
### Libraries (public)
67-
68-
These libraries are different modules of ProzillaOS that can be installed separately or via the bundle package `prozilla-os`. Each library has a `src/main.ts` entry file and is published to the npm registry.
69-
70-
- [`prozilla-os`][prozilla-os]: A bundle containing the core packages and all standard applications of ProzillaOS
71-
- [`@prozilla-os/core`][core]: Core functionality, React components and hooks
72-
- [`@prozilla-os/skins`][skins]: Customizable skins for ProzillaOS
73-
- [`@prozilla-os/shared`][shared]: Shared functions and utilities
74-
75-
#### Standard applications
76-
77-
- [`@prozilla-os/file-explorer`][file-explorer]: File explorer app
78-
- [`@prozilla-os/terminal`][terminal]: Terminal/shell app
79-
- [`@prozilla-os/text-editor`][text-editor]: Text editor app
80-
- [`@prozilla-os/settings`][settings]: Settings app
81-
- [`@prozilla-os/media-viewer`][media-viewer]: Media viewer app
82-
- [`@prozilla-os/browser`][browser]: Browser app
83-
- [`@prozilla-os/calculator`][calculator]: Calculator app
84-
85-
#### Non-standard applications
86-
87-
- [`@prozilla-os/logic-sim`][logic-sim]: Logic simulator app
88-
89-
### Sites (internal)
90-
91-
These packages contains the source code of parts of the ProzillaOS website. They are published to GitHub pages.
92-
93-
- [`@prozilla-os/demo`](./packages/demo/): Demo site
94-
- [`@prozilla-os/docs`](./packages/docs/): Documentation site
66+
You can find a list of all packages related to ProzillaOS in [packages/README.md](./packages/README.md).
9567

9668
<!-- #endregion packages -->
9769

@@ -104,13 +76,11 @@ These packages contains the source code of parts of the ProzillaOS website. They
10476
- [Discord][discord]
10577
- [Ko-fi][ko-fi]
10678

107-
## Resources
108-
109-
These resources can help you get started with ProzillaOS.
79+
### Resources
11080

11181
- [Getting started guide](https://os.prozilla.dev/docs/guides/getting-started)
11282
- [Self-hosting guide](https://os.prozilla.dev/docs/guides/self-hosting)
113-
- [prozilla-os/ProzillaOS-boilerplate][boilerplate]: Boilerplate code for a React Vite app implementing ProzillaOS
83+
- [ProzillaOS boilerplate][boilerplate]
11484

11585
## License
11686

@@ -125,14 +95,3 @@ ProzillaOS is [MIT licensed](./LICENSE).
12595
[boilerplate]: https://github.com/prozilla-os/ProzillaOS-boilerplate
12696
[prozilla]: https://prozilla.dev/
12797
[prozilla-os]: ./packages/prozilla-os/
128-
[core]: ./packages/core/
129-
[skins]: ./packages/skins/
130-
[shared]: ./packages/shared/
131-
[file-explorer]: ./packages/apps/file-explorer/
132-
[terminal]: ./packages/apps/terminal/
133-
[text-editor]: ./packages/apps/text-editor/
134-
[settings]: ./packages/apps/settings/
135-
[media-viewer]: ./packages/apps/media-viewer/
136-
[browser]: ./packages/apps/browser/
137-
[calculator]: ./packages/apps/calculator/
138-
[logic-sim]: ./packages/apps/logic-sim/

packages/README.md

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
# Packages
22

3+
This is an overview of all packages related to ProzillaOS.
4+
5+
<!-- #region libraries -->
6+
37
## Libraries (public)
48

9+
These libraries are different modules of ProzillaOS that can be installed separately or via the bundle package `prozilla-os`. Each library is published to the npm registry.
10+
511
- [`prozilla-os`](./prozilla-os/): A bundle containing the core packages and all standard applications of ProzillaOS
612
- [`@prozilla-os/core`](./core/): Core functionality, React components and hooks
713
- [`@prozilla-os/skins`](./skins/): Customizable skins for ProzillaOS
814
- [`@prozilla-os/shared`](./shared/): Shared functions and utilities
15+
- [`@prozilla-os/dev-tools`](./dev-tools/): Tools for development of ProzillaOS packages
916

1017
### Standard applications
1118

19+
These applications are included in the `prozilla-os` bundle.
20+
1221
- [`@prozilla-os/file-explorer`](./apps/file-explorer/): File explorer app
1322
- [`@prozilla-os/terminal`](./apps/terminal/): Terminal/shell app
1423
- [`@prozilla-os/text-editor`](./apps/text-editor/): Text editor app
@@ -21,7 +30,33 @@
2130

2231
- [`@prozilla-os/logic-sim`](./apps/logic-sim/): Logic simulator app
2332

24-
## Sites (internal)
33+
<!-- #endregion libraries -->
34+
35+
<!-- #region sites -->
36+
37+
## Sites (private)
38+
39+
These packages contains the source code of parts of the ProzillaOS website. They are published to GitHub pages.
40+
41+
- [`@prozilla-os/demo`](./demo/): Demo site - **[os.prozilla.dev](https://os.prozilla.dev/)**
42+
- [`@prozilla-os/docs`](./docs/): Documentation site - **[os.prozilla.dev/docs](https://os.prozilla.dev/docs/)**
43+
44+
<!-- #endregion sites -->
45+
46+
<!-- #region external -->
47+
48+
## External applications
49+
50+
These applications are related to ProzillaOS and used in the website, but their source code is hosted in a separate repository on GitHub.
51+
52+
- [`@prozilla-os/minesweeper`][minesweeper]: Minesweeper clone
53+
- [`@prozilla-os/wordle`][wordle]: Wordle clone
54+
- [`@prozilla-os/ball-maze`][ball-maze]: 3D wooden ball maze game
55+
- [`@prozilla-os/bliss-radio`][bliss-radio]: Radio app
56+
57+
[minesweeper]: https://github.com/prozilla-os/ProzillaOS-games/blob/main/packages/games/minesweeper
58+
[wordle]: https://github.com/prozilla-os/ProzillaOS-games/blob/main/packages/games/wordle
59+
[ball-maze]: https://github.com/prozilla-os/ProzillaOS-games/blob/main/packages/games/ball-maze
60+
[bliss-radio]: https://github.com/prozilla-os/Bliss-radio-app
2561

26-
- [`@prozilla-os/demo`](./demo/): Demo site
27-
- [`@prozilla-os/docs`](./docs/): Documentation site
62+
<!-- #endregion external -->

packages/demo/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@
2626
"@fortawesome/fontawesome-svg-core": "^6.5.2",
2727
"@fortawesome/free-solid-svg-icons": "^6.5.2",
2828
"@fortawesome/react-fontawesome": "^0.2.2",
29+
"@prozilla-os/ball-maze": "^1.0.2",
2930
"@prozilla-os/bliss-radio": "^1.0.6",
3031
"@prozilla-os/logic-sim": "workspace:*",
32+
"@prozilla-os/minesweeper": "^1.0.2",
3133
"@prozilla-os/skins": "workspace:*",
34+
"@prozilla-os/wordle": "^1.0.2",
3235
"prozilla-os": "workspace:*",
3336
"react": "^18.3.1",
3437
"react-dom": "^18.3.1",

packages/demo/src/apps/ball-maze.ts

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

packages/demo/src/apps/minesweeper.ts

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

packages/demo/src/apps/wordle.ts

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

packages/demo/src/config/apps.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { AppsConfig, browser, calculator, fileExplorer, mediaViewer, settings, terminal, textEditor } from "prozilla-os";
22
import { NAME } from "./branding.config";
3-
import { wordle } from "../apps/wordle";
4-
import { ballMaze } from "../apps/ball-maze";
5-
import { minesweeper } from "../apps/minesweeper";
3+
import { wordle } from "@prozilla-os/wordle";
4+
import { ballMaze } from "@prozilla-os/ball-maze";
5+
import { minesweeper } from "@prozilla-os/minesweeper";
66
import { logicSim } from "@prozilla-os/logic-sim";
77
import { blissRadio } from "@prozilla-os/bliss-radio";
88

packages/docs/.vitepress/theme/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,4 +388,8 @@ li > p {
388388
.vp-doc img {
389389
border-radius: 8px;
390390
margin: 16px 0;
391+
}
392+
393+
.vp-doc p {
394+
line-height: 1.5;
391395
}

packages/docs/src/guides/custom-app.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,27 @@ outline: deep
44

55
# Making a custom app
66

7-
Coming soon!
7+
There are two main ways to create custom applications for ProzillaOS:
8+
9+
1. [Internal app](#internal-app)
10+
2. [External app](#external-app)
11+
12+
An internal app lives inside the same repository as the OS itself. An external app has a separate repository and must therefore also be published to a package directory, like npm, before being usable in a ProzillaOS project. The internal app approach is the simplest one and easiest one to set up, while the other approach is a bit more technical.
13+
14+
## 1. Internal app {#internal-app}
15+
16+
### Prerequisites
17+
18+
This guide assumes you have already set up a basic project that implements ProzillaOS. You can use to [getting started guide](/guides/getting-started) to set up a project with ProzillaOS.
19+
20+
### Setup
21+
22+
Create a new folder where you can put the source code of your custom ProzillaOS application.
23+
24+
## 2. External app {#external-app}
25+
26+
### Prerequisites
27+
28+
This guide assumes you have already set up a basic React project with TypeScript. To learn more about how to set up a React project, check out the official [React documentation](https://react.dev/learn/start-a-new-react-project). The React documentation also has a guide on [how to start using TypeScript in your React project](https://react.dev/learn/typescript).
29+
30+
### Setup

0 commit comments

Comments
 (0)