You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
Specification documents and API documentation for the polyproto federated messaging protocol
4
-
Built with mkdocs-material and python3.12
17
+
Specification documents and API documentation for the polyproto federated messaging protocol.
18
+
19
+
Documentation built with mkdocs-material and python3.12
20
+
21
+
API documentation built with [TypeSpec](https://typespec.io).
22
+
23
+
## Pre-compiled OpenAPI schema(s)
24
+
25
+
Find the pre-compiled OpenAPI schema file(s) in the [`/api/build`](https://github.com/polyphony-chat/docs/tree/main/api/build) directory. The schema is automatically built and deployed to the `main` branch on every push to the `main` branch.
5
26
6
27
## File structure
7
28
@@ -22,6 +43,8 @@ You should also read our [Code of Conduct](https://github.com/polyphony-chat/.gi
22
43
23
44
## Setting up a development environment
24
45
46
+
### Documentation
47
+
25
48
You will need the following things installed on your computer:
26
49
27
50
-`python3.12`
@@ -33,3 +56,20 @@ Optionally, you can install [`vale`](https://vale.sh/) for spell-/grammar checki
33
56
34
57
Use `pip install -r requirements.txt` to install the required dependencies, and `mkdocs build` or
35
58
`mkdocs serve` to build the project or serve it on localhost.
59
+
60
+
### API documentation
61
+
62
+
You will need the following things installed on your computer:
63
+
64
+
-`Node.js >= 20`
65
+
-`npm`, `pnpm` or `yarn`
66
+
-`git`
67
+
-`TypeSpec` - install it globally with `npm install -g @typespec/compiler`
68
+
69
+
1. Navigate to the `/api/src` directory.
70
+
2. Select the project you want to compile. In this example, we are compiling the `core` project.
71
+
Navigate to that directory.
72
+
3. Run `tsp install` to install the dependencies.
73
+
4. Run `tsp compile .` to compile the project or `tsp compile --watch .` to automatically recompile
74
+
the project when you save a file.
75
+
5. The compiled OpenAPI3 schema will be in the `$PROJECT/tsp-output/@typespec/openapi3` directory.
0 commit comments