Skip to content

Commit

Permalink
feat: init asso repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnossiom committed May 22, 2024
0 parents commit 1e0aab1
Show file tree
Hide file tree
Showing 14 changed files with 1,454 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
46 changes: 46 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build and deploy GitHub Pages

on:
push:
branches: [ main ]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Download Zola
run: wget -q -O - "https://github.com/getzola/zola/releases/download/v0.18.0/zola-v0.18.0-x86_64-unknown-linux-gnu.tar.gz" | tar xzf - -C /usr/local/bin

- name: Build website
run: zola build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'public'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "themes/papermod"]
path = themes/papermod
url = https://github.com/cydave/zola-theme-papermod
54 changes: 54 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
title = "Wiro Logiciel Libre"
base_url = "https://wiro-libre.github.io"
default_language = "fr"

theme = "papermod"
compile_sass = true
build_search_index = false
generate_feed = true
minify_html = true

taxonomies = [
{ name = "tags", feed = true },
]

[markdown]
highlight_code = false

[extra]
[extra.papermod]
title = "Wiro Logiciel Libre"
home_title = ""
home_content = """
<b>Nous</b> cherchons à _superviser le développement de logiciels informatiques sous licences libres et superviser les infrastructures de l’hébergement à utilisation publique de tels logiciels_.
Vous pouvez retouver nos projets sur GitHub.
"""
social_icons = [
{ title = "GitHub", icon = "github", url = "https://github.com/wiro-libre" },
{ title = "RSS", icon = "rss", url = "$BASE_URL/atom.xml" },
]

theme = "light"
default_theme = "auto"
language_direction = "auto"
keywords = []

show_theme_toggle = true
show_scroll_to_top = true
show_code_copy_buttons = true
show_reading_time = true
show_word_count = false
show_post_nav_links = true
show_post_meta = true
show_post_edit_button = false

default_toc_open = false
edit_post_url = "https://github.com/wiro-libre/wiro-libre.github.io/tree/master"
date_format = "%Y-%m-%d"

navigation = [
{ url = "$BASE_URL/archive", title = "Archive" },
{ url = "$BASE_URL/tags", title = "Tags" },
]

4 changes: 4 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
+++
sort_by = "date"
paginate_by = 5
+++
4 changes: 4 additions & 0 deletions content/archive/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
+++
date = "2023-05-11T00:00:00"
template = "archive.html"
+++
7 changes: 7 additions & 0 deletions content/posts/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
+++
title = "Posts"
sort_by = "date"
paginate_by = 5
insert_anchor_links = "right"
generate_feed = true
+++
8 changes: 8 additions & 0 deletions content/posts/creation-de-association.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
+++
title = "Création de l'association"
date = "2024-05-16"
+++

L'association `WIRO LOGICIEL LIBRE` à été fondée le 16 mai 2024.

<!-- more -->
6 changes: 6 additions & 0 deletions content/tags/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
+++
title = "Tags"
paginate_by = 10
generate_feed = true
+++

27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
};

outputs = { self, nixpkgs }:
let
inherit (nixpkgs.lib) genAttrs;

forAllSystems = genAttrs [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ];
forAllPkgs = function: forAllSystems (system: function pkgs.${system});

pkgs = forAllSystems (system: (import nixpkgs {
inherit system;
overlays = [ ];
}));
in
{
formatter = forAllPkgs (pkgs: pkgs.nixpkgs-fmt);

devShells = forAllPkgs (pkgs:
with pkgs.lib;
{
default = pkgs.mkShell rec {
nativeBuildInputs = with pkgs; [
zola
act
];
buildInputs = with pkgs; [ ];

LD_LIBRARY_PATH = makeLibraryPath buildInputs;
};
});
};
}

32 changes: 32 additions & 0 deletions public/css/override.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.post-content pre,
.post-content pre code {
border-radius: var(--radius);
}
.post-content pre code > table {
display: table;
margin: 10px auto;
border-radius: var(--radius);
border-spacing: 0;
border-collapse: collapse;
table-layout: fixed;
width: 100%;
}
.post-content pre code > table td {
vertical-align: top;
padding: 0;
margin: 0;
border: 0;
}
.post-content pre code > table td:first-child {
white-space: pre;
user-select: none;
margin: 0;
padding: 0 1em 0 0;
color: #7f7f7f;
text-align: right;
display: table-cell;
max-width: 10%;
}
.post-content pre code > table td:nth-child(2) {
width: 92%;
}
Loading

0 comments on commit 1e0aab1

Please sign in to comment.