📝💄 — Add opengraph tags to documentation site (fix #62)

This commit is contained in:
Luc Didry 2024-09-25 18:05:09 +02:00
parent 89f4590fb7
commit 3dd1b3f36f
No known key found for this signature in database
GPG key ID: EA868E12D0257E3C
27 changed files with 108 additions and 6 deletions

View file

@ -3,6 +3,7 @@
## [Unreleased]
- 💄 — Correctly show results on small screens
- 📝💄 — Add opengraph tags to documentation site (#62)
## 0.4.1

4
docs/_static/fix-nav.css vendored Normal file
View file

@ -0,0 +1,4 @@
.sy-head-brand img + strong {
display: inline;
margin-left: 1em;
}

1
docs/_static/logo.png vendored Symbolic link
View file

@ -0,0 +1 @@
../../argos/server/static/logo.png

View file

@ -1,3 +1,6 @@
---
description: Argos exposes a website and an API. This is how to use the API.
---
# The HTTP API
Argos exposes a website and an API. The website is available at "/" and the API at "/api".

View file

@ -1,2 +1,5 @@
---
description: Last changes in Argos.
---
```{include} ../CHANGELOG.md
```

View file

@ -1,6 +1,9 @@
---
description: Here are the checks that Argos proposes, with a description of what they do and how to configure them.
---
# Checks
At its core, argos runs checks and return the results to the service. Here are the implemented checks, with a description of what they do and how to configure them.
At its core, Argos runs checks and return the results to the service. Here are the implemented checks, with a description of what they do and how to configure them.
## Simple checks

View file

@ -1,3 +1,6 @@
---
description: How to use Argos from the command line.
---
# Command-line interface
<!-- [[[cog

View file

@ -6,9 +6,11 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
# pylint: disable-msg=invalid-name,redefined-builtin
from os import environ
import argos
project = "Argos"
project = "Argos monitoring"
copyright = "2023, Alexis Métaireau, Framasoft"
author = "Alexis Métaireau, Framasoft"
release = argos.VERSION
@ -33,6 +35,13 @@ html_sidebars = {
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
if "CI_JOB_ID" in environ:
html_baseurl = "https://argos-monitoring.framasoft.org"
html_theme = "shibuya"
html_static_path = ["_static"]
html_css_files = ["fonts.css"]
html_css_files = ["fonts.css", "fix-nav.css"]
html_logo = "_static/logo.png"
html_theme_options = {
"og_image_url": "https://argos-monitoring.framasoft.org/_static/logo.png"
}

View file

@ -1,3 +1,6 @@
---
description: How to configure Argos.
---
# Configuration
Argos uses a simple YAML configuration file to define the servers configuration, the websites to monitor and the checks to run on these websites.

View file

@ -1,3 +1,6 @@
---
description: How to configure Nginx to use with Argos.
---
# Using Nginx as reverse proxy
Here is a example for Nginx configuration:

View file

@ -1,3 +1,6 @@
---
description: Here are the systemd files that can be used to deploy the server and the agents.
---
# Using systemd
Here are the systemd files that can be used to deploy the server and the agents.

View file

@ -1,3 +1,6 @@
---
description: Many thanks to their developers!
---
# Main dependencies used by Argos
## Python packages

View file

@ -1,3 +1,6 @@
---
description: All you need to know to develop on Argos.
---
# Installing for development
To install all what you need to develop on Argos, do:

View file

@ -1,3 +1,6 @@
---
description: Argos is licensed under the terms of the GNU AFFERO GPLv3.
---
# License
Argos is licensed under the terms of the GNU AFFERO GPLv3.

View file

@ -1,3 +1,6 @@
---
description: How to use Alambic to add a database migratation to Argos.
---
# Adding a database migration
We are using [Alembic](https://alembic.sqlalchemy.org) to handle the database

View file

@ -1,3 +1,6 @@
---
description: Whats in the database?
---
# The data model
```{mermaid}
@ -25,6 +28,19 @@ class Result{
- severity
- context
}
class ConfigCache {
- name
- val
- updated_at
}
class User {
- username
- password
- disabled
- created_at
- updated_at
- last_login_at
}
Result "*" o-- "1" Task : has many
```

View file

@ -1,3 +1,6 @@
---
description: Dont worry, creating a new check is quite easy.
---
# Implementing a new check
## Creating a new check class

View file

@ -1,3 +1,6 @@
---
description: Adding a new notification way is quite simple.
---
# Add a notification way
Adding a new notification way is quite simple.

View file

@ -1,3 +1,6 @@
---
description: An agent and a server, thats all.
---
# Technical overview
Argos uses an agent and server architecture. The server is responsible for storing the configuration and the results of the checks. The agent is responsible for running the checks and sending the results to the server.

View file

@ -1,3 +1,6 @@
---
description: Once in a while, we release this package. Here is how.
---
# Releasing guide
Once in a while, we release this package. Here is how.

View file

@ -1,3 +1,6 @@
---
description: Depending on your setup, you might need different tools to develop on argos.
---
# Requirements
Depending on your setup, you might need different tools to develop on argos. We try to list them here.

View file

@ -1,3 +1,6 @@
---
description: Launch tests! Make linting tools happy!
---
# Tests and linting
## Tests
@ -19,3 +22,8 @@ You can launch all of them with:
```bash
make lint
```
To let `ruff` format the code, run:
```bash
make ruff-format
```

View file

@ -1,3 +1,6 @@
---
description: Soooo much questions…
---
# FAQ
## How is it different than Nagios?

View file

@ -1,3 +1,6 @@
---
description: A monitoring and status board for websites. Test how your websites respond to external checks, get notified when something goes wrong.
---
# Argos monitoring
A monitoring and status board for websites.

View file

@ -1,3 +1,6 @@
---
description: Install Argos, with all the explanations you want.
---
# Installation
NB: if you want a quick-installation guide, we [got you covered](tl-dr.md).

View file

@ -1,3 +1,6 @@
---
description: Here are a few steps for you to install PostgreSQL on your system.
---
# Install and configure PostgreSQL
Here are a few steps for you to install PostgreSQL on your system:

View file

@ -1,3 +1,6 @@
---
description: You want to install Argos fast? Ok, here we go.
---
# TL;DR: fast installation instructions
You want to install Argos fast? Ok, here we go.