Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
f90ecb7
Missing routes search
MaddyUnderStars Feb 2, 2023
23b5c66
Clarify wording
MaddyUnderStars Feb 2, 2023
109ff3a
Merge pull request #55 from fosscord/feat/missingroutes
MaddyUnderStars Feb 3, 2023
fb12402
add link in server contrib index page to missing routes
MaddyUnderStars Feb 3, 2023
291e6f2
prettier
MaddyUnderStars Feb 3, 2023
cc96ac3
Allow viewing which bits make up a right in the calculator
MaddyUnderStars Feb 3, 2023
d817a3a
Link to database docs in config docs
MaddyUnderStars Feb 17, 2023
c08a9eb
Fix missing route search for light mode
MaddyUnderStars Feb 17, 2023
2df4d61
Simplify the rights calculator styling
MaddyUnderStars Feb 17, 2023
de1c312
Move rights calc styling to extra.css
MaddyUnderStars Feb 17, 2023
a5b5a3c
Documentation for fosscord mail
MaddyUnderStars Feb 25, 2023
5f23ca3
Code review
MaddyUnderStars Feb 26, 2023
c9b0bb1
Merge pull request #56 from fosscord/pr/965
MaddyUnderStars Feb 26, 2023
b2d869d
correct the verb used for STOP route
erkinalp Feb 28, 2023
3633ce8
Merge pull request #57 from erkinalp/patch-3
MaddyUnderStars Feb 28, 2023
6f17722
Remove test client ( and related ) docs
MaddyUnderStars Mar 1, 2023
e05fed3
Merge branch 'master' of github.com:fosscord/fosscord-docs
MaddyUnderStars Mar 2, 2023
26f006e
Update gitignore to exclude venv
bitfl0wer Mar 17, 2023
6cd537c
Add client documentation
bitfl0wer Mar 18, 2023
a4ecb5e
Add venv/ to .gitignore
bitfl0wer Mar 18, 2023
6b21458
Add client-questions to FAQ
bitfl0wer Mar 18, 2023
ef009b6
prettier
bitfl0wer Mar 18, 2023
24378b8
Add notes for using the official host
MaddyUnderStars Mar 19, 2023
1d2413a
Merge pull request #61 from bitfl0wer/client-doc
MaddyUnderStars Mar 19, 2023
e463094
Add mkdocs-macros-plugin dependency
bitfl0wer Mar 19, 2023
85a3f5f
Add macros plugin to mkdocs
bitfl0wer Mar 19, 2023
c9909bf
Add macros to mkdocs.yml
bitfl0wer Mar 19, 2023
e3fea3c
Add new dependency to readme
bitfl0wer Mar 19, 2023
752ec6d
Replace all mentions of "Fosscord" with Macros
bitfl0wer Mar 19, 2023
989ccba
Merge pull request #62 from bitfl0wer/macros
FSG-Cat Mar 29, 2023
2602f05
Update workflow to include new dependency
FSG-Cat Mar 29, 2023
8ccd590
Push Major Rebrand
ChrisChrome Mar 30, 2023
4d552c2
Add DB_LOGGING env
samuelscheit Mar 30, 2023
3dc966a
Fix "github.com//repo_name"
bitfl0wer Mar 30, 2023
f43c66b
Merge pull request #63 from bitfl0wer/main
FSG-Cat Mar 30, 2023
7a27937
Update FUNDING.yml
FSG-Cat Mar 31, 2023
e21b423
more consistent capitalisation
erkinalp Apr 1, 2023
2d81dcd
Fix the last inconsistent parts
erkinalp Apr 1, 2023
cc946be
Improve link readablity in dark mode
MaddyUnderStars Apr 4, 2023
ce4a419
Guild features list
MaddyUnderStars Apr 4, 2023
38db1f4
User flags
MaddyUnderStars Apr 4, 2023
3772709
Instance owner guildlines
MaddyUnderStars Apr 4, 2023
433fb7a
Fix wording on instance rules
MaddyUnderStars Apr 8, 2023
a8a86e8
Prettier!
MaddyUnderStars Apr 8, 2023
ca25b8e
CAPITAL LETTERS.
MaddyUnderStars Apr 8, 2023
3f59ebc
fix https://github.com/spacebarchat/docs/issues/67
bitfl0wer Apr 9, 2023
62f7c67
run prettier
bitfl0wer Apr 9, 2023
6357b68
Merge pull request #68 from bitfl0wer/main
MaddyUnderStars Apr 9, 2023
6ee8573
remove switch branch instruction
bitfl0wer Apr 9, 2023
080360b
run prettier
bitfl0wer Apr 9, 2023
98d5d8b
update old link reference
bitfl0wer Apr 9, 2023
c842bf8
Merge pull request #69 from bitfl0wer/main
MaddyUnderStars Apr 10, 2023
91250e3
Mention node comes with npm command
MaddyUnderStars Apr 17, 2023
78c376c
Add route counter
MaddyUnderStars Apr 22, 2023
5d978cf
add note about where db config is
MaddyUnderStars Apr 24, 2023
d90f148
Explicitly mention user rights are separate from guild member permiss…
erkinalp Apr 26, 2023
9fb500d
Update guildFeatures.md
erkinalp Apr 27, 2023
e1455e1
me when
MaddyUnderStars Apr 28, 2023
56df740
me when when
MaddyUnderStars Apr 28, 2023
82f944c
use rapidoc for http api documentation
MaddyUnderStars Apr 28, 2023
0391b9f
Add rule numbers to coc
MaddyUnderStars May 1, 2023
3955aa7
Add repo_dispatch and pulling of CoC
May 1, 2023
3bb67a3
Fix workflow
May 1, 2023
a23ec68
Update build.yml
May 1, 2023
ef2c504
well-known stuff
MaddyUnderStars May 12, 2023
ed5eb4c
Merge branch 'master' of github.com:spacebarchat/docs
MaddyUnderStars May 12, 2023
82bf3f9
Add mention of dev client, fix typo
bitfl0wer May 20, 2023
e704f86
Run prettier
bitfl0wer May 20, 2023
9eaf17d
Merge pull request #75 from bitfl0wer/main
MaddyUnderStars May 20, 2023
0536175
Bump Minimum Versions and Clarify
FSG-Cat May 31, 2023
ebe6d2d
Fix typo in config page
Stilic Jun 14, 2023
d252b61
Merge pull request #78 from Stilic/master
MaddyUnderStars Jun 14, 2023
4b76f5e
FAQ question "is spacebar still in development?"
MaddyUnderStars Jun 14, 2023
cae4c91
Merge branch 'master' of github.com:spacebarchat/docs
MaddyUnderStars Jun 14, 2023
fe78b80
add nginx well known config
MaddyUnderStars Aug 9, 2023
66847d5
Update client docs
Puyodead1 Aug 10, 2023
cb693c9
correct staging urls
Puyodead1 Aug 10, 2023
bd05fd1
Merge pull request #76 from FSG-Cat/patch-1
Puyodead1 Aug 10, 2023
0495f00
change min node version for client to 18
Puyodead1 Aug 10, 2023
171eb24
Merge pull request #73 from erkinalp/patch-2
MaddyUnderStars Aug 11, 2023
e424fce
docs for spacebarchat/server d18584f8e9f9423f9d72d837a36a0c3cad6e8d101
MaddyUnderStars Aug 12, 2023
15766f5
Merge branch 'master' of github.com:spacebarchat/docs
MaddyUnderStars Aug 12, 2023
2aa157f
update community-instances repo to spacebarchat/spacebarchat
MaddyUnderStars Aug 14, 2023
37df838
Add SSL/TLS certificate requirement
bitfl0wer Aug 21, 2023
9fb105f
Replace "media.whatever.com" with "media.example.com"
TheKrafter Aug 22, 2023
4565491
Merge pull request #81 from TheKrafter/master
MaddyUnderStars Aug 22, 2023
59bb525
fix build error caused by dep updates, and remove swagger-ui-tag dep
MaddyUnderStars Aug 22, 2023
e963bc4
update readme
MaddyUnderStars Aug 22, 2023
4763189
edit wording
MaddyUnderStars Aug 22, 2023
7daae6b
Merge pull request #80 from bitfl0wer/main
MaddyUnderStars Aug 22, 2023
3a5acf8
update docs for client
Puyodead1 Aug 29, 2023
816ae7a
Update README.md
Puyodead1 Aug 30, 2023
5813e9a
warnings
MaddyUnderStars Aug 30, 2023
46f7654
Merge pull request #82 from spacebarchat/client-update
MaddyUnderStars Aug 30, 2023
2a643ae
Update legacy.md
Puyodead1 Aug 30, 2023
b5c6efa
Update README.md
Puyodead1 Aug 30, 2023
5013ffa
experimenting
Puyodead1 Aug 31, 2023
e74825e
fine, be like that
Puyodead1 Aug 31, 2023
582d102
Update netlify.toml
Puyodead1 Aug 31, 2023
4c9a35a
Update netlify.toml
Puyodead1 Aug 31, 2023
530d819
Update README.md
Puyodead1 Aug 31, 2023
a6158a3
Merge pull request #83 from spacebarchat/netlify
MaddyUnderStars Aug 31, 2023
54fa858
Update env.md
TheArcaneBrony Sep 26, 2023
4d94256
Update env.md
TheArcaneBrony Sep 26, 2023
2f9f824
Add NodeSource note for Ubuntu and Debian based systems
ReComplexed Oct 17, 2023
784f938
Ubuntu/Debian systems ship with outdated nodeJS
ReComplexed Oct 17, 2023
4efcfb7
Move it up to NodeJS and change formatting a bit
ReComplexed Oct 17, 2023
bf311e8
Change "or" to "and"
ReComplexed Oct 17, 2023
5813672
Merge pull request #84 from BEERproductions/master
Puyodead1 Oct 17, 2023
6bf5646
server address config docs
MaddyUnderStars Nov 20, 2023
34561e6
Merge branch 'master' of github.com:spacebarchat/docs
MaddyUnderStars Nov 20, 2023
b564334
fix incorrect database keys
Puyodead1 Nov 28, 2023
9c88310
add new right for creating registration tokens
Puyodead1 Dec 15, 2023
4f47422
Update rights.md
Puyodead1 Dec 15, 2023
12a6e8b
remove registration tokens from operator grant list
Puyodead1 Dec 15, 2023
1026b45
typo
MaddyUnderStars Dec 22, 2023
78232cf
fix wrong dev command in react client
Puyodead1 Feb 3, 2024
fa0c810
Document DB_SYNC
TheArcaneBrony Mar 6, 2024
205185f
Update JDA Bot Guide
ripples1253 Mar 30, 2024
9da58ff
Merge pull request #86 from ripples1253/master
MaddyUnderStars Apr 3, 2024
1529d37
Update (default) configuration
DEVTomatoCake Jul 4, 2024
659279c
seconds vs milliseconds how could it matter
DEVTomatoCake Jul 4, 2024
24b69d0
Update email setup docs
DEVTomatoCake Jul 4, 2024
c87bb07
guild_discovery_showAllGuilds fix
DEVTomatoCake Jul 7, 2024
fe51b8d
Merge pull request #89 from DEVTomatoCake/fix/update-config-docs
MaddyUnderStars Jul 7, 2024
18783a6
Improve application/bot docs
DEVTomatoCake Jul 19, 2024
2adfa02
Merge pull request #90 from DEVTomatoCake/feat/application-docs
MaddyUnderStars Jul 21, 2024
847a7f8
Add built-in image proxy & misc stuff
DEVTomatoCake Aug 25, 2024
f71925f
add jank client
MathMan05 Sep 15, 2024
7b6ea9e
add port note
MathMan05 Sep 15, 2024
d49c4d3
update situation
MathMan05 Sep 16, 2024
5d3e05b
update documentation
MathMan05 Sep 19, 2024
dcd7f3e
Update docs/setup/clients/jank/web.md
MathMan05 Sep 21, 2024
6ae4d45
Update docs/setup/clients/jank/web.md
MathMan05 Sep 21, 2024
da179f9
fix
MathMan05 Sep 21, 2024
60a3ed3
merge
MathMan05 Sep 21, 2024
e2daa1d
update
MathMan05 Sep 22, 2024
4d8902f
fix name
MathMan05 Sep 22, 2024
39d0d28
clarity
MathMan05 Sep 23, 2024
89f1ba8
just relized what rory wanted
MathMan05 Sep 23, 2024
291c6a7
Added 1 singular character to the documentation
FormunaGit Oct 4, 2024
2d48d68
Merge pull request #92 from MathMan05/master
Puyodead1 Nov 2, 2024
9318a8c
jank doc fixes
MathMan05 Dec 12, 2024
e706095
Merge branch 'spacebarchat:master' into master
MathMan05 Dec 12, 2024
2ddcd07
Add vercel to list of unsupported hosts
TheArcaneBrony Feb 4, 2025
764863c
Corrected well-known link.
BazhanMax Mar 14, 2025
16c196d
Merge pull request #94 from MathMan05/master
Puyodead1 Mar 23, 2025
3002990
Merge pull request #96 from BazhanMax/master
Puyodead1 Mar 23, 2025
6ec3e1f
Merge pull request #95 from spacebarchat/no-vercel
Puyodead1 Mar 23, 2025
49bbe7a
Merge pull request #93 from FormunaGit/patch-1
Puyodead1 Mar 23, 2025
8214a18
Fix incorrect official spacebar instance url (Fixes #97)
Puyodead1 Mar 24, 2025
465e93c
Update reverseProxy.md
MathMan05 Apr 9, 2025
1a6fbcf
Update reverseProxy.md
MathMan05 Apr 9, 2025
04b39f8
Merge pull request #98 from MathMan05/patch-1
TheArcaneBrony Apr 9, 2025
6db6b07
Merge branch 'master' into feat/img-proxy-and-misc-stuff
TheArcaneBrony Apr 9, 2025
41cd8d6
Merge pull request #91 from DEVTomatoCake/feat/img-proxy-and-misc-stuff
TheArcaneBrony Apr 9, 2025
d09bc4d
Merge branch 'master' into patch-4
TheArcaneBrony Apr 9, 2025
1f51e74
Merge pull request #65 from erkinalp/patch-4
TheArcaneBrony Apr 9, 2025
6d411e3
name change
MathMan05 Jun 18, 2025
04dd979
Merge branch 'master' of https://github.com/MathMan05/docs
MathMan05 Jun 18, 2025
f82b059
update some text
MathMan05 Jun 19, 2025
c79a2dd
Merge pull request #100 from MathMan05/master
MaddyUnderStars Jun 24, 2025
c3096a8
add docs for voice configuration
s074 Jun 25, 2025
c78b7c0
update npm package names
s074 Jun 26, 2025
398eded
fix spacing
s074 Jun 26, 2025
050f620
update package names again
s074 Jun 27, 2025
df80902
add nginx reverse proxy sample for voice gateway
s074 Jul 3, 2025
3ffc3e5
fix last instance of Jank
MathMan05 Jul 3, 2025
839e1c8
Merge pull request #102 from MathMan05/master
Puyodead1 Jul 3, 2025
1aa24fd
Merge pull request #101 from dank074/voice-docs
TheArcaneBrony Jul 20, 2025
7f32f47
Update index.md
anotherdoesnm Oct 3, 2025
eaab782
add import
anotherdoesnm Oct 3, 2025
63ed6fb
Merge pull request #105 from anotherdoesnm/master
TheArcaneBrony Oct 3, 2025
ae491ff
Add nix hint in server setup index
TheArcaneBrony Oct 9, 2025
eb2f6d2
Remove referenes to MariaDB as it is unmaintained and broken
TheArcaneBrony Oct 9, 2025
bde45b7
Fermi: explicitly recommend against changing the default port number …
TheArcaneBrony Oct 9, 2025
fed7bb8
Remove link to app.spacebar.chat as thats no longer hosted
TheArcaneBrony Oct 9, 2025
78f7571
Fix fermi page formatting
TheArcaneBrony Oct 9, 2025
fd1e0ca
Add admin api docs
TheArcaneBrony Oct 10, 2025
9d8abc5
Update mkdocs.yml
anotherdoesnm Nov 9, 2025
f06a849
Merge pull request #106 from anotherdoesnm/master
CyberL1 Nov 9, 2025
867d46d
fix: update build command on server setup page
CyberL1 Jan 10, 2026
adafd1c
no new line
CyberL1 Jan 10, 2026
b342dc5
Merge pull request #107 from CyberL1/master
CyberL1 Jan 10, 2026
b6cd1bb
FixMinorGrammarMistake.md
Aelfwine32 Jan 28, 2026
bbec071
Merge pull request #108 from Aelfwine32/patch-1
CyberL1 Jan 28, 2026
c629b24
MinorConciseEdit.md
Aelfwine32 Feb 4, 2026
2df183f
FAQGrammarFix.md
Aelfwine32 Feb 10, 2026
7b940ce
Merge pull request #110 from Aelfwine32/patch-3
TheArcaneBrony Feb 10, 2026
0f19d65
Add documentation for new environment variable for custom S3 endpoint
manetherenio Feb 11, 2026
f90b43f
Merge pull request #111 from manetherenio/add-s3-endpoint-envvar
TheArcaneBrony Feb 11, 2026
4c61562
Merge pull request #109 from Aelfwine32/patch-2
TheArcaneBrony Feb 11, 2026
1d38e55
feat: add docker setup page
CyberL1 Feb 11, 2026
e747eb2
Merge pull request #112 from CyberL1/feat/docker-setup-page
CyberL1 Feb 11, 2026
41e700f
update configuration instructions to center JSON format
Feb 11, 2026
84b4d2b
chore: add missing volume to db step
CyberL1 Feb 11, 2026
ab42676
Merge pull request #114 from CyberL1/fix/add-db-volume
CyberL1 Feb 11, 2026
d86a4fb
Update reverseProxy.md
Mazianni Feb 12, 2026
90dfb9e
Merge pull request #113 from strangeglyph/main
TheArcaneBrony Feb 13, 2026
e89b1d5
Merge pull request #115 from Mazianni/caddy-reverse-proxy
TheArcaneBrony Feb 13, 2026
ab771e0
Fixed casing an directory name
Feb 14, 2026
b6d29f3
Merge pull request #117 from e-lisa/admin-api-paths
CyberL1 Feb 14, 2026
11bde7f
Update index.md
anotherdoesnm Feb 14, 2026
ecad1fa
Merge pull request #118 from anotherdoesnm/master
CyberL1 Feb 14, 2026
d5839e1
fix: include data volume
CyberL1 Feb 15, 2026
b9a25dd
Merge pull request #119 from CyberL1/fix/docker-docs
CyberL1 Feb 15, 2026
5e43e2a
Add Docker Compose setup documentation for server deployment
AtoroDesu Feb 15, 2026
0531ede
Fixing postgres config step, removing mkdir steps as they are not req…
AtoroDesu Feb 15, 2026
4612dc3
Add Docker Compose setup documentation for server deployment
AtoroDesu Feb 15, 2026
3312261
Fixing postgres config step, removing mkdir steps as they are not req…
AtoroDesu Feb 15, 2026
1aef829
Merge branch 'spacebarchat-master'
AtoroDesu Feb 15, 2026
bdbb45f
Merge pull request #121 from AtoroDesu/master
CyberL1 Feb 15, 2026
70d97fe
refactor: remove separate config volume
CyberL1 Feb 15, 2026
af5e038
Merge pull request #122 from CyberL1/refactor/only-one-data-volume
CyberL1 Feb 15, 2026
5de2322
Add RabbitMQ service to Docker Compose setup documentation
AtoroDesu Feb 15, 2026
4d48024
Merge pull request #123 from AtoroDesu/master
CyberL1 Feb 15, 2026
9f54307
add docs for pion webrtc
s074 Feb 26, 2026
5128eda
Merge pull request #124 from s074/pion-docs
TheArcaneBrony Feb 26, 2026
33c2a8a
some enums puyo and I talked about
MaddyUnderStars Feb 1, 2023
50db578
Update docs/contributing/Reverse Engineering/client/enums.md
MaddyUnderStars Feb 28, 2023
4e56b1d
add discord.sex to resources
Puyodead1 Sep 22, 2024
685ebc1
Update docs/contributing/Reverse Engineering/index.md
MaddyUnderStars Jul 3, 2025
787e8da
remove space from directory name
s074 Feb 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
open_collective: fosscord
open_collective: spacebar
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Build to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- master
Expand All @@ -12,9 +13,10 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: python3 -m pip install mkdocs-material mkdocs-swagger-ui-tag mkdocs-section-index
- run: curl https://raw.githubusercontent.com/spacebarchat/spacebarchat/master/CODE_OF_CONDUCT.md -o docs/contributing/conduct.md
- run: python3 -m pip install -r requirements.txt
- run: mkdocs build
- run: echo docs.fosscord.com >> site/CNAME
- run: echo docs.spacebar.chat >> site/CNAME
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.3
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
site/
.DS_STORE
venv/
8 changes: 1 addition & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
{
"cSpell.words": [
"Fosscord",
"landingpage",
"Middlewares",
"Roadmap",
"screenshare"
]
"cSpell.words": ["landingpage", "Middlewares", "Roadmap", "screenshare"]
}
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,37 @@
# Fosscord Docs
# Spacebar Docs

[![Build to GitHub Pages](https://github.com/fosscord/fosscord-docs/actions/workflows/build.yml/badge.svg)](https://github.com/fosscord/fosscord-docs/actions/workflows/build.yml) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![Build to GitHub Pages](https://github.com/spacebarchat/docs/actions/workflows/build.yml/badge.svg)](https://github.com/spacebarchat/docs/actions/workflows/build.yml)
[![Netlify Status](https://api.netlify.com/api/v1/badges/86622c9d-4952-4da5-9825-cc016e4a5e5f/deploy-status)](https://app.netlify.com/sites/spacebar-chat/deploys)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/fosscord/fosscord-docs)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/spacebarchat/docs)

## How to get started:
## How to get started

1. Fork this repository.
2. Clone the forked repository.

```bash
git clone https://github.com/<YOUR_USERNAME_HERE>/fosscord-docs
git clone https://github.com/<YOUR_USERNAME_HERE>/docs
```

3. Install dependencies.

```bash
python3 -m pip install mkdocs-material mkdocs-swagger-ui-tag mkdocs-section-index
python3 -m pip install -r requirements.txt
```

4. Edit documents(s).

- Format document(s).

fosscord uses [prettier](https://prettier.io) formatter to consistently format our documents. Instructions to install and use prettier can be found [here](https://prettier.io/docs/en/install.html).
Spacebar uses [prettier](https://prettier.io) formatter to consistently format our documents. Instructions to install and use prettier can be found [here](https://prettier.io/docs/en/install.html).

If you are using vscode, install the [prettier extension](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) to automatically format documents on save.

5. Test locally.

- Serve in http://127.0.0.1:8000 with hot reload:
- Serve in <http://127.0.0.1:8000> with hot reload:

```bash
python3 -m mkdocs serve
Expand Down
Binary file modified docs/assets/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions docs/assets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,18 @@
.md-grid {
max-width: 65rem;
}

.md-typeset .fc-search .md-input {
background: var(--md-default-bg-color);
}

[data-md-color-scheme="slate"] .md-typeset .fc-search .md-input {
background: var(--md-code-bg-color);
}

#rights-container {
font-size: 0.75rem;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
margin-bottom: 15px;
}
7 changes: 3 additions & 4 deletions docs/assets/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions docs/assets/js/missingroutes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
const MISSING_ROUTES_LIST =
"https://raw.githubusercontent.com/spacebarchat/missing-routes/main/missing.json";
const listMount = document.getElementById("missing-routes-list");

document
.getElementById("missing-routes-search")
.addEventListener("input", (e) => {
const content = e.target.value.toLowerCase();

for (let elem of listMount.children) {
if (elem.innerText.toLowerCase().indexOf(content) !== -1)
elem.style.display = "list-item";
else elem.style.display = "none";
}
});

(async () => {
const res = await fetch(MISSING_ROUTES_LIST);
const json = await res.json();
const missingRoutes = json.routes;

document.getElementById("counter").textContent =
`We implement ${json.discord - json.missing}/${
json.discord
} endpoints from Discord.com ` +
`as well as ${
json.spacebar + json.missing - json.discord
} additional endpoints.`;

for (let route of missingRoutes) {
const elem = document.createElement("li");
const inner = document.createElement("code");
inner.innerText = route;
elem.appendChild(inner);

listMount.appendChild(elem);
}
})();
37 changes: 28 additions & 9 deletions docs/assets/js/rightsCalculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,30 @@
// grab the table data elements
[...document.querySelectorAll("td")]
.map((x) => x.innerText) // get their content
.map((x, i) =>
x.indexOf("<<") == 2 // if this column is the `value` column
? x.split(" ").reverse()[0] // get the value we shift by
: x,
); // otherwise dont do anything
.map(
(x, i) =>
x.indexOf("<<") == 2 // if this column is the `value` column
? x.split(" ").reverse()[0] // get the value we shift by
: x, // otherwise dont do anything
);

const mount = document.getElementById("rights-container");
const outputMount = document.getElementById("rights-output");
var calculated = 0n;

const calcBitsFromInput = () => {
const value = BigInt(outputMount.value);
calculated = value;

for (const div of mount.children) {
const toggle = div.children[0];
const flag = BigInt(toggle.getAttribute("id"));
toggle.checked = ((value >> flag) & 1n) != 0n;
}
};

outputMount.addEventListener("input", calcBitsFromInput);

for (var i = 0; i < rights.length; i += NUM_COLUMNS) {
const name = rights[i];
const shift = rights[i + 1];
Expand All @@ -25,7 +40,7 @@
input.setAttribute("type", "checkbox");
input.setAttribute("id", shift);
const label = document.createElement("label");
label.setAttribute("for", label.id);
label.setAttribute("for", input.id);
label.innerText = name.toUpperCase();

div.appendChild(input);
Expand All @@ -44,13 +59,14 @@
}
event.target.removeAttribute("disabled");

outputMount.innerText = "1";
calculated++;
outputMount.value = "1";
return;
} else {
for (var elem of mount.children) {
elem.children[0].removeAttribute("disabled");
}
outputMount.innerText = calculated;
outputMount.value = --calculated;
return;
}
}
Expand All @@ -59,7 +75,10 @@
? calculated + value
: calculated - value;

outputMount.innerText = calculated;
outputMount.value = calculated;
});
}

// if you reload the page, your input is still present.
calcBitsFromInput();
})();
7 changes: 3 additions & 4 deletions docs/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions docs/assets/overrides/routes.html
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>
3 changes: 0 additions & 3 deletions docs/assets/swagger.css

This file was deleted.

51 changes: 0 additions & 51 deletions docs/contributing/conduct.md

This file was deleted.

10 changes: 5 additions & 5 deletions docs/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Style and a note on etiquette

- We use [prettier](https://www.npmjs.com/package/prettier) for code formatting. We have a `.prettierrc` file in fosscord-server's root
- We use [prettier](https://www.npmjs.com/package/prettier) for code formatting. We have a `.prettierrc` file in {{ project.name.lower() }}-server's root
and use a git precommit hook to autorun it.
- Try to stay consistent with the rest of the project
- Try to keep each commit to a single feature or idea, with descriptions of what it is and why it is done. No "Large refactor" commits that touch every file,
Expand All @@ -16,7 +16,7 @@

## Structure

Fosscord is written in Typescript and is comprised of 4 main parts:
{{ project.name }} is written in TypeScript and is comprised of 4 main parts:

- REST HTTP API server
- Websocket Gateway server for realtime communication with clients
Expand All @@ -29,7 +29,7 @@ Generally, the approach is to just see what the Discord.com client sends and rec
and guessing about any functionality server-side, if it's undocumented.

For a lot of things it's pretty simple to guess, `GET /api/users/@me` returns private details about your user for example.
This route is also detailed in [Discords own documentation](https://discord.com/developers/), [here specifically](https://discord.com/developers/docs/resources/user#get-current-user).
This route is also detailed in [Discords own documentation](https://discord.com/developers/docs/intro), [here specifically](https://discord.com/developers/docs/resources/user#get-current-user).

Discord generally does not document anything that is not related to application/bot development, though.
As an example, `GET /api/updates?platform={}` which returns the `url`, `pub_date`, `name` and any `notes` about the latest client release for a platform.
Expand All @@ -40,5 +40,5 @@ Easy fix though, just edit the `DeveloperOptionsStore` localStorage key so that

!!! warning

Make sure you rerun `npm run build` every time you edit source code. Additionally, make sure you run `npm run generate:schema` whenever you change a
schema. If you want to do both, there's a shortcut: `npm run setup`.
Make sure you rerun `npm run build` every time you edit source code, or just use `npm run watch` to make TypeScript automatically recompile on code changes.
Wenn making changes to schemas or HTTP routes, run `npm run generate:schemas` and `npm run generate:openapi` to update the schemas used for validating incoming requests and generating the API documentation.
26 changes: 26 additions & 0 deletions docs/contributing/instances.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# For Instance Owners

The below are the rules for instance owners who look to be featured in our [community instances](https://github.com/spacebarchat/spacebarchat/tree/master/instances) list.
If you do not meet these criteria, your instance will simply not be featured on our website.

Your instance:

1. Rules must be in line with our [Code of Conduct](conduct.md).
2. Must not contain any Discord Inc. branding, such as including "cord" in the name or the Discord logo in promotional material.
3. Must not host the Discord Inc. client in any capacity.
4. Must be moderated for _at least_ publically accessible guilds. This includes guilds accessible from Discovery or a 'guild directory' channel in an auto join guild.
5. Must have at least regular uptime, meaning it is available at a consistent time of day.
6. Must have a valid and monitored [`general_correspondenceEmail` config](/setup/server/configuration) set.
7. Must not have default [rights](/setup/server/security/rights) that include operator or other administrative rights.
8. Use an [image proxy](/setup/server/configuration/imageProxy), e.g. Imagor, as no image proxy allows attackers to learn user IP addresses.
9. Have a valid SSL/TLS certificate for all endpoints.

We recommend (not required) that you:

- Enable [Email verification](/setup/server/email), for anti-spam purposes.
- Enable [Captcha](/setup/server/security/captcha), for anti-spam purposes.
- Run your instance under [SystemD](/setup/server/systemd) or a similar system in your distro, for automatic restarting.
- Provide some mechanism for users to report content. This may be as simple as more openly advertising your correspondence email (i.e. outside `GET /api/policies/instance` or `/api/ping`).
- Provide some mechanism for instance status, such as [Grafana](https://grafana.com/).
- Host a [`/.well-known/spacebar`](/setup/server/wellknown) file on the domain you wish users associate with your instance, e.g. `spacebar.chat`.
If doing so, use this domain as the `url` field in your community instances PR.
Loading