From b9c459b94d27e6da4a642800cd381c66dfabc5da Mon Sep 17 00:00:00 2001 From: Daniel Poelzleithner Date: Wed, 20 Apr 2022 23:08:29 +0200 Subject: [PATCH] update flakes --- CMakeLists.txt | 3 ++- docs/_layouts/default.html | 28 ++++++++++++++++++++++------ docs/download/index.md | 6 +++--- flake.lock | 12 ++++++------ 4 files changed, 33 insertions(+), 16 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4daf867..d9b7249 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,7 +92,8 @@ add_custom_target( manpage # the html documention add_custom_target( docs-html COMMAND ${CMAKE_COMMAND} -E echo "Generate html documentation" - COMMAND jekyll build -s ${CMAKE_SOURCE_DIR}/docs/ -d html + COMMAND env JEKYLL_ENV=local jekyll build -d ${CMAKE_CURRENT_BINARY_DIR}/html + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/docs DEPENDS ${CMAKE_SOURCE_DIR}/docs ) diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 6808b01..4b58343 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -1,4 +1,20 @@ - +{% if jekyll.environment == "local" +%}{% assign suffix = 'index.html' +%}{% else +%}{% assign suffix = '' +%}{% endif +%}{% assign base = '' +%}{% assign depth = page.url | split: '/' | size +%}{% if depth <= 1 +%}{% assign base = '.' +%}{% elsif depth == 2 +%}{% assign base = '..' +%}{% elsif depth == 3 +%}{% assign base = '../..' +%}{% elsif depth == 4 +%}{% assign base = '../../..' +%}{% endif +%} {% if page.url != "/" %} @@ -7,8 +23,8 @@ {{ page.title }} {% endif %} - - + +
@@ -31,16 +47,16 @@ {% else %} {% assign title = p.title %} {% endif %} -
  • {{ title }}
  • +
  • {{ title }}
  • {% endfor %} {% endfor %}
    -
    +
    - +

    {{ page.title }}

    {{ content }} diff --git a/docs/download/index.md b/docs/download/index.md index 45dfd2d..5ce0d66 100644 --- a/docs/download/index.md +++ b/docs/download/index.md @@ -2,12 +2,12 @@ layout: default title: "Download" --- -Release 2.1.6 (current) +Release 2.1.7 (current) ======================= -Source Tar Ball: [release-2.1.6.tar.gz](https://github.com/axkibe/lsyncd/archive/release-2.1.6.tar.gz) +Source Tar Ball: [release-2.1.7.tar.gz](https://github.com/lsyncd/lsyncd/archive/release-2.1.7.tar.gz) HEAD Development ================ {% highlight shell %} -git clone https://github.com/axkibe/lsyncd.git +git clone https://github.com/lsyncd/lsyncd.git {% endhighlight %} diff --git a/flake.lock b/flake.lock index 68efe45..6603885 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "flake-utils": { "locked": { - "lastModified": 1637014545, - "narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=", + "lastModified": 1649676176, + "narHash": "sha256-OWKJratjt2RW151VUlJPRALb7OU2S5s+f0vLj4o1bHM=", "owner": "numtide", "repo": "flake-utils", - "rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4", + "rev": "a4b154ebbdc88c8498a5c7b01589addc9e9cb678", "type": "github" }, "original": { @@ -17,11 +17,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1639488789, - "narHash": "sha256-Ey12CBni1jlEGoW4eH4X0hugWs25MxHMcNH4N8VVX0U=", + "lastModified": 1650466688, + "narHash": "sha256-CzCEEyYKGCzDcO+kg5AOoTzgB1RSe+7AUb29SQg5Xeg=", "owner": "nixos", "repo": "nixpkgs", - "rev": "ce635e9dca8f7e2bfab19a3667d7e697c019c68b", + "rev": "326ef980784223f08c102d5e0ba1b3ee628a4175", "type": "github" }, "original": {