gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-docs-landing] branch master updated: docs site not h


From: gnunet
Subject: [GNUnet-SVN] [taler-docs-landing] branch master updated: docs site not hardcoded anymore
Date: Tue, 21 May 2019 16:10:33 +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 b821989  docs site not hardcoded anymore
b821989 is described below

commit b82198902bb815bf41ef9c0500d37fe0e75170d7
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue May 21 16:10:03 2019 +0200

    docs site not hardcoded anymore
---
 index.html.j2 | 34 +++++++++++++++++-----------------
 template.py   |  3 +++
 2 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/index.html.j2 b/index.html.j2
index 8120b6f..efcdedc 100644
--- a/index.html.j2
+++ b/index.html.j2
@@ -15,69 +15,69 @@
 
   <div class="pure-g linkrow">
     <div class="pure-u-1-3">
-    <a href="https://docs.taler.net/merchant/backend/html/manual.html";>
+    <a href="https://{{ docsite }}/merchant/backend/html/manual.html">
     <img src={{ static_content("icon-backend.svg") }} height=60>
     <h3>Merchant Backend Administration</h3>
     </a>
     {{ _("Tutorial and manual for operating a merchant") }}.
-    {{ _("Also available as") }} <a 
href="https://docs.taler.net/merchant/backend/pdf/manual.pdf";>PDF</a>.
+    {{ _("Also available as") }} <a href="https://{{ docsite 
}}/merchant/backend/pdf/manual.pdf">PDF</a>.
     </div>
 
     <div class="pure-u-1-3">
-    <a 
href="https://docs.taler.net/merchant/backend/html/merchant-api-curl.html";>
+    <a href="https://{{ docsite 
}}/merchant/backend/html/merchant-api-curl.html">
     <img src={{ static_content("icon-market.svg") }} height=60>
     <h3>{{ _("Merchant API Tutorial (Command Line)") }}</h3>
     </a>
     {% trans %}
     Tutorial for processing Taler payments using the merchant backend's API, 
with command line (and cURL) examples.
     Also available as
-    {% endtrans %} <a 
href="https://docs.taler.net/merchant/backend/pdf/merchant-api-curl.pdf";>PDF</a>.
+    {% endtrans %} <a href="https://{{ docsite 
}}/merchant/backend/pdf/merchant-api-curl.pdf">PDF</a>.
     </div>
 
     <div class="pure-u-1-3">
-    <a 
href="https://docs.taler.net/merchant/backend/html/merchant-api-python.html";>
+    <a href="https://{{ docsite 
}}/merchant/backend/html/merchant-api-python.html">
     <img src={{ static_content("icon-market.svg") }} height=60>
     <h3>Merchant API Tutorial (Python)</h3>
     </a>
     {% trans %}
     Tutorial for processing Taler payments using the merchant backend's API, 
with Python 3 examples.
     Also available as 
-    {% endtrans %} <a 
href="https://docs.taler.net/merchant/backend/pdf/merchant-api-python.pdf";>PDF</a>.
+    {% endtrans %} <a href="https://{{ docsite 
}}/merchant/backend/pdf/merchant-api-python.pdf">PDF</a>.
     </div>
   </div>
 
   <div class="pure-g linkrow">
     <div class="pure-u-1-3">
-    <a href="https://docs.taler.net/exchange/html/taler-exchange.html";>
+    <a href="https://{{ docsite }}/exchange/html/taler-exchange.html">
     <img src={{ static_content("icon-exchange.svg") }} height=60>
     <h3>Exchange</h3>
     </a>
     {% trans %}
     Operator's manual for the GNU Taler exchange.
     Also available as
-    {% endtrans %} <a 
href="https://docs.taler.net/exchange/pdf/taler-exchange.pdf";>PDF</a>.
+    {% endtrans %} <a href="https://{{ docsite 
}}/exchange/pdf/taler-exchange.pdf">PDF</a>.
     </div>
 
     <div class="pure-u-1-3">
-    <a href="https://docs.taler.net/bank/html/taler-bank.html";>
+    <a href="https://{{ docsite }}/bank/html/taler-bank.html">
     <img src={{ static_content("icon-bank.svg") }} height=60>
     <h3>{{ _("Bank Integration") }}</h3>
     </a>
     {% trans %}
     Manual for tightly integrating Taler with banking applications.
     Also available as
-    {% endtrans %} <a 
href="https://docs.taler.net/bank/pdf/taler-bank.pdf";>PDF</a>.
+    {% endtrans %} <a href="https://{{ docsite 
}}/bank/pdf/taler-bank.pdf">PDF</a>.
     </div>
 
     <div class="pure-u-1-3">
-    <a href="https://docs.taler.net/backoffice/html/manual.html";>
+    <a href="https://{{ docsite }}/backoffice/html/manual.html">
     <img src={{ static_content("icon-backoffice.svg") }} height=60>
     <h3>{{ _("Back office") }}</h3>
     </a>
     {% trans %}
     Manual to run the back-office Web application.
     Also available as
-    {% endtrans %} <a 
href="https://docs.taler.net/backoffice/pdf/manual.pdf";>PDF</a>.
+    {% endtrans %} <a href="https://{{ docsite 
}}/backoffice/pdf/manual.pdf">PDF</a>.
     </div>
 
   </div>
@@ -86,21 +86,21 @@
 
   <div class="pure-g linkrow">
     <div class="pure-u-1-2">
-    <a href="https://docs.taler.net/api/index.html";>
+    <a href="https://{{ docsite }}/api/index.html">
     <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";>
+    <a href="https://{{ docsite }}/onboarding/html/onboarding.html">
     <img src={{ static_content("icon-developers.svg") }} height=60>
     <h3>{{ _("Onboarding") }}</h3>
     </a>
     {% trans %}
     Description of our taler.net setup and how to contribute.
     Also available as
-    <a href="https://docs.taler.net/onboarding/pdf/onboarding.pdf";>PDF</a>.
+    <a href="https://{{ docsite }}/onboarding/pdf/onboarding.pdf">PDF</a>.
     {% endtrans %} 
     </div>
   </div>
@@ -136,7 +136,7 @@
 
   <div class="pure-g linkrow">
     <div class="pure-u-1-3">
-    <a href="https://docs.taler.net/code/exchange/index.html";>
+    <a href="https://{{ docsite }}/code/exchange/index.html">
     <img src={{ static_content("icon-code.svg") }} height=60>
     <h3>{{ _("Code (Exchange)") }}</h3>
     </a>
@@ -144,7 +144,7 @@
     </div>
 
     <div class="pure-u-1-3">
-    <a href="https://docs.taler.net/code/merchant/index.html";>
+    <a href="https://{{ docsite }}/code/merchant/index.html">
     <img src={{ static_content("icon-code.svg") }} height=60>
     <h3>{{ _("Code (Merchant backend)") }}</h3>
     </a>
diff --git a/template.py b/template.py
index a230dfb..482b09d 100755
--- a/template.py
+++ b/template.py
@@ -19,6 +19,8 @@ import os
 import os.path
 import i18nfix
 
+DOCSITE = "docs.wild.gv.taler.net"
+
 env = 
jinja2.Environment(loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
         extensions=["jinja2.ext.i18n"],
         lstrip_blocks=True,
@@ -73,6 +75,7 @@ for in_file in glob.glob("*.j2"):
             print("warning: locale {} not found".format(locale))
         
         ctx = dict(
+                docsite=DOCSITE,
                 lang=locale,
                 lang_full=langs[locale],
                 url=url,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]