DOCS: updated template

master
Martin Gerhardy 2020-09-17 19:05:05 +02:00
parent e30542034a
commit 8ce099d3b5
3 changed files with 28 additions and 1 deletions

BIN
docs/img/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

23
docs/theme/main.html vendored Normal file
View File

@ -0,0 +1,23 @@
{% extends "base.html" %}
{% block extrahead %}
{% set title = config.site_name %}
{% if page and page.meta and page.meta.title %}
{% set title = title ~ " - " ~ page.meta.title %}
{% elif page and page.title and not page.is_homepage %}
{% set title = title ~ " - " ~ page.title | striptags %}
{% endif %}
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ title }}" />
<meta property="og:description" content="{{ config.site_description }}" />
<meta property="og:url" content="{{ page.canonical_url }}" />
<meta property="og:image" content="https://raw.githubusercontent.com/wiki/mgerhardy/engine/images/dwarf-in-editor.jpeg" />
<meta property="og:image:type" content="image/jpg" />
<meta name="twitter:card" content="Voxel editor for windows, linux and macosx" />
<meta name="twitter:site" content="mgerhardy" />
<meta name="twitter:creator" content="mgerhardy" />
<meta name="twitter:title" content="{{ title }}" />
<meta name="twitter:description" content="{{ config.site_description }}" />
<meta name="twitter:image" content="https://raw.githubusercontent.com/wiki/mgerhardy/engine/images/dwarf-in-editor.jpeg" />
{% endblock %}

View File

@ -1,9 +1,13 @@
site_name: vengi - voxel engine and its tools
site_author: Martin Gerhardy
site_description: Voxel editor for linux windows and macosx
docs_dir: docs
site_dir: build/docs
repo_url: https://github.com/mgerhardy/engine
repo_name: GitHub
theme:
custom_dir: docs/theme
name: readthedocs
highlightjs: true
hljs_languages: [cpp]