Skip to content

Commit

Permalink
Update dep graph page
Browse files Browse the repository at this point in the history
  • Loading branch information
MBunel committed Nov 27, 2024
1 parent 5d7ebd4 commit 2b925a9
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 27 deletions.
4 changes: 2 additions & 2 deletions src/pages/apropos.org
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Sauf mention contraire, les contenus publiés sur ce site sont réutilisables su

* Technique
Ce site est généré à l'aide d'un moteur de blog
statique basé sur Emacs, [[https://emacs.love/weblorg/][/weblorg/]]. J'utilise un [[https://github.com/MBunel/mbunel.xyz/tree/main/theme][template personalisé]],
statique basé sur Emacs, [[https://emacs.love/weblorg/][/weblorg/]]. J'utilise un [[https://github.com/MBunel/mbunel.xyz/tree/main/theme][template personnalisé]],
basé sur les polices [[https://github.com/impallari/Libre-Baskerville][Libre Baskerville]], [[https://github.com/impallari/Libre-Franklin][Libre Franklin]], [[https://github.com/googlefonts/spacemono][Space Mono]] et
la palette de couleurs [[https://catppuccin.com/][Catppuccin]].

La publication de ce site est automatisée par une [[https://github.com/MBunel/mbunel.xyz/blob/main/.github/workflows/main.yml][action GitHub]] reproductible, grâce à l'utilisation du gestionnaire de package [[https://guix.gnu.org/][Guix]].
La publication de ce site est automatisée par une [[https://github.com/MBunel/mbunel.xyz/blob/main/.github/workflows/main.yml][action GitHub]] reproductible, grâce à l'utilisation du gestionnaire de paquets [[https://guix.gnu.org/][Guix]].

Les sources sont disponibles sur le dépôt Github [[https://github.com/MBunel/mbunel.xyz][MBunel/mbunel.xyz]].

Expand Down
22 changes: 14 additions & 8 deletions src/pages/dep_graph.org
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
#+OPTIONS: num:nil toc:nil


Manifeste:

#+INCLUDE: "../../manifest.scm" src scheme :eval no

Channel :

#+INCLUDE: "../../channels.scm" src scheme :eval no

Ce (gros) [[url_for:static,file=images/dep_graph.svg][fichier svg]] présente le graphe complet des dépendances de ce site. Il est généré avec la commande suivante :

#+LABEL: dep_graph
Expand All @@ -20,3 +12,17 @@ guix graph -t references $(readlink -f $GUIX_ENVIRONMENT/)

#+HEADER: :file ../../_temp/static/images/dep_graph.svg :results none
#+RESULTS: dep_graph

Le gestionnaire de paquets [[https://guix.gnu.org/][Guix]] permet de reproduire cet état du système sur différentes machines, garantissant la reproductibilté de ce site. On peut retourner à cet état du système en utilisant la commande suivante :

#+BEGIN_SRC shell :eval no
guix time-machine -m manifest.scm -c channels.scm -- shell
#+END_SRC

Avec ~manifest.scm~ le fichier suivant:

#+INCLUDE: "../../manifest.scm" src scheme :eval no

et ~channels.scm~ le fichier suivant :

#+INCLUDE: "../../channels.scm" src scheme :eval no
40 changes: 23 additions & 17 deletions theme/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -285,23 +285,8 @@ hgroup > p {
.org-src-container, blockquote {
box-shadow: 10px 10px 0 -5px var(--attention-1);
background: var(--mantle);
/* border: 1px solid var(--attention-1); */

}

blockquote {
margin-bottom: 10px;
}


blockquote, .org-src-container {
padding-bottom: 0.5em;
padding-top: 0.5em;
padding-left: 1em;
padding-right: 1em;
margin-left: 2em;
margin-right: 2em;

padding: 0.5em 1em;
margin: 1em 2em 2em;
}

.csl-bib-body {
Expand Down Expand Up @@ -349,6 +334,26 @@ kbd, code {

/* Source Code */
.org-src-container {
position: relative;
}

.org-src-container > pre::before {
display: block;
position: absolute;
bottom: 0;
right: 0;
padding: .5em;
color: var(--attention-1);
font-size: 80%;
font-weight: bold;
}

.org-src-container > pre.src-scheme::before {
content: "Scheme";
}

.org-src-container > pre.src-shell::before {
content: "Shell";
}

.org-keyword {
Expand Down Expand Up @@ -394,6 +399,7 @@ kbd, code {
color: var(--blue);
}

/* .org-sh-quoted-exec {} */


/* Listes */
Expand Down

0 comments on commit 2b925a9

Please sign in to comment.