[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-docs-landing] branch master updated: Static content
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-docs-landing] branch master updated: Static content delivery. |
Date: |
Mon, 24 Sep 2018 16:22:10 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository docs-landing.
The following commit(s) were added to refs/heads/master by this push:
new acfb7a4 Static content delivery.
acfb7a4 is described below
commit acfb7a4355c53b42bf7c26fb782eee8065584ace
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Sep 24 16:21:20 2018 +0200
Static content delivery.
Introducing custom Jinja2 function to fetch static
files from their location.
---
index.html.j2 | 34 +++++++++++++++++-----------------
template.py | 6 ++++++
2 files changed, 23 insertions(+), 17 deletions(-)
diff --git a/index.html.j2 b/index.html.j2
index df65639..0e09f33 100644
--- a/index.html.j2
+++ b/index.html.j2
@@ -3,8 +3,8 @@
<head>
<meta charset="UTF-8">
<title>GNU Taler documentation</title>
- <link rel=stylesheet href="../pure.css">
- <link rel=stylesheet href="../docstyle.css">
+ <link rel=stylesheet href={{ static_content("pure.css") }}>
+ <link rel=stylesheet href={{ static_content("docstyle.css") }}>
</head>
<body>
<h1>GNU Taler documentation</h1>
@@ -15,7 +15,7 @@
<div class="pure-g linkrow">
<div class="pure-u-1-3">
<a href="https://docs.taler.net/merchant/backend/html/manual.html">
- <img src="icon-backend.svg" height=60>
+ <img src={{ static_content("icon-backend.svg") }} height=60>
<h3>Merchant Backend Administration</h3>
</a>
Tutorial and manual for operating a merchant.
@@ -24,7 +24,7 @@
<div class="pure-u-1-3">
<a
href="https://docs.taler.net/merchant/backend/html/merchant-api-curl.html">
- <img src="icon-market.svg" height=60>
+ <img src={{ static_content("icon-market.svg") }} height=60>
<h3>Merchant API Tutorial (Command Line)</h3>
</a>
Tutorial for processing Taler payments using the merchant backend's API,
with command line (and cURL) examples.
@@ -33,7 +33,7 @@
<div class="pure-u-1-3">
<a
href="https://docs.taler.net/merchant/backend/html/merchant-api-python.html">
- <img src="icon-market.svg" height=60>
+ <img src={{ static_content("icon-market.svg") }} height=60>
<h3>Merchant API Tutorial (Python)</h3>
</a>
Tutorial for processing Taler payments using the merchant backend's API,
with Python 3 examples.
@@ -44,7 +44,7 @@
<div class="pure-g linkrow">
<div class="pure-u-1-3">
<a href="https://docs.taler.net/exchange/html/taler-exchange.html">
- <img src="icon-exchange.svg" height=60>
+ <img src={{ static_content("icon-exchange.svg") }} height=60>
<h3>Exchange</h3>
</a>
Operator's manual for the GNU Taler exchange.
@@ -53,7 +53,7 @@
<div class="pure-u-1-3">
<a href="https://docs.taler.net/bank/html/taler-bank.html">
- <img src="icon-bank.svg" height=60>
+ <img src={{ static_content("icon-bank.svg") }} height=60>
<h3>Bank Integration</h3>
</a>
Manual for tightly integrating Taler with banking applications.
@@ -62,7 +62,7 @@
<div class="pure-u-1-3">
<a href="https://docs.taler.net/backoffice/html/manual.html">
- <img src="icon-backoffice.svg" height=60>
+ <img src={{ static_content("icon-backoffice.svg") }} height=60>
<h3>Back office</h3>
</a>
Manual to run the back-office Web application.
@@ -76,14 +76,14 @@
<div class="pure-g linkrow">
<div class="pure-u-1-2">
<a href="https://docs.taler.net/api/index.html">
- <img src="icon-api.svg" height=60>
+ <img src={{ static_content("icon-api.svg") }} height=60>
<h3>HTTP API</h3>
</a>
Reference for the HTTP-based API for Taler components.
</div>
<div class="pure-u-1-2">
<a href="https://docs.taler.net/onboarding/html/onboarding.html">
- <img src="icon-developers.svg" height=60>
+ <img src={{ static_content("icon-developers.svg") }} height=60>
<h3>Onboarding</h3>
</a>
Description of our taler.net setup and how to contribute.
@@ -95,7 +95,7 @@
<div class="pure-g linkrow">
<div class="pure-u-1-3">
<a href="https://lists.gnu.org/mailman/listinfo/taler">
- <img src="icon-share.svg" height=60>
+ <img src={{ static_content("icon-share.svg") }} height=60>
<h3>Mailing List</h3>
</a>
The official GNU Taler mailing list.
@@ -103,7 +103,7 @@
<div class="pure-u-1-3">
<a href="https://webchat.freenode.net/?channels=taler">
- <img src="icon-share.svg" height=60>
+ <img src={{ static_content("icon-share.svg") }} height=60>
<h3>IRC</h3>
</a>
Our IRC channel is #taler on freenode.
@@ -111,7 +111,7 @@
<div class="pure-u-1-3">
<a href="https://gnunet.org/bugs/">
- <img src="icon-share.svg" height=60>
+ <img src={{ static_content("icon-share.svg") }} height=60>
<h3>Bug Tracker</h3>
</a>
Our bug tracker for bugs and feature request.
@@ -123,7 +123,7 @@
<div class="pure-g linkrow">
<div class="pure-u-1-3">
<a href="https://docs.taler.net/code/exchange/index.html">
- <img src="icon-code.svg" height=60>
+ <img src={{ static_content("icon-code.svg") }} height=60>
<h3>Code (Exchange)</h3>
</a>
Documented source code (with Doxygen) for the exchange.
@@ -131,7 +131,7 @@
<div class="pure-u-1-3">
<a href="https://docs.taler.net/code/merchant/index.html">
- <img src="icon-code.svg" height=60>
+ <img src={{ static_content("icon-code.svg") }} height=60>
<h3>Code (Merchant backend)</h3>
</a>
Documented source code (with Doxygen) for the merchant.
@@ -139,7 +139,7 @@
<div class="pure-u-1-3">
<a>
- <img src="icon-code.svg" height=60>
+ <img src={{ static_content("icon-code.svg") }} height=60>
<h3>Code (Wallet)</h3>
</a>
TBD: Documented source code (with TypeDoc) for the wallet.
@@ -149,7 +149,7 @@
<div class="pure-g linkrow">
<div class="pure-u-1-3">
<a href="https://git.taler.net">
- <img src="icon-code.svg" height=60>
+ <img src={{ static_content("icon-code.svg") }} height=60>
<h3>Git repositories</h3>
</a>
Git repositories for all of GNU Taler.
diff --git a/template.py b/template.py
index cd122d3..457c111 100755
--- a/template.py
+++ b/template.py
@@ -40,6 +40,11 @@ for in_file in glob.glob("*.j2"):
"""
return "../" + other_locale + "/" + in_file.rstrip(".j2")
+ # Base path for SVGs and CSSs.
+ def static_content(filename):
+ # For now, static content is left in top-level directory.
+ return "../" + filename;
+
def url_localized(filename):
return "../" + locale + "/" + filename
@@ -65,6 +70,7 @@ for in_file in glob.glob("*.j2"):
url=url,
self_localized=self_localized,
url_localized=url_localized,
+ static_content=static_content,
filename=name + "." + ext)
ctx.update(default_ctx)
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-docs-landing] branch master updated: Static content delivery.,
gnunet <=