📝💄 — 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] ## [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
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 # 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".

View file

@ -1,2 +1,5 @@
---
description: Last changes in Argos.
---
```{include} ../CHANGELOG.md ```{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 # 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

View file

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

View file

@ -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"
}

View file

@ -1,3 +1,6 @@
---
description: How to configure Argos.
---
# Configuration # 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. 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 # Using Nginx as reverse proxy
Here is a example for Nginx configuration: 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 # 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.

View file

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

View file

@ -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:

View file

@ -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.

View file

@ -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

View file

@ -1,3 +1,6 @@
---
description: Whats 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
``` ```

View file

@ -1,3 +1,6 @@
---
description: Dont 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
@ -37,4 +40,4 @@ If that's your case, you can implement the `finalize` method, and return some ex
async def finalize(cls, config, result, extra_arg): async def finalize(cls, config, result, extra_arg):
# You can use the extra_arg here to determine the severity # You can use the extra_arg here to determine the severity
return Status.SUCCESS, Severity.OK return Status.SUCCESS, Severity.OK
``` ```

View file

@ -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.

View file

@ -1,3 +1,6 @@
---
description: An agent and a server, thats 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.

View file

@ -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.

View file

@ -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.
@ -14,4 +17,4 @@ brew install gnu-sed
# This will explain how to add it to your path (to replace the default one) # This will explain how to add it to your path (to replace the default one)
brew info gnu-sed brew info gnu-sed
``` ```

View file

@ -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
```

View file

@ -1,3 +1,6 @@
---
description: Soooo much questions…
---
# FAQ # FAQ
## How is it different than Nagios? ## 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 # Argos monitoring
A monitoring and status board for websites. A monitoring and status board for websites.

View file

@ -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).

View file

@ -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:

View file

@ -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.