From 3466081354aaaa76dc3e1be87f0643ce858fb484 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Nov 21 2015 14:10:10 +0000 Subject: Make the links use the configured prefix Signed-off-by: Patrick Uiterwijk --- diff --git a/mdapi/__init__.py b/mdapi/__init__.py index 5007f13..01e1a99 100644 --- a/mdapi/__init__.py +++ b/mdapi/__init__.py @@ -54,6 +54,7 @@ indexfile = os.path.join( INDEX = '' with open(indexfile) as stream: INDEX = stream.read() + INDEX = INDEX.replace('$PREFIX', config.get('PREFIX', '')) def _get_pkg(branch, name): diff --git a/mdapi/index.html b/mdapi/index.html index b1cf33a..0616efd 100644 --- a/mdapi/index.html +++ b/mdapi/index.html @@ -68,7 +68,7 @@ at: /branches - /branches + /branches Retrieve information about a package ------------------------------------ @@ -80,7 +80,7 @@ by querying: So for example, for the kernel in rawhide: - /rawhide/pkg/kernel + /rawhide/pkg/kernel Retrieve the list of files in a package @@ -93,7 +93,7 @@ specific branch by querying: So for example, for the kernel-core in rawhide: - /rawhide/files/kernel-core + /rawhide/files/kernel-core Retrieve the changelog of a package @@ -106,7 +106,7 @@ by querying: So for example, for the kernel in rawhide: - /rawhide/changelog/kernel + /rawhide/changelog/kernel