No description
This repository has been archived on 2022-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2020-05-03 15:52:27 +03:00
docs extra.css: set custom color for superfences tabs 2019-12-09 00:04:53 +03:00
theme/partials Make source partitial have different links depending on which project 2019-10-03 18:28:15 +03:00
.gitignore Add .tmp to .gitignore 2019-10-03 12:57:00 +07:00
.gitlab-ci.yml CI: Add musl-dev to installed packages 2020-05-03 15:52:27 +03:00
manage.sh Fix branch detection and hardcode fe branch to be develop 2019-10-03 14:57:34 +03:00
mkdocs.yml add markdown-include 2019-12-09 04:05:53 +03:00
README.md Add build instructions 2020-05-03 12:40:27 +00:00

Pleroma documentation

This project contains a documentation skeleton and a script to fill it in with data, the resulting documentation can be viewed at https://docs-develop.pleroma.social.

Contributing to the documentation

If you want to suggest an edit, please refer to the pleroma/pleroma and pleroma/pleroma-fe repos.

We use mkdocs to build the documentation and have the admonition extensions that make it possible to add block-styled side content like example summaries, notes, hints or warnings. If you are unsure of how a specific syntax should look like, feel free to look through the docs for an example.

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.

You'll need to install mkdocs for which you can check the mkdocs installation guide. Generally it's best to install it using pip. You'll also need to install the correct dependencies.

To build the docs you can clone this project and use the manage.sh script.

Example using a Debian based distro

1. Optionally create a phython virtual environment

python3 -m pip install --user --upgrade pip
python3 -m pip install --user virtualenv
apt install python3-venv
python3 -m venv env
source env/bin/activate

source env/bin/activate activates the virtual environment. When using a virtual environment, make sure to run this when you start a new terminal session. To check if you are running in the correct environment, you can do which python3. If you don't use a virtual environment, mkdocs will be installed in the site packages.

2. Install mkdocs and dependencies

pip install --upgrade pip
pip install mkdocs
pip install mkdocs-material
pip install markdown-include

3. Build the docs using the script

git clone https://git.pleroma.social/pleroma/docs
cd docs
./manage.sh all

./manage.sh all will fetch the docs from the pleroma and pleroma-fe repos and build the documentation locally. To see what other options you have, do ./manage.sh --help.

4. Serve the files

A folder site containing the static html pages will have been created. You can serve them from a server by pointing your server software (nginx, apache...) to this location. During development, you can run locally with

mkdocs serve

This handles setting up an http server and rebuilding when files change. You can then access the docs on http://127.0.0.1:8000