This commit is contained in:
parent
afaba29554
commit
d4fb901aeb
4 changed files with 12 additions and 35 deletions
41
.github/workflows/docs.yaml
vendored
41
.github/workflows/docs.yaml
vendored
|
|
@ -13,46 +13,23 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: nixos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install Nix
|
|
||||||
uses: DeterminateSystems/nix-installer-action@main
|
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
extra-conf: |
|
|
||||||
extra-experimental-features = nix-command flakes pipe-operators
|
|
||||||
|
|
||||||
- name: Set up cache
|
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
|
|
||||||
- name: Build docs
|
- name: Build docs
|
||||||
run: nix -L build github:${{ github.repository }}/${{ github.sha }}#docs --no-write-lock-file
|
run: nix -L build github:${{ forgejo.repository }}/${{ forgejo.sha }}#docs --no-write-lock-file
|
||||||
|
|
||||||
- name: Prepare docs for upload
|
- name: Prepare docs for upload
|
||||||
run: cp -r --dereference --no-preserve=mode,ownership result/ public/
|
run: cp -r --dereference --no-preserve=mode,ownership result/ public/
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: https://data.forgejo.org/actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: public/
|
path: public/
|
||||||
|
|
||||||
deploy:
|
- name: Publish Page
|
||||||
name: Deploy
|
uses: https://data.forgejo.org/actions/git-pages@v2
|
||||||
|
with:
|
||||||
needs: build
|
site: https://xetibo.git.dashie.page/reponame/
|
||||||
|
token: ${{ forge.token }}
|
||||||
permissions:
|
source: _site/
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
environment:
|
|
||||||
name: github-pages
|
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Deploy docs to GitHub Pages
|
|
||||||
id: deployment
|
|
||||||
uses: actions/deploy-pages@v4
|
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@
|
||||||
# audio control
|
# audio control
|
||||||
playerctl
|
playerctl
|
||||||
# images
|
# images
|
||||||
imv
|
eog
|
||||||
# videos
|
# videos
|
||||||
mpv
|
mpv
|
||||||
# pdf
|
# pdf
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ in {
|
||||||
description = "Applications used for handling browser mime types";
|
description = "Applications used for handling browser mime types";
|
||||||
};
|
};
|
||||||
imageApplications = lib.mkOption {
|
imageApplications = lib.mkOption {
|
||||||
default = ["imv"];
|
default = ["eog"];
|
||||||
example = [];
|
example = [];
|
||||||
type = with lib.types; listOf str;
|
type = with lib.types; listOf str;
|
||||||
description = "Applications used for handling image mime types";
|
description = "Applications used for handling image mime types";
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
];
|
];
|
||||||
image = [
|
image = [
|
||||||
{
|
{
|
||||||
run = ''imv "$@"'';
|
run = ''eog "$@"'';
|
||||||
orphan = true;
|
orphan = true;
|
||||||
display_name = "Open";
|
display_name = "Open";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue