forked from AkkomaGang/akkoma
d61b7d4b49
CREATE DATABASE was running in a transaction block with CREATE USER. This isn't allowed (any more?). This is now two separate commands. I also did some other touch-ups including * making it OTP-first, * add backup of static directory because this contains e.g. custom emoji, and * remove the suggestion for using the setup_db.psql file. The reason is because I fear it causes more confusion than what it's worth. * Firstly, OTP installations won't have this file because it's created in /tmp. * Secondly, the instance has been reinstalled and thus a new setup_db.psql with different password may have been created, causing only more confusion. |
||
---|---|---|
.. | ||
docs | ||
theme/partials | ||
Makefile | ||
mkdocs.yml | ||
Pipfile | ||
Pipfile.lock | ||
README.md | ||
requirements.txt |
Building the docs
You don't need to build and test the docs as long as you make sure the syntax is correct. But in case you do want to build the docs, feel free to do so.
# Make sure you're in the same directory as this README
# From the root of the Akkoma repo, you'll need to do
cd docs
# Optionally use a virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Run an http server who rebuilds when files change
# Accessable on http://127.0.0.1:8000
mkdocs serve
# Build the docs
# The static html pages will have been created in the folder "site"
# You can serve them from a server by pointing your server software (nginx, apache...) to this location
mkdocs build
# To get out of the virtual environment, you do
deactivate