Skip to content

Commit 9b9dbc2

Browse files
committed
improve docs
1 parent 85c2491 commit 9b9dbc2

File tree

6 files changed

+53
-117
lines changed

6 files changed

+53
-117
lines changed

.vuepress/styles/index.styl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@
77
video {
88
object-fit: cover;
99
}
10+
11+
.xrdebug-lib-logo {
12+
width: 140px;
13+
max-width: 100%;
14+
max-height: 76px;
15+
height: auto;
16+
}

README.md

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,35 @@ actionLink: /install/
1212
Apache 2.0 Licensed | Copyright © [Rodolfo Berrios](https://rodolfoberrios.com)
1313
:::
1414

15-
# Quick start
15+
# xrDebug
16+
17+
[xrDebug](https://xrdebug.com/) is a lightweight web-based debug software. [Play video](https://xrdebug.com/xrdebug.mp4)
18+
19+
## Quick start
20+
21+
* [Install](/install) server
22+
23+
```sh
24+
bash <(curl -sL xrdebug.com/bin.sh)
25+
```
1626

17-
* [Install](/install) command
1827
* [Run](run/README.md) `xrdebug` to spawn server
28+
29+
```sh
30+
xrdebug
31+
```
32+
1933
* Install a client library for your language or use the [HTTP API](./api/) directly
2034

2135
## Client libraries
2236

23-
To contribute a client library check the [developer guide](/developer) and the [API](/api).
37+
A client library is a wrapper around the HTTP API.
38+
39+
| Technology | Package |
40+
| ---------- | --------------------------------------------------------- |
41+
| PHP | [xrdebug/php](https://packagist.org/packages/xrdebug/php) |
42+
| WordPress | [xrdebug/wordpress](https://github.com/xrdebug/wordpress) |
43+
44+
## Contributing
2445

25-
| Language | Package |
26-
| ----------------------------------------------------------------- | --------------------------------------------------------- |
27-
| <img src="./src/tech/php.svg" alt="PHP" width="140"/> | [xrdebug/php](https://packagist.org/packages/xrdebug/php) |
28-
| <img src="./src/tech/wordpress.svg" alt="WordPress" width="140"/> | [xrdebug/wordpress](https://github.com/xrdebug/wordpress) |
46+
If you want to contribute to xrDebug, please check the [developer guide](/developer).

api/README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@ sidebarDepth: 3
66

77
The HTTP API provides a RESTful interface to the server. See the [openapi.yml](https://raw.githubusercontent.com/xrdebug/xrdebug/refs/heads/3.0/api/openapi.yml) file for alternative API documentation.
88

9-
## Endpoints
10-
11-
### GET /
9+
## GET /
1210

1311
To access the web interface, open a web browser and navigate to the server's root URL. The server will serve the web interface.
1412

1513
```sh
1614
open http://localhost:27420
1715
```
1816

19-
### POST /messages
17+
## POST /messages
2018

2119
Sends a message to the server.
2220

@@ -44,7 +42,7 @@ curl --fail -X POST \
4442
http://localhost:27420/messages
4543
```
4644

47-
### POST /pauses
45+
## POST /pauses
4846

4947
Creates a pause lock.
5048

@@ -69,7 +67,7 @@ The following parameters are optional:
6967
curl --fail -X POST --data "id=123" http://localhost:27420/pauses
7068
```
7169

72-
### GET /pauses/{id}
70+
## GET /pauses/{id}
7371

7472
Retrieves the status of an existing pause lock.
7573

@@ -86,7 +84,7 @@ Retrieves the status of an existing pause lock.
8684
curl --fail -X GET http://localhost:27420/pauses/123
8785
```
8886

89-
### DELETE /pauses/{id}
87+
## DELETE /pauses/{id}
9088

9189
Deletes a pause lock.
9290

@@ -103,7 +101,7 @@ Deletes a pause lock.
103101
curl --fail -X DELETE http://localhost:27420/pauses/123
104102
```
105103

106-
### PATCH /pauses/{id}
104+
## PATCH /pauses/{id}
107105

108106
Updates a pause lock status to `stop: true`.
109107

@@ -120,7 +118,7 @@ Updates a pause lock status to `stop: true`.
120118
curl --fail -X PATCH http://localhost:27420/pauses/123
121119
```
122120

123-
### GET /stream
121+
## GET /stream
124122

125123
Establishes a Server-Sent Events (SSE) connection.
126124

developer/README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
---
2-
sidebar: false
2+
sidebar: 3
33
---
44

55
# Developer guide
66

7-
A client library for xrDebug is easy to implement as any HTTP API. Client libraries are HTTP wrappers for interacting with xrDebug, making the configuration and usage trivial to end-users.
7+
Implementing a client library for xrDebug is straightforward since it's based on standard HTTP APIs. Client libraries act as wrappers around these HTTP endpoints, providing a clean interface that simplifies configuration and usage for end-users.
8+
9+
::: tip Welcome contributions
10+
If you have an idea for a client library in a language or technology not listed here, please reach out to us. Your contributions help make xrDebug better for everyone.
11+
:::
812

913
## Design considerations
1014

11-
- The client software is responsible for formatting the debug information.
12-
- The "ID" field is used to identify messages and pauses. It should be unique for each message or pause, and it's up to the client to generate it.
15+
- Server doesn't enforce any specific message format and client software is responsible for formatting the debug information. It's recommended to use HTML for messages.
16+
- "ID" field is used to identify messages and pauses. It should be unique, and it's up to the client to generate it.
17+
18+
Client software **only requires** to handle the following endpoints:
19+
20+
- `POST /messages`
21+
- `POST /pauses`
22+
- `GET /pauses/{id}`
1323

1424
## Message
1525

src/tech/php.svg

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

src/tech/wordpress.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)