-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:spacebarchat/docs
- Loading branch information
Showing
27 changed files
with
325 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!doctype html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script> | ||
</head> | ||
|
||
<body> | ||
<rapi-doc | ||
spec-url = "https://raw.githubusercontent.com/spacebarchat/server/master/assets/openapi.json" | ||
theme="dark" | ||
sort-endpoints-by="none" | ||
header-color="#4051b5" | ||
primary-color="#4051b5" | ||
render-style="focused" | ||
schema-expand-level=1 | ||
schema-style="table" | ||
default-schema-tab="schema" | ||
show-components="true" | ||
heading-text="Spacebar HTTP API Documentation" | ||
show-curl-before-try="true" | ||
allow-spec-url-load="false" | ||
allow-spec-file-load="false" | ||
> | ||
<a slot="logo" href="https://docs.spacebar.chat" style="margin-left: 20px; width: 30px; height: 30px;"> | ||
<img style="width: 30px; height: 30px;" src="https://docs.spacebar.chat/assets/logo.svg" /> | ||
</a> | ||
</body> | ||
|
||
</html> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
# API Routes | ||
|
||
<style> | ||
#api-routes, .md-sidebar--secondary { | ||
display: none !important; | ||
} | ||
</style> | ||
|
||
<swagger-ui src="https://raw.githubusercontent.com/{{ repositories.server }}/master/assets/openapi.json"/> | ||
<!-- <swagger-ui src="/assets/openapi.json"/> --> | ||
--- | ||
title: HTTP API Docs | ||
template: routes.html | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1 @@ | ||
# Clients | ||
|
||
!!! note "The {{ project.name }} client is, at the time of writing this (March 17th, 2023), under heavy development and not ready to be used in production just yet." | ||
|
||
!!! warning "Windows support is currently broken." | ||
|
||
The official {{ project.name }} client is currently being developed at [this repository]({{ repositories.base_url }}/{{ repositories.client }}/tree/dev/bare-rewrite). | ||
|
||
## Official host | ||
|
||
We currently host the client at [https://app.{{ project.domain }}](https://app.{{ project.domain }}). | ||
You can use it to connect to our official instance by default, | ||
or you can use it to connect to your own by editing your local storage to include the `routeSettings` key with the below example content: | ||
|
||
```json | ||
{ | ||
"api": "https://staging.{{ project.domain }}/api/v9", | ||
"cdn": "https://cdn.staging.{{ project.domain }}", | ||
"gateway": "wss://gateway.staging.{{ project.domain }}", | ||
"invite": "https://staging.{{ project.domain }}/invite", | ||
"template": "https://staging.{{ project.domain }}/template", | ||
"gift": "https://staging.{{ project.domain }}/gift", | ||
"scheduledEvent": "https://staging.{{ project.domain }}/events" | ||
} | ||
``` | ||
|
||
Replace the above endpoints with your own. If your domain name is `https://whatever.notasite`, then you'll most likely want to enter | ||
`https://whatever.noasite/api/v9` for the API endpoint, etc. | ||
|
||
## Setup/Building | ||
|
||
### Dependencies | ||
|
||
- [Git](https://git-scm.com/) | ||
- [NodeJS](https://nodejs.org). Version 16+ | ||
- [yarn](https://yarnpkg.com/) (preferred) or npm | ||
|
||
In your terminal: | ||
|
||
```bash | ||
# Download {{ project.name }} Client | ||
git clone {{ repositories.base_url }}/{{ repositories.client }}.git | ||
|
||
# Enter the cloned directory, switch branches to the one, which is actually being developed | ||
cd {{ project.name.lower() }}-client; git switch dev/bare-rewrite | ||
|
||
# Install dependencies | ||
yarn install | ||
``` | ||
|
||
To start the client with Metro for development, run | ||
|
||
```bash | ||
yarn start | ||
``` | ||
|
||
!!! note "Platform-specific development commands:" | ||
|
||
For development for Android, run | ||
|
||
```bash | ||
yarn android | ||
``` | ||
|
||
For development for iOS, run | ||
|
||
```bash | ||
yarn ios | ||
``` | ||
|
||
For development for Windows, run | ||
|
||
```bash | ||
yarn windows | ||
``` | ||
|
||
To build static files for the web (i.e. when hosting it yourself), run | ||
|
||
```bash | ||
yarn build:web | ||
``` | ||
|
||
Files will be built to `web-build` | ||
|
||
## Contributing | ||
|
||
To contribute: | ||
|
||
- [Fork the repository]({{ repositories.base_url }}/{{ repositories.client }}/fork) | ||
- Run the building instructions. | ||
- Commit & Push. | ||
- Pull Request & Done! | ||
|
||
### What can I contribute? | ||
|
||
- "Core" features like settings, editing messages, dms, markdown rendering, etc. What do you think are basic features that you would want? Some of the GitHub Issues apply to this. | ||
- Implementing other things like voice/video is fine too, though | ||
- [This]({{ repositories.base_url }}/{{ repositories.client }}/issues/21) is a good starting point and lists the core features that are still missing from the client. | ||
## [Official Client](official) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# {{ project.name }} Client | ||
|
||
The {{ project.name }} client has 2 versions: | ||
|
||
- The new, React version which is currently under active development. Docs: [React Client](react.md) | ||
- The old, legacy React Native version which is no longer under active development. Docs: [Legacy Client](legacy.md) |
Oops, something went wrong.