Skip to content

Commit

Permalink
Community docs
Browse files Browse the repository at this point in the history
  • Loading branch information
evroon committed Feb 6, 2024
1 parent f8c2607 commit 3624ab8
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 8 deletions.
7 changes: 7 additions & 0 deletions docs/docs/community/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Community",
"position": 3,
"link": {
"type": "generated-index"
}
}
40 changes: 40 additions & 0 deletions docs/docs/community/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
sidebar_position: 1
---

# Contributing

If you're using Bracket and would like to help support its development, that would be greatly
appreciated!

Several areas that we need a bit of help with at the moment are:

-**Star Bracket** on GitHub
- 🌐 **Translating**: Help make Bracket available to non-native English speakers by adding your
language. See [Translating](#translating) below.
- 📣 **Spread the word** by sharing Bracket to help new users discover it
- 🖥️ **Submit a PR** to add a new feature, fix a bug, extend/update the docs or something else

## Translating

You can add a translation by copying the English `en` locale
([here](https://github.com/evroon/bracket/tree/master/frontend/public/locales)) directory.
Rename the directory to the name of your locale, and start translating the `common.json` file inside
the directory. It might be useful to use an online tool (Google `translate json file`) to do the
translation for you, and then carefully check and correct any mistakes.

## Star History

<!-- markdownlint-disable line-length no-inline-html -->

[![stargazers](https://img.shields.io/github/stars/evroon/bracket)](https://github.com/evroon/bracket/stargazers)

<a href="https://star-history.com/#evroon/bracket&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=evroon/bracket&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=evroon/bracket&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=evroon/bracket&type=Date" />
</picture>
</a>

<!-- markdownlint-enable line-length no-inline-html -->
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
sidebar_position: 3
sidebar_position: 2
---

# Developing Bracket
# Developing

This guide explains how to run Bracket without Docker. They cover database setup, configuration and
how to run the frontend and backend. If you quickly want to get up and running, please read
[quickstart.md](running-bracket/quickstart.md).
[quickstart.md](../running-bracket/quickstart.md).

## Database

Expand All @@ -31,7 +31,7 @@ You can do the same but replace the user and database name with:
- `bracket_prod`: for a production database

The database URL can be specified per environment in the `.env` files (see
[config](running-bracket/configuration.md)).
[config](../running-bracket/configuration.md)).

## Running the frontend and backend

Expand Down
3 changes: 2 additions & 1 deletion docs/docs/running-bracket/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ sudo docker-compose up -d
```

This will start the backend and frontend of Bracket, as well as a postgres instance. You should now
be able to view bracket at http://localhost:3000. You can log in with the following credentials:
be able to view bracket at `http://localhost:3000`. You can log in with the following credentials:

- Username: `test@example.org`
- Password: `aeGhoe1ahng2Aezai0Dei6Aih6dieHoo`.

To insert dummy rows into the database, run:

```bash
sudo docker exec bracket-backend pipenv run ./cli.py create-dev-db
```
36 changes: 33 additions & 3 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const config = {
{
href: "https://github.com/evroon/bracket",
label: "GitHub",
position: "right",
position: "left",
},
],
},
Expand All @@ -95,16 +95,42 @@ const config = {
style: "dark",
links: [
{
title: "Docs",
title: "Intro",
items: [
{
label: "Introduction",
to: "/docs/intro",
},
{
label: "Quickstart",
to: "/docs/running-bracket/quickstart",
},
],
},
{
title: "Running Bracket",
items: [
{
label: "Configuration",
to: "/docs/running-bracket/configuration",
},
{
label: "Deployment",
to: "/docs/running-bracket/deployment",
},
],
},
{
title: "Community",
items: [
{
label: "Contributing",
to: "/docs/community/contributing",
},
{
label: "Developing",
to: "/docs/community/development",
},
],
},
{
Expand All @@ -114,14 +140,18 @@ const config = {
label: "GitHub",
href: "https://github.com/evroon/bracket",
},
{
label: "License",
href: "https://github.com/evroon/bracket/blob/master/LICENSE",
},
{
label: "Changelog",
href: "https://github.com/evroon/bracket/releases",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Bracket. Built with Docusaurus.`,
copyright: `Bracket - Self-Hosted Tournament System.<br/> Licensed under AGPL-v3.0. Copyright © ${new Date().getFullYear()} Bracket. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
Expand Down

0 comments on commit 3624ab8

Please sign in to comment.