update flakes

This commit is contained in:
Daniel Poelzleithner 2022-04-20 23:08:29 +02:00
parent 96725fa494
commit b9c459b94d
4 changed files with 33 additions and 16 deletions

View File

@ -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
)

View File

@ -1,4 +1,20 @@
<!DOCTYPE html>
{% 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
%}<!DOCTYPE html>
<html>
<head>
{% if page.url != "/" %}
@ -7,8 +23,8 @@
<title>{{ page.title }}</title>
{% endif %}
<!-- link to main stylesheet -->
<link rel="stylesheet" type="text/css" href="{{ site.url }}/css/main.css">
<link rel="stylesheet" type="text/css" href="{{ site.url }}/css/syntax.css">
<link rel="stylesheet" type="text/css" href="{{ base }}/css/main.css">
<link rel="stylesheet" type="text/css" href="{{ base }}/css/syntax.css">
</head>
<body>
<div id="pillar">
@ -31,16 +47,16 @@
{% else %}
{% assign title = p.title %}
{% endif %}
<li><a {% if doc_url == page.url or doc_url == tab %}class="current"{% endif %} href="{{ site.url | append: p.url }}">{{ title }}</a></li>
<li><a {% if doc_url == page.url or doc_url == tab %}class="current"{% endif %} href="{{ base| append: p.url | append: suffix }}">{{ title }}</a></li>
{% endfor %}
</ul>
{% endfor %}
<div id="menufooter"></div>
</div>
<div id="ribbonwrap"><a href="https://github.com/axkibe/lsyncd" id="ribbon"></a></div>
<div id="ribbonwrap"><a href="https://github.com/lsyncd/lsyncd" id="ribbon"></a></div>
</nav>
<div id="container">
<a href="https://github.com/axkibe/lsyncd/edit/gh-pages{{ page.url }}index.md" id="improvethis"></a>
<a href="https://github.com/lsyncd/lsyncd/edit/master/docs{{ page.url }}index.md" id="improvethis"></a>
<h1>{{ page.title }}</h1>
{{ content }}

View File

@ -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 %}

View File

@ -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": {