Skip to content

Commit 81148b4

Browse files
committed
style for collections view
1 parent fd0801c commit 81148b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sparqlunicorn_ontdoc/export/api/ogcapifeaturesexporter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ def generateOGCAPIFeaturesPages(outpath,deploypath, featurecollectionspaths, pre
125125
"title": "this document as JSON"},
126126
{"href": outpath + "collections/index.html", "rel": "self", "type": "text/html",
127127
"title": "this document as HTML"}]}
128-
collectionshtml = "<html><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /><link rel=\"stylesheet\" href=\"https://cdn.datatables.net/2.2.1/css/dataTables.dataTables.css\" /><script src=\"https://code.jquery.com/jquery-3.7.1.js\"></script><script src=\"https://cdn.datatables.net/2.2.1/js/dataTables.js\"></script></head><body><header><h1>Collections of " + str(
129-
deploypath) + "</h1></head>{{collectiontable}}<footer><a href=\"index.json\">This page as JSON</a></footer><script>$(document).ready( function () {$('#collectiontable').DataTable();} );</script></body></html>"
128+
collectionshtml = "<html><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /><link rel=\"stylesheet\" href=\"../../style.css\"/><link rel=\"stylesheet\" href=\"https://cdn.datatables.net/2.2.1/css/dataTables.dataTables.css\" /><script src=\"https://code.jquery.com/jquery-3.7.1.js\"></script><script src=\"https://cdn.datatables.net/2.2.1/js/dataTables.js\"></script></head><body><header id=\"header\"><h1 id=\"title\">Collections of " + str(
129+
deploypath) + "</h1></header>{{collectiontable}}<footer id=\"footer\"><a href=\"index.json\">This page as JSON</a></footer><script>$(document).ready( function () {$('#collectiontable').DataTable();} );</script></body></html>"
130130
collectiontable = "<table id=\"collectiontable\"><thead><th>Collection</th><th>#Features</th><th>Links</th></thead><tbody>"
131131
apijson["paths"]["/collections"] = {"get": {"tags": ["Collections"], "summary": "describes collections",
132132
"description": "Describes all collections provided by this service",

0 commit comments

Comments
 (0)