Initial website

This commit is contained in:
Eike Kettner
2020-07-27 22:13:22 +02:00
parent dbd0f3ff97
commit f8c6f79b10
160 changed files with 8854 additions and 64 deletions

View File

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Not Found</title>
<link rel="stylesheet" href="/styles.css">
</head>
<body>
<section class="hero is-info is-small">
<div class="hero-head">
{% include "navbar.html" %}
</div>
<div class="hero-body">
<h1 class="title">
Not Found
</h1>
</div>
</section>
<section class="section">
<div class="columns is-vcentered">
<div class="column">
<figure class="image is-2by1 feature-image">
<img alt="Not Found Ghost" src="/icons/ghost-40.svg"/>
</figure>
</div>
<div class="column">
<h1 class="title">
Not Found :(
</h1>
<h2 class="subtitle">
<a href="/docs">Documentation</a>?
</h2>
</div>
</div>
</section>
{% include "footer.html" %}
</body>
</html>

View File

@ -0,0 +1,23 @@
<footer class="footer">
<div class="container">
<div class="content has-text-centered">
<span>
Docspell, {{ config.extra.version }}
</span>
<span class="ml-1 mr-1"></span>
<a href="https://spdx.org/licenses/GPL-3.0-or-later.html" target="_blank">GPLv3+</a>
<span class="ml-1 mr-1"></span>
<a href="https://github.com/eikek/docspell" target="_blank">
Source Code
</a>
<span class="ml-1 mr-1"></span>
<span>
© 2020
<a href="https://github.com/eikek" target="_blank">
@eikek
</a>
</span>
</div>
</div>
{# <pre> {{ __tera_context }} </pre> #}
</footer>

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Docspell Simple document organizer</title>
<link rel="stylesheet" href="styles.css">
<script type="application/javascript" src="js/bundle.js"></script>
</head>
<body id="app">
</body>
<script type="application/javascript">
var elmFlags = {
"version": "{{ config.extra.version }}"
};
var elmApp = Elm.Main.init({
node: document.getElementById("app"),
flags: elmFlags
});
</script>
</html>

View File

@ -0,0 +1,24 @@
<nav class="navbar">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<span class="icon">
<img src="/icons/logo-only.svg">
</span>
<span>
Docspell
</span>
</a>
</div>
<div class="navbar-start">
<a target="_blank"
href="https://github.com/eikek/docspell"
class="navbar-item">
<span class="icon">
<img src="/icons/github-40.svg">
</span>
<span>
Github
</span>
</a>
</div>
</nav>

View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Docspell: {{ section.title }}</title>
<link rel="stylesheet" href="../styles.css">
</head>
<body>
<section class="hero is-info is-small">
<div class="hero-head">
{% include "navbar.html" %}
</div>
<div class="hero-body">
<h1 class="title">
Docspell Documentation
</h1>
<h2 class="subtitle">
{{ section.title }}
</h2>
</div>
</section>
<section class="section">
<div class="content is-size-5">
This is the documentation for Docspell, version {{ config.extra.version }}.
</div>
<div class="columns is-multiline">
{% for section in section.subsections %}
{% set sub = get_section(path=section) %}
<div class="column is-one-third-widescreen is-half-tablet">
<div class="card full-height">
<a href="{{sub.permalink | safe}}">
<div class="card-content">
<div class="media">
<div class="media-content">
<p class="title is-5">
{{ sub.title | title }}
</p>
<p class="subtitle is-6">
{{ sub.description }}
</p>
</div>
</div>
</div>
</a>
</div>
</div>
{% endfor %}
</div>
</section>
{% include "footer.html" %}
</body>
</html>

View File

@ -0,0 +1,92 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Docspell: {{ page.title }}</title>
<link rel="stylesheet" href="/styles.css">
</head>
<body>
<section class="hero is-info is-small">
<div class="hero-head">
{% include "navbar.html" %}
</div>
<div class="hero-body">
<h1 class="title">
{{ page.title }}
</h1>
<h2 class="subtitle">
Docspell Documentation
</h2>
</div>
</section>
<nav class="breadcrumb has-succeeds-separator" aria-label="breadcrumbs">
<ul>
{% for parent in page.ancestors %}
{% set s = get_section(path = parent, metadata_only = true) %}
<li>
<a href="{{ s.permalink }}">{{ s.title }}</a>
</li>
{% endfor %}
<li>
<a href="{{ page.permalink }}">{{ page.title }}</a>
</li>
</ul>
</nav>
<section class="section pt-2">
<div class="columns is-desktop">
<div class="column is-3">
<div class="menu">
<ul class="menu-list">
{% set last = page.ancestors | last %}
{% set s = get_section(path=last) %}
<p class="menu-label">
{{ s.title }}
</p>
{% for sub in s.pages %}
{% set sub_is_current = page.permalink == sub.permalink %}
<li>
<a href="{{ sub.permalink | safe }}"
{% if sub_is_current %}class="is-active"{% endif %}>
{{ sub.title | title }}
</a>
{% if sub_is_current %}
<ul class="menu-list">
{% for header in page.toc %}
<li>
<a href="{{ header.permalink }}">
{{ header.title }}
</a>
<ul>
{% for subhead in header.children %}
<li>
<a href="{{ subhead.permalink }}">
{{ subhead.title }}
</a>
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="column is-9">
<div class="content">
{{ page.content | safe }}
</div>
</div>
</div>
</section>
{% include "footer.html" %}
</body>
</html>

View File

@ -0,0 +1,67 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Docspell: {{ section.title }}</title>
<link rel="stylesheet" href="/styles.css">
</head>
<body>
<section class="hero is-info is-small">
<div class="hero-head">
{% include "navbar.html" %}
</div>
<div class="hero-body">
<h1 class="title">
Docspell Documentation
</h1>
<h2 class="subtitle">
{{ section.title }}
</h2>
</div>
</section>
<nav class="breadcrumb has-succeeds-separator" aria-label="breadcrumbs">
<ul>
{% for parent in section.ancestors %}
{% set s = get_section(path = parent, metadata_only = true) %}
<li>
<a href="{{ s.permalink }}">{{ s.title }}</a>
</li>
{% endfor %}
<li>
<a href="{{ section.permalink }}">{{ section.title }}</a>
</li>
</ul>
</nav>
<div class="container">
<div class="columns">
<div class="column is-3">
<aside class="menu">
<p class="menu-label">
Contents
</p>
<ul class="menu-list">
{% for page in section.pages %}
<li>
<a href="{{page.permalink | safe}}">
{{ page.title | title }}
</a>
</li>
{% endfor %}
</ul>
</aside>
</div>
<div class="column is-9">
<div class="content">
{{ section.content | safe }}
</div>
</div>
</div>
</div>
{% include "footer.html" %}
</body>
</html>

View File

@ -0,0 +1,83 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Docspell: {{ section.title }}</title>
<link rel="stylesheet" href="/styles.css">
</head>
<body>
<section class="hero is-info is-small">
<div class="hero-head">
{% include "navbar.html" %}
</div>
<div class="hero-body">
<h1 class="title">
{{ section.title }}
</h1>
<h2 class="subtitle">
Docspell Documentation
</h2>
</div>
</section>
<nav class="breadcrumb has-succeeds-separator" aria-label="breadcrumbs">
<ul>
{% for parent in section.ancestors %}
{% set s = get_section(path = parent, metadata_only = true) %}
<li>
<a href="{{ s.permalink }}">{{ s.title }}</a>
</li>
{% endfor %}
<li>
<a href="{{ section.permalink }}">{{ section.title }}</a>
</li>
</ul>
</nav>
{% if section.extra.mktoc %}
<section class="section pt-2">
<div class="columns is-desktop">
<div class="column is-3">
<div class="menu">
<ul class="menu-list">
{% for header in section.toc %}
<li>
<a href="{{ header.permalink }}">
{{ header.title }}
</a>
<ul>
{% for subhead in header.children %}
<li>
<a href="{{ subhead.permalink }}">
{{ subhead.title }}
</a>
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="column is-9">
<div class="content">
{{ section.content | safe }}
</div>
</div>
</div>
</section>
{% endif %}
{% if not section.extra.mktoc %}
<section class="section pt-2">
<div class="content">
{{ section.content | safe }}
</div>
</section>
{% endif %}
{% include "footer.html" %}
</body>
</html>

View File

@ -0,0 +1,5 @@
<figure class="image">
{% set len = page.components | length %}
{% set p = page.components | slice(end=len - 1) | join(sep='/') %}
<img src="{{ get_url(path=p ~ "/" ~ file) }}">
</figure>

View File

@ -0,0 +1,3 @@
{% set len = page.components | length %}
{% set p = page.components | slice(end=len - 1) | join(sep='/') %}
<img style="float:right;" src="{{ get_url(path=p ~ "/" ~ file) }}">

View File

@ -0,0 +1,4 @@
``` conf
{% set data = load_data(path=path) %}
{{ data | safe }}
```

View File

@ -0,0 +1 @@
{{ config.extra.version | replace(from='.', to='_') }}

View File

@ -0,0 +1 @@
{{ config.extra.version }}