From 85af2ef5d5bb39309c40f09d93947c178ec82136 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jan 26 2016 14:02:32 +0000 Subject: Rework the API documentation page to port it to the new UI --- diff --git a/pagure/static/pagure.css b/pagure/static/pagure.css index 36eb6c2..73d9e5d 100644 --- a/pagure/static/pagure.css +++ b/pagure/static/pagure.css @@ -384,3 +384,11 @@ color:#aaa; background:#eee; border:1px solid #ccc; } + +.api code { + padding: 0rem 0.4rem; +} + +.api h3 { + padding-left: 1em; +} diff --git a/pagure/templates/api.html b/pagure/templates/api.html index 629e5c2..f7a8206 100644 --- a/pagure/templates/api.html +++ b/pagure/templates/api.html @@ -5,117 +5,134 @@ {% set tag = "index" %} {% block content %} - -

Pagure API Reference

-

This documentation describes the Pagure API v0.

- -{{ api_doc |replace('h1', 'h2') }} - -

List of the API endpoints:

- -

- Projects - - - -

-
-{% for html in projects %} -{{ html | InsertDiv | safe }} -{% endfor %} -
- -{% if issues %} -

- Issues - - - -

-
-{% for html in issues %} -{{ html | InsertDiv | safe }} -{% endfor %} -
-{% endif %} - -

- Pull-requests - - - -

-
-{% for html in requests %} -{{ html | InsertDiv | safe }} -{% endfor %} +
+
+
+

+ +   Pagure API Reference +

+
+ This documentation describes the Pagure API v{{ version[0] }} + revision {{ version[2] }}. +
+
+
+
+
+
+ + {{ api_doc |replace('h1', 'h2') }} + +

List of the API endpoints:

+ +

+ Projects + + + +

+
+ {% for html in projects %} + {{ html | InsertDiv | safe }} + {% endfor %} +
+ + {% if issues %} +

+ Issues + + + +

+
+ {% for html in issues %} + {{ html | InsertDiv | safe }} + {% endfor %} +
+ {% endif %} + +

+ Pull-requests + + + +

+
+ {% for html in requests %} + {{ html | InsertDiv | safe }} + {% endfor %} +
+ +

+ Users + + + +

+
+ {% for html in users %} + {{ html | InsertDiv | safe }} + {% endfor %} +
+ +

+ Extras + + + +

+ +
+ {% for html in extras %} + {{ html | InsertDiv |safe }} + {% endfor %} +
+ +
+
+
- -

- Users - - - -

-
-{% for html in users %} -{{ html | InsertDiv | safe }} -{% endfor %} -
- -

- Extras - - - -

- -
-{% for html in extras %} -{{ html | InsertDiv |safe }} -{% endfor %} -
- {% endblock %} {% block jscripts %} {{ super() }} {% endblock %}