@@ -82,8 +82,7 @@ git clone https://github.com/onerandomusername/monty-python
8282cd monty-python
8383```
8484
85- Next, create a file named ` .env ` within the cloned repository. This will be used
86- later regardless of how you run Monty.
85+ Next, create a file named ` .env ` within the cloned repository.
8786
8887A minimum viable contents (if using Docker) are as follows:
8988
@@ -94,8 +93,8 @@ BOT_TOKEN=...
9493# to change the default prefix from `-`
9594PREFIX=...
9695
97- # optional, used to increase GitHub ratelimits from
98- # 60 to 5000/h and enable the graphql API
96+ # optional, but necessary for anything using GitHub,
97+ # required to enable the GitHub related code
9998GITHUB_TOKEN=...
10099```
101100
@@ -111,8 +110,12 @@ uv run prek install
111110If you don't already have uv installed, check the
112111[ uv documentation] ( https://docs.astral.sh/uv/ ) , or use a tool like pipx or uvx.
113112
114- Make sure you install prek, as it will lint every commit before its created,
115- limiting the amount of fixes needing to be made in the review process.
113+ Make sure you run ` prek install ` , as it will integrate with git and lint every
114+ commit before committing, limiting the amount of fixes needing to be made in the
115+ review process.
116+
117+ Some fixes aren't automatic or done with prek, so take a look at
118+ [ Running CI locally] ( #running-ci-locally )
116119
117120### Create a Discord Bot
118121
@@ -172,9 +175,42 @@ docker compose up monty
172175Monty should now be running! There's now a few other configuration things to do
173176to finish initialising the database. See the bot only commands.
174177
175- ## Building the documentation
178+ ## Running CI locally
179+
180+ As a public bot, Monty Python has continuous integration through GitHub actions
181+ and other developer tools to ensure that Monty is held to strict quality
182+ standards (as time progresses)!
183+
184+ To run the CI equivalent locally, we use nox as our runner.
185+
186+ ``` sh
187+ uv run nox
188+ ```
189+
190+ With no arguments, this command will run all of the sessions and fixes that we
191+ run in CI.
192+
193+ If any changes are made, the results should be commited along with the rest of
194+ your code.
195+
196+ ### Commands and Autodoc
197+
198+ To document the procedures and methods on Monty, there is a custom script which
199+ serves to update two files listing the prefix and application commands that are
200+ available on Monty. These files are still in beta, and should not be relied at
201+ this moment for anything other than contributing documentation.
176202
177- TLDR
203+ Running the autodoc session should automatically update these files, if there
204+ were any changes.
205+
206+ ``` sh
207+ uv run nox -s autodoc`
208+ ` ` `
209+
210+ # ## Building the documentation
211+
212+ To preview the documentation with an automatic reloading server, use the
213+ following command:
178214
179215` ` ` sh
180216uv run nox -s docs
@@ -188,3 +224,10 @@ uv run mkdocs serve
188224
189225The dev server runs on http://127.0.0.1:8000 by default. Use ` mkdocs build` to
190226produce the static site into ` site/` .
227+
228+ If you modified any documentation pages, including the CONTRIBUTING.md document
229+ or the README.md, make sure you run mdformat.
230+
231+ ` ` ` sh
232+ uv run nox -s mdformat
233+ ` ` `
0 commit comments