mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 09:52:38 +02:00
📝💄 — Add opengraph tags to documentation site (fix #62)
This commit is contained in:
parent
89f4590fb7
commit
3dd1b3f36f
27 changed files with 108 additions and 6 deletions
|
@ -3,6 +3,7 @@
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
- 💄 — Correctly show results on small screens
|
- 💄 — Correctly show results on small screens
|
||||||
|
- 📝💄 — Add opengraph tags to documentation site (#62)
|
||||||
|
|
||||||
## 0.4.1
|
## 0.4.1
|
||||||
|
|
||||||
|
|
4
docs/_static/fix-nav.css
vendored
Normal file
4
docs/_static/fix-nav.css
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
.sy-head-brand img + strong {
|
||||||
|
display: inline;
|
||||||
|
margin-left: 1em;
|
||||||
|
}
|
1
docs/_static/logo.png
vendored
Symbolic link
1
docs/_static/logo.png
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../argos/server/static/logo.png
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: Argos exposes a website and an API. This is how to use the API.
|
||||||
|
---
|
||||||
# The HTTP API
|
# The HTTP API
|
||||||
|
|
||||||
Argos exposes a website and an API. The website is available at "/" and the API at "/api".
|
Argos exposes a website and an API. The website is available at "/" and the API at "/api".
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
|
---
|
||||||
|
description: Last changes in Argos.
|
||||||
|
---
|
||||||
```{include} ../CHANGELOG.md
|
```{include} ../CHANGELOG.md
|
||||||
```
|
```
|
|
@ -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
|
# 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
|
## Simple checks
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: How to use Argos from the command line.
|
||||||
|
---
|
||||||
# Command-line interface
|
# Command-line interface
|
||||||
|
|
||||||
<!-- [[[cog
|
<!-- [[[cog
|
||||||
|
|
13
docs/conf.py
13
docs/conf.py
|
@ -6,9 +6,11 @@
|
||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
||||||
# pylint: disable-msg=invalid-name,redefined-builtin
|
# pylint: disable-msg=invalid-name,redefined-builtin
|
||||||
|
from os import environ
|
||||||
|
|
||||||
import argos
|
import argos
|
||||||
|
|
||||||
project = "Argos"
|
project = "Argos monitoring"
|
||||||
copyright = "2023, Alexis Métaireau, Framasoft"
|
copyright = "2023, Alexis Métaireau, Framasoft"
|
||||||
author = "Alexis Métaireau, Framasoft"
|
author = "Alexis Métaireau, Framasoft"
|
||||||
release = argos.VERSION
|
release = argos.VERSION
|
||||||
|
@ -33,6 +35,13 @@ html_sidebars = {
|
||||||
# -- Options for HTML output -------------------------------------------------
|
# -- Options for HTML output -------------------------------------------------
|
||||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#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_theme = "shibuya"
|
||||||
html_static_path = ["_static"]
|
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"
|
||||||
|
}
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: How to configure Argos.
|
||||||
|
---
|
||||||
# Configuration
|
# Configuration
|
||||||
|
|
||||||
Argos uses a simple YAML configuration file to define the server’s configuration, the websites to monitor and the checks to run on these websites.
|
Argos uses a simple YAML configuration file to define the server’s configuration, the websites to monitor and the checks to run on these websites.
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: How to configure Nginx to use with Argos.
|
||||||
|
---
|
||||||
# Using Nginx as reverse proxy
|
# Using Nginx as reverse proxy
|
||||||
|
|
||||||
Here is a example for Nginx configuration:
|
Here is a example for Nginx configuration:
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: Here are the systemd files that can be used to deploy the server and the agents.
|
||||||
|
---
|
||||||
# Using systemd
|
# Using systemd
|
||||||
|
|
||||||
Here are the systemd files that can be used to deploy the server and the agents.
|
Here are the systemd files that can be used to deploy the server and the agents.
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: Many thanks to their developers!
|
||||||
|
---
|
||||||
# Main dependencies used by Argos
|
# Main dependencies used by Argos
|
||||||
|
|
||||||
## Python packages
|
## Python packages
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: All you need to know to develop on Argos.
|
||||||
|
---
|
||||||
# Installing for development
|
# Installing for development
|
||||||
|
|
||||||
To install all what you need to develop on Argos, do:
|
To install all what you need to develop on Argos, do:
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: Argos is licensed under the terms of the GNU AFFERO GPLv3.
|
||||||
|
---
|
||||||
# License
|
# License
|
||||||
|
|
||||||
Argos is licensed under the terms of the GNU AFFERO GPLv3.
|
Argos is licensed under the terms of the GNU AFFERO GPLv3.
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: How to use Alambic to add a database migratation to Argos.
|
||||||
|
---
|
||||||
# Adding a database migration
|
# Adding a database migration
|
||||||
|
|
||||||
We are using [Alembic](https://alembic.sqlalchemy.org) to handle the database
|
We are using [Alembic](https://alembic.sqlalchemy.org) to handle the database
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: What’s in the database?
|
||||||
|
---
|
||||||
# The data model
|
# The data model
|
||||||
|
|
||||||
```{mermaid}
|
```{mermaid}
|
||||||
|
@ -25,6 +28,19 @@ class Result{
|
||||||
- severity
|
- severity
|
||||||
- context
|
- 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
|
Result "*" o-- "1" Task : has many
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: Don’t worry, creating a new check is quite easy.
|
||||||
|
---
|
||||||
# Implementing a new check
|
# Implementing a new check
|
||||||
|
|
||||||
## Creating a new check class
|
## Creating a new check class
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: Adding a new notification way is quite simple.
|
||||||
|
---
|
||||||
# Add a notification way
|
# Add a notification way
|
||||||
|
|
||||||
Adding a new notification way is quite simple.
|
Adding a new notification way is quite simple.
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: An agent and a server, that’s all.
|
||||||
|
---
|
||||||
# Technical overview
|
# 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.
|
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.
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: Once in a while, we release this package. Here is how.
|
||||||
|
---
|
||||||
# Releasing guide
|
# Releasing guide
|
||||||
|
|
||||||
Once in a while, we release this package. Here is how.
|
Once in a while, we release this package. Here is how.
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: Depending on your setup, you might need different tools to develop on argos.
|
||||||
|
---
|
||||||
# Requirements
|
# Requirements
|
||||||
|
|
||||||
Depending on your setup, you might need different tools to develop on argos. We try to list them here.
|
Depending on your setup, you might need different tools to develop on argos. We try to list them here.
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: Launch tests! Make linting tools happy!
|
||||||
|
---
|
||||||
# Tests and linting
|
# Tests and linting
|
||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
|
@ -19,3 +22,8 @@ You can launch all of them with:
|
||||||
```bash
|
```bash
|
||||||
make lint
|
make lint
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To let `ruff` format the code, run:
|
||||||
|
```bash
|
||||||
|
make ruff-format
|
||||||
|
```
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: Soooo much questions…
|
||||||
|
---
|
||||||
# FAQ
|
# FAQ
|
||||||
|
|
||||||
## How is it different than Nagios?
|
## How is it different than Nagios?
|
||||||
|
|
|
@ -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
|
# Argos monitoring
|
||||||
|
|
||||||
A monitoring and status board for websites.
|
A monitoring and status board for websites.
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: Install Argos, with all the explanations you want.
|
||||||
|
---
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
NB: if you want a quick-installation guide, we [got you covered](tl-dr.md).
|
NB: if you want a quick-installation guide, we [got you covered](tl-dr.md).
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: Here are a few steps for you to install PostgreSQL on your system.
|
||||||
|
---
|
||||||
# Install and configure PostgreSQL
|
# Install and configure PostgreSQL
|
||||||
|
|
||||||
Here are a few steps for you to install PostgreSQL on your system:
|
Here are a few steps for you to install PostgreSQL on your system:
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
description: You want to install Argos fast? Ok, here we go.
|
||||||
|
---
|
||||||
# TL;DR: fast installation instructions
|
# TL;DR: fast installation instructions
|
||||||
|
|
||||||
You want to install Argos fast? Ok, here we go.
|
You want to install Argos fast? Ok, here we go.
|
||||||
|
|
Loading…
Reference in a new issue