From 76b32bea92b034491ae8147a0727ae69c12e17eb Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 22 Mar 2019 15:22:21 +0100 Subject: [PATCH] Add logo and custom CSS for the API docs --- docs/source/_static/api.css | 48 +++++++++++++++++ docs/source/_templates/jsdoc_layout.tmpl | 65 ++++++++++++++++++++++++ docs/source/conf.json | 7 ++- 3 files changed, 119 insertions(+), 1 deletion(-) create mode 100644 docs/source/_static/api.css create mode 100644 docs/source/_templates/jsdoc_layout.tmpl diff --git a/docs/source/_static/api.css b/docs/source/_static/api.css new file mode 100644 index 000000000..a674fcd37 --- /dev/null +++ b/docs/source/_static/api.css @@ -0,0 +1,48 @@ +body { + font-size: 1.2rem; +} + +.brand-heading { + display: flex; +} + +.brand-heading__text { + font-size: 6rem; + margin-left: 1rem; + margin-top: -1rem; +} + +.subdued { + color: darkgray; +} + +.byline { + font-size: 30%; + margin-top: 0; +} + +h2 { + font-size: 45px; +} + +h3 { + font-size: 35px; +} + +h4 { + font-size: 30px; + margin-top: 40px; +} + +p { + font-size: 1.3rem; +} + +.details { + margin-bottom: 20px; +} + +.prettyprint code { + padding: 8px 12px; + font-family: courier; +} diff --git a/docs/source/_templates/jsdoc_layout.tmpl b/docs/source/_templates/jsdoc_layout.tmpl new file mode 100644 index 000000000..adbdedf2c --- /dev/null +++ b/docs/source/_templates/jsdoc_layout.tmpl @@ -0,0 +1,65 @@ + + + + + JSDoc: <?js= title ?> + + + + + + + + + + + +
+

+ + Converse + + + + + + + + + + + converse.js + + +

+ +

+ + +
+ + + +
+ + + + + + + diff --git a/docs/source/conf.json b/docs/source/conf.json index b828e006f..2dc89dd9c 100644 --- a/docs/source/conf.json +++ b/docs/source/conf.json @@ -1,3 +1,8 @@ { - "plugins": ["plugins/markdown"] + "plugins": ["plugins/markdown"], + "templates": { + "default": { + "layoutFile": "_templates/jsdoc_layout.tmpl" + } + } }