Skip to content

Commit

Permalink
✨ Feat: add the documentation website
Browse files Browse the repository at this point in the history
  • Loading branch information
Superp0sit1on committed Jul 18, 2024
1 parent e585f6d commit 22d29af
Show file tree
Hide file tree
Showing 28 changed files with 12,065 additions and 7 deletions.
41 changes: 35 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,51 @@
### 📦 Preparing the commit
### 🐾 Steps to follow

1. Check for lint errors and format the code:
#### 📋 Fork the repository

First, you need to fork the repository to your GitHub account. Click on the "Fork" button on the top right corner of the repository page.

#### 🌿 Create a branch

Create a new branch based on the `develop` branch with a objective name for your contribution:

```bash title="Terminal"
git checkout -b feature/your-feature-name develop
```

#### ⌨️ Develop your changes

If you need help to quickstart the local environment, check the [Getting Started](/getting-started) guide.

#### 📦 Preparing the commit

After all changes done, check for lint errors and format the code:

- For the chatbot:

```console
pipenv run isort . && pipenv run black .
```

- For the documentation:

```console
npm run lint && npm run format
```

> [!TIP]
> If you use `pnpm`, `yarn`, or `bun`, simply replace `npm` with the respective package manager.
 

### ✍️ Opening a pull request
#### ✍️ Opening a pull request

All done? Now you can open a pull request and wait for the review.
All done? Now you can push your changes to your forked repository and open a pull request to wait for a review.

> [!IMPORTANT]
> Don't forget to correctly describe your committed activities and pull requests.
> Don't forget to correctly describe your changes within the commits and the pull request.
 

### 📜 Code of Conduct

See [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
Be sure to read and follow all of the rules on our [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pipenv run bot

### 🚀 Deploy

Currently hosted on Heroku and running 24/7, you can check our [Heroku deployment documentation](https://sonny.juliomartins.dev/guide/heroku) for more info on how to deploy the chatbot to Heroku.
Currently hosted on Heroku and running 24/7, you can check our [Heroku deployment documentation](https://sonny.juliomartins.dev/guides/heroku) for more info on how to deploy the chatbot to Heroku.

 

Expand Down
21 changes: 21 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# build output
dist/
# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*


# environment variables
.env
.env.production

# macOS-specific files
.DS_Store
2 changes: 2 additions & 0 deletions docs/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore all MDX files:
**/*.mdx
12 changes: 12 additions & 0 deletions docs/.prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/** @type {import("prettier").Config} */
export default {
plugins: ["prettier-plugin-astro"],
overrides: [
{
files: "*.astro",
options: {
parser: "astro",
},
},
],
};
4 changes: 4 additions & 0 deletions docs/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions docs/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
49 changes: 49 additions & 0 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";

export default defineConfig({
integrations: [
starlight({
title: "Sonny",
logo: {
light: "./src/assets/light-logo.svg",
dark: "./src/assets/dark-logo.svg",
replacesTitle: true,
},
social: {
twitch: "https://twitch.tv/superp0sit1on",
github: "https://github.com/superp0sit1on/sonny",
},
sidebar: [
{
label: "Start Here",
items: [
{ label: "Getting Started", link: "/getting-started" },
{ label: "Releases Notes", link: "/releases" },
],
},
{
label: "Guides",
items: [
{ label: "Project Structure", link: "/guides/project-structure" },
{ label: "Writing Commands", link: "/guides/writing-commands" },
{
label: "Managing Modules",
link: "/guides/managing-modules",
},
{ label: "Deploy to Heroku", link: "/guides/deploy-to-heroku" },
{
label: "Documenting",
link: "/guides/documenting",
},
{ label: "Contributing", link: "/guides/contributing" },
],
},
{
label: "Resources",
autogenerate: { directory: "resources" },
},
],
}),
],
});
8 changes: 8 additions & 0 deletions docs/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import eslintPluginAstro from "eslint-plugin-astro";
export default [
...eslintPluginAstro.configs.recommended,
...eslintPluginAstro.configs["jsx-a11y-recommended"],
{
rules: {},
},
];
Loading

0 comments on commit 22d29af

Please sign in to comment.