From c78ed91335a00a07db5a59d4794a5f38efdc6d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Tue, 20 Nov 2018 12:15:32 +0200 Subject: [PATCH] Make "API Reference" more prominent in Docs --- static/css/docs.css | 8 +++++++ templates/front/base_docs.html | 22 +++++------------ templates/front/docs.html | 43 ++++++++++++++++++++++++---------- 3 files changed, 44 insertions(+), 29 deletions(-) diff --git a/static/css/docs.css b/static/css/docs.css index 070c8eec..f6b70a5c 100644 --- a/static/css/docs.css +++ b/static/css/docs.css @@ -26,6 +26,10 @@ font-family: monospace; } +.docs-heading { + margin-top: 40px; +} + h2.rule { border-top: 3px solid #eee; margin-top: 30px; @@ -38,6 +42,10 @@ h3.api-section { margin: 20px 0; } +h3.docs-example { + margin-top: 40px; +} + .api-path { font-family: monospace; font-weight: bold; diff --git a/templates/front/base_docs.html b/templates/front/base_docs.html index fd9bf4d0..89c49a3a 100644 --- a/templates/front/base_docs.html +++ b/templates/front/base_docs.html @@ -1,4 +1,6 @@ {% extends "base.html" %} +{% load hc_extras %} + {% block content %}
@@ -6,26 +8,14 @@