Update github actions

This commit is contained in:
Hadi 2024-10-14 22:07:10 +02:00
parent 34cc630789
commit ff7f46aa5d
3 changed files with 27 additions and 1 deletions

View File

@ -13,6 +13,11 @@ jobs:
steps: steps:
- name: Check out the repository to the runner - name: Check out the repository to the runner
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install required dependencies
run: |
sudo apt-get update
sudo apt-get install -y go
go install github.com/anotherhadi/markdown-table-of-contents@latest
- name: Run a script - name: Run a script
run: | run: |
chmod +x ./docs/scripts/create_readme.sh chmod +x ./docs/scripts/create_readme.sh

View File

@ -6,7 +6,7 @@
README_FILE="./README.md" README_FILE="./README.md"
table_of_content=$(md-table-of-contents ./docs/src/README_template.md) # https://github.com/anotherhadi/md-table-of-contents table_of_content=$(markdown-table-of-contents --start-by 2 ./docs/src/README_template.md) # https://github.com/anotherhadi/markdown-table-of-contents
readme_content=$(cat "./docs/src/README_template.md") readme_content=$(cat "./docs/src/README_template.md")
# Replace variables # Replace variables

View File

@ -0,0 +1,21 @@
{ config, ... }:
let
background = "#${config.lib.stylix.colors.base00}";
font = "${config.stylix.fonts.serif.name}";
in {
programs.tofi = {
enable = true;
settings = {
background-color = background;
border-width = 0;
font = font;
height = "100%";
num-results = 5;
outline-width = 0;
padding-left = "35%";
padding-top = "35%";
result-spacing = 25;
width = "100%";
};
};
}