Add initial documentation for create_repo.sh and site structure
- Created example Markdown document with basic formatting and code block. - Added configuration file for site settings including base URL and author. - Introduced index page with project overview and links to documentation. - Implemented detailed documentation for create_repo.sh, including usage, prerequisites, and response codes. - Added custom 404 error page for better user experience. - Developed HTML structure for create_repo.sh documentation with styling and layout. - Created main index page with project description and links to relevant resources. - Included robots.txt and sitemap.xml for search engine optimization. - Established CSS styles for consistent design across the site. - Set up base HTML template for consistent layout and navigation. - Created templates for index and page rendering to streamline content management.main
parent
10b3f56209
commit
8154786e9b
@ -0,0 +1,65 @@
|
||||
# create_repo.sh
|
||||
|
||||
Script Bash qui **crée un dépôt sur la forge** (`forge.gwenaelremond.fr`) en appelant son API REST.
|
||||
|
||||
## À quoi ça sert
|
||||
|
||||
Plutôt que de retaper une longue commande `curl` à chaque fois, le script prend le **nom** et la **description** du dépôt en arguments, et lit le **token d'authentification** dans une variable d'environnement (pour ne jamais l'écrire en dur dans le code).
|
||||
|
||||
## Prérequis
|
||||
|
||||
- `curl` (installé par défaut sur macOS et Linux)
|
||||
- Un **token d'accès** à la forge (Settings → Applications → Generate New Token)
|
||||
|
||||
## Utilisation
|
||||
|
||||
```bash
|
||||
# 1. Définir le token (une seule fois par session de terminal)
|
||||
export FORGE_TOKEN="ton_token"
|
||||
|
||||
# 2. Lancer le script
|
||||
./create_repo.sh <nom_du_repo> ["description"]
|
||||
```
|
||||
|
||||
### Exemple
|
||||
|
||||
```bash
|
||||
export FORGE_TOKEN="b103fb7f..."
|
||||
./create_repo.sh exercice "Adam"
|
||||
```
|
||||
|
||||
Cela crée le dépôt **exercice** avec la description **Adam**.
|
||||
|
||||
## Détail du fonctionnement
|
||||
|
||||
| Partie du script | Rôle |
|
||||
|------------------|------|
|
||||
| `set -euo pipefail` | Arrête le script à la moindre erreur (sécurité) |
|
||||
| Vérification de `FORGE_TOKEN` | Refuse de tourner si le token n'est pas défini |
|
||||
| `REPO_NAME` / `REPO_DESC` | Récupère les arguments passés en ligne de commande |
|
||||
| `curl -X POST .../api/v1/user/repos` | Envoie la requête de création à l'API |
|
||||
|
||||
### La requête envoyée
|
||||
|
||||
Le script construit cette requête HTTP :
|
||||
|
||||
```bash
|
||||
curl -X POST "https://forge.gwenaelremond.fr/api/v1/user/repos" \
|
||||
-H "Authorization: token $FORGE_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "accept: application/json" \
|
||||
-d '{ "name": "exercice", "description": "Adam" }'
|
||||
```
|
||||
|
||||
## Codes de réponse possibles
|
||||
|
||||
| Code HTTP | Signification |
|
||||
|-----------|---------------|
|
||||
| `201` | Dépôt créé avec succès |
|
||||
| `409` | Un dépôt portant ce nom existe déjà |
|
||||
| `401` | Token invalide ou manquant |
|
||||
|
||||
## Bonne pratique de sécurité
|
||||
|
||||
⚠️ **Ne jamais écrire le token en clair** dans le script ni le commiter dans Git.
|
||||
Si un token a été exposé, le **révoquer** et en générer un nouveau dans les paramètres de la forge.
|
||||
@ -0,0 +1,262 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="generator" content="pandoc 3.10" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
||||
<title>Mon document</title>
|
||||
<style>
|
||||
/* Default styles provided by pandoc.
|
||||
** See https://pandoc.org/MANUAL.html#variables-for-html for config info.
|
||||
*/
|
||||
html {
|
||||
color: #1a1a1a;
|
||||
background-color: #fdfdfd;
|
||||
}
|
||||
body {
|
||||
margin: 0 auto;
|
||||
max-width: 36em;
|
||||
padding-left: 50px;
|
||||
padding-right: 50px;
|
||||
padding-top: 50px;
|
||||
padding-bottom: 50px;
|
||||
hyphens: auto;
|
||||
overflow-wrap: break-word;
|
||||
text-rendering: optimizeLegibility;
|
||||
font-kerning: normal;
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
body {
|
||||
font-size: 0.9em;
|
||||
padding: 12px;
|
||||
}
|
||||
h1 {
|
||||
font-size: 1.8em;
|
||||
}
|
||||
}
|
||||
@media print {
|
||||
html {
|
||||
background-color: white;
|
||||
}
|
||||
body {
|
||||
background-color: transparent;
|
||||
color: black;
|
||||
font-size: 12pt;
|
||||
}
|
||||
p, h2, h3 {
|
||||
orphans: 3;
|
||||
widows: 3;
|
||||
}
|
||||
h2, h3, h4 {
|
||||
page-break-after: avoid;
|
||||
}
|
||||
}
|
||||
p {
|
||||
margin: 1em 0;
|
||||
}
|
||||
a {
|
||||
color: #1a1a1a;
|
||||
}
|
||||
a:visited {
|
||||
color: #1a1a1a;
|
||||
}
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
svg {
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin-top: 1.4em;
|
||||
}
|
||||
h5, h6 {
|
||||
font-size: 1em;
|
||||
font-style: italic;
|
||||
}
|
||||
h6 {
|
||||
font-weight: normal;
|
||||
}
|
||||
ol, ul {
|
||||
padding-left: 1.7em;
|
||||
margin-top: 1em;
|
||||
}
|
||||
li > ol, li > ul {
|
||||
margin-top: 0;
|
||||
}
|
||||
blockquote {
|
||||
margin: 1em 0 1em 1.7em;
|
||||
padding-left: 1em;
|
||||
border-left: 2px solid #e6e6e6;
|
||||
color: #606060;
|
||||
}
|
||||
code {
|
||||
white-space: pre-wrap;
|
||||
font-family: Menlo, Monaco, Consolas, 'Lucida Console', monospace;
|
||||
font-size: 85%;
|
||||
margin: 0;
|
||||
hyphens: manual;
|
||||
}
|
||||
pre {
|
||||
margin: 1em 0;
|
||||
overflow: auto;
|
||||
}
|
||||
pre code {
|
||||
padding: 0;
|
||||
overflow: visible;
|
||||
overflow-wrap: normal;
|
||||
}
|
||||
.sourceCode {
|
||||
background-color: transparent;
|
||||
overflow: visible;
|
||||
}
|
||||
hr {
|
||||
border: none;
|
||||
border-top: 1px solid #1a1a1a;
|
||||
height: 1px;
|
||||
margin: 1em 0;
|
||||
}
|
||||
table {
|
||||
margin: 1em 0;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
display: block;
|
||||
font-variant-numeric: lining-nums tabular-nums;
|
||||
}
|
||||
table caption {
|
||||
margin-bottom: 0.75em;
|
||||
}
|
||||
tbody {
|
||||
margin-top: 0.5em;
|
||||
border-top: 1px solid #1a1a1a;
|
||||
border-bottom: 1px solid #1a1a1a;
|
||||
}
|
||||
th {
|
||||
border-top: 1px solid #1a1a1a;
|
||||
padding: 0.25em 0.5em 0.25em 0.5em;
|
||||
}
|
||||
td {
|
||||
padding: 0.125em 0.5em 0.25em 0.5em;
|
||||
}
|
||||
header {
|
||||
margin-bottom: 4em;
|
||||
text-align: center;
|
||||
}
|
||||
#TOC li {
|
||||
list-style: none;
|
||||
}
|
||||
#TOC ul {
|
||||
padding-left: 1.3em;
|
||||
}
|
||||
#TOC > ul {
|
||||
padding-left: 0;
|
||||
}
|
||||
#TOC a:not(:hover) {
|
||||
text-decoration: none;
|
||||
}
|
||||
span.smallcaps{font-variant: small-caps;}
|
||||
div.columns{display: flex; gap: 1.5em;}
|
||||
div.column{flex: auto;}
|
||||
@media screen {
|
||||
div.columns{gap: min(4vw, 1.5em);}
|
||||
div.column{overflow-x: auto;}
|
||||
}
|
||||
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
|
||||
/* The extra [class] is a hack that increases specificity enough to
|
||||
override a similar rule in reveal.js */
|
||||
ul.task-list[class]{list-style: none;}
|
||||
ul.task-list li input[type="checkbox"] {
|
||||
font-size: inherit;
|
||||
width: 0.8em;
|
||||
margin: 0 0.8em 0.2em -1.6em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
|
||||
/* CSS for syntax highlighting */
|
||||
html { -webkit-text-size-adjust: 100%; }
|
||||
pre > code.sourceCode { white-space: pre; position: relative; }
|
||||
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
|
||||
pre > code.sourceCode > span:empty { height: 1.2em; }
|
||||
.sourceCode { overflow: visible; }
|
||||
code.sourceCode > span { color: inherit; text-decoration: inherit; }
|
||||
div.sourceCode { margin: 1em 0; }
|
||||
pre.sourceCode { margin: 0; }
|
||||
@media screen {
|
||||
div.sourceCode { overflow: auto; }
|
||||
}
|
||||
@media print {
|
||||
pre > code.sourceCode { white-space: pre-wrap; }
|
||||
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
|
||||
}
|
||||
pre.numberSource code
|
||||
{ counter-reset: source-line 0; }
|
||||
pre.numberSource code > span
|
||||
{ position: relative; left: -4em; counter-increment: source-line; }
|
||||
pre.numberSource code > span > a:first-child::before
|
||||
{ content: counter(source-line);
|
||||
position: relative; left: -1em; text-align: right; vertical-align: baseline;
|
||||
border: none; display: inline-block;
|
||||
-webkit-touch-callout: none; -webkit-user-select: none;
|
||||
-khtml-user-select: none; -moz-user-select: none;
|
||||
-ms-user-select: none; user-select: none;
|
||||
padding: 0 4px; width: 4em;
|
||||
color: #aaaaaa;
|
||||
}
|
||||
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
|
||||
div.sourceCode
|
||||
{ }
|
||||
@media screen {
|
||||
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
|
||||
}
|
||||
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
|
||||
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
|
||||
code span.at { color: #7d9029; } /* Attribute */
|
||||
code span.bn { color: #40a070; } /* BaseN */
|
||||
code span.bu { color: #008000; } /* BuiltIn */
|
||||
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
|
||||
code span.ch { color: #4070a0; } /* Char */
|
||||
code span.cn { color: #880000; } /* Constant */
|
||||
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
|
||||
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
|
||||
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
|
||||
code span.dt { color: #902000; } /* DataType */
|
||||
code span.dv { color: #40a070; } /* DecVal */
|
||||
code span.er { color: #ff0000; font-weight: bold; } /* Error */
|
||||
code span.ex { } /* Extension */
|
||||
code span.fl { color: #40a070; } /* Float */
|
||||
code span.fu { color: #06287e; } /* Function */
|
||||
code span.im { color: #008000; font-weight: bold; } /* Import */
|
||||
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
|
||||
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
|
||||
code span.op { color: #666666; } /* Operator */
|
||||
code span.ot { color: #007020; } /* Other */
|
||||
code span.pp { color: #bc7a00; } /* Preprocessor */
|
||||
code span.sc { color: #4070a0; } /* SpecialChar */
|
||||
code span.ss { color: #bb6688; } /* SpecialString */
|
||||
code span.st { color: #4070a0; } /* String */
|
||||
code span.va { color: #19177c; } /* Variable */
|
||||
code span.vs { color: #4070a0; } /* VerbatimString */
|
||||
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header id="title-block-header">
|
||||
<h1 class="title">Mon document</h1>
|
||||
</header>
|
||||
<h1 id="mon-document">Mon document</h1>
|
||||
<p>Voici un <strong>exemple</strong> de Markdown converti en HTML.</p>
|
||||
<h2 id="une-liste">Une liste</h2>
|
||||
<ul>
|
||||
<li>Premier point</li>
|
||||
<li>Deuxième point</li>
|
||||
<li>Troisième point</li>
|
||||
</ul>
|
||||
<h2 id="un-bloc-de-code">Un bloc de code</h2>
|
||||
<div class="sourceCode" id="cb1"><pre
|
||||
class="sourceCode bash"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="bu">echo</span> <span class="st">"Bonjour"</span></span></code></pre></div>
|
||||
<blockquote>
|
||||
<p>Une citation pour la route.</p>
|
||||
</blockquote>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,17 @@
|
||||
# Mon document
|
||||
|
||||
Voici un **exemple** de Markdown converti en HTML.
|
||||
|
||||
## Une liste
|
||||
|
||||
- Premier point
|
||||
- Deuxième point
|
||||
- Troisième point
|
||||
|
||||
## Un bloc de code
|
||||
|
||||
```bash
|
||||
echo "Bonjour"
|
||||
```
|
||||
|
||||
> Une citation pour la route.
|
||||
@ -0,0 +1,11 @@
|
||||
# URL de base du site (à adapter lors du déploiement)
|
||||
base_url = "http://127.0.0.1:1111"
|
||||
|
||||
title = "Documentation DevOps"
|
||||
description = "Documentation du script create_repo.sh"
|
||||
|
||||
# Génère un index de recherche
|
||||
build_search_index = false
|
||||
|
||||
[extra]
|
||||
author = "Adam"
|
||||
@ -0,0 +1,9 @@
|
||||
+++
|
||||
title = "Documentation DevOps"
|
||||
sort_by = "weight"
|
||||
+++
|
||||
|
||||
Bienvenue sur la documentation du projet DevOps.
|
||||
|
||||
Ce site présente le script **`create_repo.sh`**, qui permet de créer un dépôt
|
||||
sur la forge `forge.gwenaelremond.fr` via son API REST.
|
||||
@ -0,0 +1,72 @@
|
||||
+++
|
||||
title = "create_repo.sh"
|
||||
description = "Créer un dépôt sur la forge via l'API REST, en passant le nom et la description en arguments."
|
||||
weight = 1
|
||||
+++
|
||||
|
||||
Script Bash qui **crée un dépôt sur la forge** (`forge.gwenaelremond.fr`) en
|
||||
appelant son API REST.
|
||||
|
||||
## À quoi ça sert
|
||||
|
||||
Plutôt que de retaper une longue commande `curl` à chaque fois, le script prend
|
||||
le **nom** et la **description** du dépôt en arguments, et lit le **token
|
||||
d'authentification** dans une variable d'environnement (pour ne jamais l'écrire
|
||||
en dur dans le code).
|
||||
|
||||
## Prérequis
|
||||
|
||||
- `curl` (installé par défaut sur macOS et Linux)
|
||||
- Un **token d'accès** à la forge (Settings → Applications → Generate New Token)
|
||||
|
||||
## Utilisation
|
||||
|
||||
```bash
|
||||
# 1. Définir le token (une seule fois par session de terminal)
|
||||
export FORGE_TOKEN="ton_token"
|
||||
|
||||
# 2. Lancer le script
|
||||
./create_repo.sh <nom_du_repo> ["description"]
|
||||
```
|
||||
|
||||
### Exemple
|
||||
|
||||
```bash
|
||||
export FORGE_TOKEN="b103fb7f..."
|
||||
./create_repo.sh exercice "Adam"
|
||||
```
|
||||
|
||||
Cela crée le dépôt **exercice** avec la description **Adam**.
|
||||
|
||||
## Détail du fonctionnement
|
||||
|
||||
| Partie du script | Rôle |
|
||||
|------------------|------|
|
||||
| `set -euo pipefail` | Arrête le script à la moindre erreur (sécurité) |
|
||||
| Vérification de `FORGE_TOKEN` | Refuse de tourner si le token n'est pas défini |
|
||||
| `REPO_NAME` / `REPO_DESC` | Récupère les arguments passés en ligne de commande |
|
||||
| `curl -X POST .../api/v1/user/repos` | Envoie la requête de création à l'API |
|
||||
|
||||
### La requête envoyée
|
||||
|
||||
```bash
|
||||
curl -X POST "https://forge.gwenaelremond.fr/api/v1/user/repos" \
|
||||
-H "Authorization: token $FORGE_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "accept: application/json" \
|
||||
-d '{ "name": "exercice", "description": "Adam" }'
|
||||
```
|
||||
|
||||
## Codes de réponse possibles
|
||||
|
||||
| Code HTTP | Signification |
|
||||
|-----------|---------------|
|
||||
| `201` | Dépôt créé avec succès |
|
||||
| `409` | Un dépôt portant ce nom existe déjà |
|
||||
| `401` | Token invalide ou manquant |
|
||||
|
||||
## Bonne pratique de sécurité
|
||||
|
||||
⚠️ **Ne jamais écrire le token en clair** dans le script ni le commiter dans Git.
|
||||
Si un token a été exposé, le **révoquer** et en générer un nouveau dans les
|
||||
paramètres de la forge.
|
||||
@ -0,0 +1,3 @@
|
||||
<!doctype html>
|
||||
<title>404 Not Found</title>
|
||||
<h1>404 Not Found</h1>
|
||||
@ -0,0 +1,93 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>create_repo.sh — Documentation DevOps</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="http://127.0.0.1:1111/style.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="topbar">
|
||||
<div class="topbar-inner">
|
||||
<a class="brand" href="http://127.0.0.1:1111">
|
||||
<span class="logo">⚙</span> Documentation DevOps
|
||||
</a>
|
||||
<nav class="nav-links">
|
||||
<a href="http://127.0.0.1:1111">Accueil</a>
|
||||
<a href="http://127.0.0.1:1111/create-repo/">create_repo.sh</a>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<main class="wrap">
|
||||
|
||||
<article class="article">
|
||||
<h1>create_repo.sh</h1>
|
||||
<p>Script Bash qui <strong>crée un dépôt sur la forge</strong> (<code>forge.gwenaelremond.fr</code>) en
|
||||
appelant son API REST.</p>
|
||||
<h2 id="a-quoi-ca-sert">À quoi ça sert</h2>
|
||||
<p>Plutôt que de retaper une longue commande <code>curl</code> à chaque fois, le script prend
|
||||
le <strong>nom</strong> et la <strong>description</strong> du dépôt en arguments, et lit le <strong>token
|
||||
d'authentification</strong> dans une variable d'environnement (pour ne jamais l'écrire
|
||||
en dur dans le code).</p>
|
||||
<h2 id="prerequis">Prérequis</h2>
|
||||
<ul>
|
||||
<li><code>curl</code> (installé par défaut sur macOS et Linux)</li>
|
||||
<li>Un <strong>token d'accès</strong> à la forge (Settings → Applications → Generate New Token)</li>
|
||||
</ul>
|
||||
<h2 id="utilisation">Utilisation</h2>
|
||||
<pre><code data-lang="bash"># 1. Définir le token (une seule fois par session de terminal)
|
||||
export FORGE_TOKEN="ton_token"
|
||||
|
||||
# 2. Lancer le script
|
||||
./create_repo.sh <nom_du_repo> ["description"]
|
||||
</code></pre>
|
||||
<h3 id="exemple">Exemple</h3>
|
||||
<pre><code data-lang="bash">export FORGE_TOKEN="b103fb7f..."
|
||||
./create_repo.sh exercice "Adam"
|
||||
</code></pre>
|
||||
<p>Cela crée le dépôt <strong>exercice</strong> avec la description <strong>Adam</strong>.</p>
|
||||
<h2 id="detail-du-fonctionnement">Détail du fonctionnement</h2>
|
||||
<table><thead><tr><th>Partie du script</th><th>Rôle</th></tr></thead><tbody>
|
||||
<tr><td><code>set -euo pipefail</code></td><td>Arrête le script à la moindre erreur (sécurité)</td></tr>
|
||||
<tr><td>Vérification de <code>FORGE_TOKEN</code></td><td>Refuse de tourner si le token n'est pas défini</td></tr>
|
||||
<tr><td><code>REPO_NAME</code> / <code>REPO_DESC</code></td><td>Récupère les arguments passés en ligne de commande</td></tr>
|
||||
<tr><td><code>curl -X POST .../api/v1/user/repos</code></td><td>Envoie la requête de création à l'API</td></tr>
|
||||
</tbody></table>
|
||||
<h3 id="la-requete-envoyee">La requête envoyée</h3>
|
||||
<pre><code data-lang="bash">curl -X POST "https://forge.gwenaelremond.fr/api/v1/user/repos" \
|
||||
-H "Authorization: token $FORGE_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "accept: application/json" \
|
||||
-d '{ "name": "exercice", "description": "Adam" }'
|
||||
</code></pre>
|
||||
<h2 id="codes-de-reponse-possibles">Codes de réponse possibles</h2>
|
||||
<table><thead><tr><th>Code HTTP</th><th>Signification</th></tr></thead><tbody>
|
||||
<tr><td><code>201</code></td><td>Dépôt créé avec succès</td></tr>
|
||||
<tr><td><code>409</code></td><td>Un dépôt portant ce nom existe déjà</td></tr>
|
||||
<tr><td><code>401</code></td><td>Token invalide ou manquant</td></tr>
|
||||
</tbody></table>
|
||||
<h2 id="bonne-pratique-de-securite">Bonne pratique de sécurité</h2>
|
||||
<p>⚠️ <strong>Ne jamais écrire le token en clair</strong> dans le script ni le commiter dans Git.
|
||||
Si un token a été exposé, le <strong>révoquer</strong> et en générer un nouveau dans les
|
||||
paramètres de la forge.</p>
|
||||
|
||||
<a class="back-link" href="http://127.0.0.1:1111">← Retour à l'accueil</a>
|
||||
</article>
|
||||
|
||||
</main>
|
||||
|
||||
|
||||
<footer>
|
||||
Généré avec <strong>Zola</strong> · Adam
|
||||
</footer>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
|
||||
<script>hljs.highlightAll();</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,61 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Documentation DevOps</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="http://127.0.0.1:1111/style.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="topbar">
|
||||
<div class="topbar-inner">
|
||||
<a class="brand" href="http://127.0.0.1:1111">
|
||||
<span class="logo">⚙</span> Documentation DevOps
|
||||
</a>
|
||||
<nav class="nav-links">
|
||||
<a href="http://127.0.0.1:1111">Accueil</a>
|
||||
<a href="http://127.0.0.1:1111/create-repo/">create_repo.sh</a>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<section class="hero">
|
||||
<span class="eyebrow">Projet DevOps · CESI</span>
|
||||
<h1>Documentation DevOps</h1>
|
||||
<p>Documentation du script <code>create_repo.sh</code> — création automatisée
|
||||
de dépôts sur la forge via l'API REST.</p>
|
||||
</section>
|
||||
|
||||
<main class="wrap">
|
||||
<div class="cards">
|
||||
|
||||
<a class="card" href="http://127.0.0.1:1111/create-repo/">
|
||||
<div class="icon">📄</div>
|
||||
<h3>create_repo.sh</h3>
|
||||
<p>Créer un dépôt sur la forge via l'API REST, en passant le nom et la description en arguments.</p>
|
||||
<span class="arrow">Lire →</span>
|
||||
</a>
|
||||
|
||||
<a class="card" href="https://forge.gwenaelremond.fr/adam/exercice">
|
||||
<div class="icon">🔗</div>
|
||||
<h3>Dépôt sur la forge</h3>
|
||||
<p>Voir le projet exercice sur forge.gwenaelremond.fr</p>
|
||||
<span class="arrow">Ouvrir →</span>
|
||||
</a>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
<footer>
|
||||
Généré avec <strong>Zola</strong> · Adam
|
||||
</footer>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
|
||||
<script>hljs.highlightAll();</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,4 @@
|
||||
User-agent: *
|
||||
Disallow:
|
||||
Allow: /
|
||||
Sitemap: http://127.0.0.1:1111/sitemap.xml
|
||||
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>http://127.0.0.1:1111/</loc>
|
||||
</url>
|
||||
<url>
|
||||
<loc>http://127.0.0.1:1111/create-repo/</loc>
|
||||
</url>
|
||||
</urlset>
|
||||
@ -0,0 +1,266 @@
|
||||
:root {
|
||||
--bg: #fafbfc;
|
||||
--surface: #ffffff;
|
||||
--text: #1a202c;
|
||||
--text-soft: #4a5568;
|
||||
--muted: #718096;
|
||||
--border: #e2e8f0;
|
||||
--accent: #6366f1;
|
||||
--accent-2: #8b5cf6;
|
||||
--accent-soft: #eef2ff;
|
||||
--code-bg: #1e1e2e;
|
||||
--shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05);
|
||||
--shadow-lg: 0 4px 12px rgba(99,102,241,.15), 0 20px 48px rgba(99,102,241,.12);
|
||||
--radius: 16px;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bg: #0f1117;
|
||||
--surface: #171923;
|
||||
--text: #f7fafc;
|
||||
--text-soft: #cbd5e0;
|
||||
--muted: #a0aec0;
|
||||
--border: #2d3748;
|
||||
--accent: #818cf8;
|
||||
--accent-2: #a78bfa;
|
||||
--accent-soft: #1e1b4b;
|
||||
--code-bg: #0d0d16;
|
||||
--shadow: 0 1px 3px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
|
||||
--shadow-lg: 0 4px 12px rgba(0,0,0,.4), 0 20px 48px rgba(0,0,0,.35);
|
||||
}
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
html { scroll-behavior: smooth; }
|
||||
|
||||
body {
|
||||
font-family: 'Inter', -apple-system, system-ui, sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
line-height: 1.7;
|
||||
margin: 0;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-feature-settings: "cv02","cv03","cv04","cv11";
|
||||
}
|
||||
|
||||
/* ---- Top bar ---- */
|
||||
.topbar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 50;
|
||||
backdrop-filter: saturate(180%) blur(12px);
|
||||
background: color-mix(in srgb, var(--surface) 80%, transparent);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.topbar-inner {
|
||||
max-width: 1080px;
|
||||
margin: 0 auto;
|
||||
padding: .9rem 1.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .6rem;
|
||||
}
|
||||
.brand {
|
||||
font-weight: 800;
|
||||
font-size: 1.05rem;
|
||||
color: var(--text);
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .55rem;
|
||||
letter-spacing: -.01em;
|
||||
}
|
||||
.brand .logo {
|
||||
width: 30px; height: 30px;
|
||||
display: grid; place-items: center;
|
||||
border-radius: 9px;
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent-2));
|
||||
color: #fff; font-size: .95rem;
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
.nav-links { margin-left: auto; display: flex; gap: 1.4rem; }
|
||||
.nav-links a {
|
||||
color: var(--text-soft);
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
font-size: .92rem;
|
||||
transition: color .15s;
|
||||
}
|
||||
.nav-links a:hover { color: var(--accent); }
|
||||
|
||||
/* ---- Layout ---- */
|
||||
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
|
||||
main { padding: 3rem 0 5rem; }
|
||||
|
||||
/* ---- Hero ---- */
|
||||
.hero {
|
||||
text-align: center;
|
||||
padding: 4.5rem 1.5rem 3.5rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.hero::before {
|
||||
content: "";
|
||||
position: absolute; inset: 0;
|
||||
background:
|
||||
radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
|
||||
pointer-events: none;
|
||||
}
|
||||
.hero .eyebrow {
|
||||
display: inline-block;
|
||||
font-size: .78rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: .08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--accent);
|
||||
background: var(--accent-soft);
|
||||
padding: .35rem .8rem;
|
||||
border-radius: 999px;
|
||||
margin-bottom: 1.2rem;
|
||||
}
|
||||
.hero h1 {
|
||||
font-size: clamp(2.2rem, 5vw, 3.4rem);
|
||||
line-height: 1.1;
|
||||
letter-spacing: -.03em;
|
||||
margin: 0 0 1rem;
|
||||
background: linear-gradient(135deg, var(--text), var(--accent));
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
.hero p { font-size: 1.15rem; color: var(--text-soft); max-width: 640px; margin: 0 auto; }
|
||||
|
||||
/* ---- Cards ---- */
|
||||
.cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
||||
gap: 1.2rem;
|
||||
margin: 2.5rem 0;
|
||||
}
|
||||
.card {
|
||||
display: block;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 1.6rem;
|
||||
text-decoration: none;
|
||||
color: var(--text);
|
||||
box-shadow: var(--shadow);
|
||||
transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
|
||||
}
|
||||
.card:hover {
|
||||
transform: translateY(-4px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
.card .icon {
|
||||
width: 44px; height: 44px;
|
||||
display: grid; place-items: center;
|
||||
border-radius: 12px;
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
font-size: 1.3rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.card h3 { margin: 0 0 .4rem; font-size: 1.15rem; letter-spacing: -.01em; }
|
||||
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
|
||||
.card .arrow { color: var(--accent); font-weight: 700; margin-top: .8rem; display: inline-block; }
|
||||
|
||||
/* ---- Article ---- */
|
||||
.article {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 3rem clamp(1.5rem, 5vw, 3.5rem);
|
||||
box-shadow: var(--shadow);
|
||||
max-width: 820px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.article h1 {
|
||||
font-size: 2.4rem;
|
||||
letter-spacing: -.025em;
|
||||
margin: 0 0 1.5rem;
|
||||
line-height: 1.15;
|
||||
}
|
||||
.article h2 {
|
||||
font-size: 1.6rem;
|
||||
letter-spacing: -.02em;
|
||||
margin: 2.5rem 0 1rem;
|
||||
padding-top: 1.5rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
.article h3 { font-size: 1.25rem; margin: 1.8rem 0 .8rem; }
|
||||
.article p, .article li { color: var(--text-soft); }
|
||||
.article a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
|
||||
.article a:hover { border-bottom-color: var(--accent); }
|
||||
|
||||
/* ---- Code ---- */
|
||||
code {
|
||||
font-family: 'JetBrains Mono', ui-monospace, monospace;
|
||||
font-size: .87em;
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
padding: .15em .4em;
|
||||
border-radius: 6px;
|
||||
}
|
||||
pre {
|
||||
background: var(--code-bg) !important;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 1.25rem 1.4rem !important;
|
||||
overflow-x: auto;
|
||||
box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
|
||||
position: relative;
|
||||
}
|
||||
pre code {
|
||||
background: none;
|
||||
color: #e2e8f0;
|
||||
padding: 0;
|
||||
font-size: .88rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* ---- Tables ---- */
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
margin: 1.5rem 0;
|
||||
font-size: .92rem;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
|
||||
th { background: var(--accent-soft); color: var(--text); font-weight: 600; }
|
||||
tr:last-child td { border-bottom: none; }
|
||||
tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
|
||||
|
||||
/* ---- Blockquote ---- */
|
||||
blockquote {
|
||||
border-left: 4px solid var(--accent);
|
||||
background: var(--accent-soft);
|
||||
margin: 1.5rem 0;
|
||||
padding: 1rem 1.4rem;
|
||||
border-radius: 0 10px 10px 0;
|
||||
color: var(--text-soft);
|
||||
}
|
||||
blockquote p { margin: 0; }
|
||||
|
||||
.back-link {
|
||||
display: inline-flex; align-items: center; gap: .4rem;
|
||||
margin-top: 2.5rem;
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ---- Footer ---- */
|
||||
footer {
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 2rem 0;
|
||||
text-align: center;
|
||||
color: var(--muted);
|
||||
font-size: .88rem;
|
||||
}
|
||||
@ -0,0 +1,266 @@
|
||||
:root {
|
||||
--bg: #fafbfc;
|
||||
--surface: #ffffff;
|
||||
--text: #1a202c;
|
||||
--text-soft: #4a5568;
|
||||
--muted: #718096;
|
||||
--border: #e2e8f0;
|
||||
--accent: #6366f1;
|
||||
--accent-2: #8b5cf6;
|
||||
--accent-soft: #eef2ff;
|
||||
--code-bg: #1e1e2e;
|
||||
--shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05);
|
||||
--shadow-lg: 0 4px 12px rgba(99,102,241,.15), 0 20px 48px rgba(99,102,241,.12);
|
||||
--radius: 16px;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bg: #0f1117;
|
||||
--surface: #171923;
|
||||
--text: #f7fafc;
|
||||
--text-soft: #cbd5e0;
|
||||
--muted: #a0aec0;
|
||||
--border: #2d3748;
|
||||
--accent: #818cf8;
|
||||
--accent-2: #a78bfa;
|
||||
--accent-soft: #1e1b4b;
|
||||
--code-bg: #0d0d16;
|
||||
--shadow: 0 1px 3px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
|
||||
--shadow-lg: 0 4px 12px rgba(0,0,0,.4), 0 20px 48px rgba(0,0,0,.35);
|
||||
}
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
html { scroll-behavior: smooth; }
|
||||
|
||||
body {
|
||||
font-family: 'Inter', -apple-system, system-ui, sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
line-height: 1.7;
|
||||
margin: 0;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-feature-settings: "cv02","cv03","cv04","cv11";
|
||||
}
|
||||
|
||||
/* ---- Top bar ---- */
|
||||
.topbar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 50;
|
||||
backdrop-filter: saturate(180%) blur(12px);
|
||||
background: color-mix(in srgb, var(--surface) 80%, transparent);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.topbar-inner {
|
||||
max-width: 1080px;
|
||||
margin: 0 auto;
|
||||
padding: .9rem 1.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .6rem;
|
||||
}
|
||||
.brand {
|
||||
font-weight: 800;
|
||||
font-size: 1.05rem;
|
||||
color: var(--text);
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .55rem;
|
||||
letter-spacing: -.01em;
|
||||
}
|
||||
.brand .logo {
|
||||
width: 30px; height: 30px;
|
||||
display: grid; place-items: center;
|
||||
border-radius: 9px;
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent-2));
|
||||
color: #fff; font-size: .95rem;
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
.nav-links { margin-left: auto; display: flex; gap: 1.4rem; }
|
||||
.nav-links a {
|
||||
color: var(--text-soft);
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
font-size: .92rem;
|
||||
transition: color .15s;
|
||||
}
|
||||
.nav-links a:hover { color: var(--accent); }
|
||||
|
||||
/* ---- Layout ---- */
|
||||
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
|
||||
main { padding: 3rem 0 5rem; }
|
||||
|
||||
/* ---- Hero ---- */
|
||||
.hero {
|
||||
text-align: center;
|
||||
padding: 4.5rem 1.5rem 3.5rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.hero::before {
|
||||
content: "";
|
||||
position: absolute; inset: 0;
|
||||
background:
|
||||
radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
|
||||
pointer-events: none;
|
||||
}
|
||||
.hero .eyebrow {
|
||||
display: inline-block;
|
||||
font-size: .78rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: .08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--accent);
|
||||
background: var(--accent-soft);
|
||||
padding: .35rem .8rem;
|
||||
border-radius: 999px;
|
||||
margin-bottom: 1.2rem;
|
||||
}
|
||||
.hero h1 {
|
||||
font-size: clamp(2.2rem, 5vw, 3.4rem);
|
||||
line-height: 1.1;
|
||||
letter-spacing: -.03em;
|
||||
margin: 0 0 1rem;
|
||||
background: linear-gradient(135deg, var(--text), var(--accent));
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
.hero p { font-size: 1.15rem; color: var(--text-soft); max-width: 640px; margin: 0 auto; }
|
||||
|
||||
/* ---- Cards ---- */
|
||||
.cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
||||
gap: 1.2rem;
|
||||
margin: 2.5rem 0;
|
||||
}
|
||||
.card {
|
||||
display: block;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 1.6rem;
|
||||
text-decoration: none;
|
||||
color: var(--text);
|
||||
box-shadow: var(--shadow);
|
||||
transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
|
||||
}
|
||||
.card:hover {
|
||||
transform: translateY(-4px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
.card .icon {
|
||||
width: 44px; height: 44px;
|
||||
display: grid; place-items: center;
|
||||
border-radius: 12px;
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
font-size: 1.3rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.card h3 { margin: 0 0 .4rem; font-size: 1.15rem; letter-spacing: -.01em; }
|
||||
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
|
||||
.card .arrow { color: var(--accent); font-weight: 700; margin-top: .8rem; display: inline-block; }
|
||||
|
||||
/* ---- Article ---- */
|
||||
.article {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 3rem clamp(1.5rem, 5vw, 3.5rem);
|
||||
box-shadow: var(--shadow);
|
||||
max-width: 820px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.article h1 {
|
||||
font-size: 2.4rem;
|
||||
letter-spacing: -.025em;
|
||||
margin: 0 0 1.5rem;
|
||||
line-height: 1.15;
|
||||
}
|
||||
.article h2 {
|
||||
font-size: 1.6rem;
|
||||
letter-spacing: -.02em;
|
||||
margin: 2.5rem 0 1rem;
|
||||
padding-top: 1.5rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
.article h3 { font-size: 1.25rem; margin: 1.8rem 0 .8rem; }
|
||||
.article p, .article li { color: var(--text-soft); }
|
||||
.article a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
|
||||
.article a:hover { border-bottom-color: var(--accent); }
|
||||
|
||||
/* ---- Code ---- */
|
||||
code {
|
||||
font-family: 'JetBrains Mono', ui-monospace, monospace;
|
||||
font-size: .87em;
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
padding: .15em .4em;
|
||||
border-radius: 6px;
|
||||
}
|
||||
pre {
|
||||
background: var(--code-bg) !important;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 1.25rem 1.4rem !important;
|
||||
overflow-x: auto;
|
||||
box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
|
||||
position: relative;
|
||||
}
|
||||
pre code {
|
||||
background: none;
|
||||
color: #e2e8f0;
|
||||
padding: 0;
|
||||
font-size: .88rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* ---- Tables ---- */
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
margin: 1.5rem 0;
|
||||
font-size: .92rem;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
|
||||
th { background: var(--accent-soft); color: var(--text); font-weight: 600; }
|
||||
tr:last-child td { border-bottom: none; }
|
||||
tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
|
||||
|
||||
/* ---- Blockquote ---- */
|
||||
blockquote {
|
||||
border-left: 4px solid var(--accent);
|
||||
background: var(--accent-soft);
|
||||
margin: 1.5rem 0;
|
||||
padding: 1rem 1.4rem;
|
||||
border-radius: 0 10px 10px 0;
|
||||
color: var(--text-soft);
|
||||
}
|
||||
blockquote p { margin: 0; }
|
||||
|
||||
.back-link {
|
||||
display: inline-flex; align-items: center; gap: .4rem;
|
||||
margin-top: 2.5rem;
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ---- Footer ---- */
|
||||
footer {
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 2rem 0;
|
||||
text-align: center;
|
||||
color: var(--muted);
|
||||
font-size: .88rem;
|
||||
}
|
||||
@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="{{ get_url(path='style.css') }}">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="topbar">
|
||||
<div class="topbar-inner">
|
||||
<a class="brand" href="{{ config.base_url }}">
|
||||
<span class="logo">⚙</span> {{ config.title }}
|
||||
</a>
|
||||
<nav class="nav-links">
|
||||
<a href="{{ config.base_url }}">Accueil</a>
|
||||
<a href="{{ get_url(path='@/create-repo.md') }}">create_repo.sh</a>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% block body %}
|
||||
<main class="wrap">
|
||||
{% block content %}{% endblock content %}
|
||||
</main>
|
||||
{% endblock body %}
|
||||
|
||||
<footer>
|
||||
Généré avec <strong>Zola</strong> · {{ config.extra.author }}
|
||||
</footer>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
|
||||
<script>hljs.highlightAll();</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,29 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block body %}
|
||||
<section class="hero">
|
||||
<span class="eyebrow">Projet DevOps · CESI</span>
|
||||
<h1>{{ section.title }}</h1>
|
||||
<p>Documentation du script <code>create_repo.sh</code> — création automatisée
|
||||
de dépôts sur la forge via l'API REST.</p>
|
||||
</section>
|
||||
|
||||
<main class="wrap">
|
||||
<div class="cards">
|
||||
{% for page in section.pages %}
|
||||
<a class="card" href="{{ page.permalink }}">
|
||||
<div class="icon">📄</div>
|
||||
<h3>{{ page.title }}</h3>
|
||||
<p>{{ page.description | default(value="Lire la documentation") }}</p>
|
||||
<span class="arrow">Lire →</span>
|
||||
</a>
|
||||
{% endfor %}
|
||||
<a class="card" href="https://forge.gwenaelremond.fr/adam/exercice">
|
||||
<div class="icon">🔗</div>
|
||||
<h3>Dépôt sur la forge</h3>
|
||||
<p>Voir le projet exercice sur forge.gwenaelremond.fr</p>
|
||||
<span class="arrow">Ouvrir →</span>
|
||||
</a>
|
||||
</div>
|
||||
</main>
|
||||
{% endblock body %}
|
||||
@ -0,0 +1,11 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ page.title }} — {{ config.title }}{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<article class="article">
|
||||
<h1>{{ page.title }}</h1>
|
||||
{{ page.content | safe }}
|
||||
<a class="back-link" href="{{ config.base_url }}">← Retour à l'accueil</a>
|
||||
</article>
|
||||
{% endblock content %}
|
||||
Loading…
Reference in New Issue