docs: wip
assets: move fonts to resources/
This commit is contained in:
parent
cd2e77272c
commit
ef3559ffef
64 changed files with 1573 additions and 1688 deletions
|
|
@ -1,8 +0,0 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h2>404</h2>
|
||||
<p>Page not found.</p>
|
||||
|
||||
{% endblock %}
|
||||
|
|
@ -1,127 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="description" content="{{ config.site_description }}" />
|
||||
<link rel="shortcut icon" href="{{ config.theme.favicon|url }}">
|
||||
|
||||
<title>{% if page.title and not page.is_homepage %}{{ page.title }} - {% endif %}{{ config.site_name }}</title>
|
||||
|
||||
<link rel="stylesheet" href="{{ "/fonts/roboto.css"|url }}">
|
||||
<link rel="stylesheet" href="{{ "/styles.css"|url }}">
|
||||
|
||||
{% block extrahead %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<div class="d-header">
|
||||
<div class="wrap">
|
||||
<div class="contents">
|
||||
<div class="title">
|
||||
<a id="logo" href="{{ "/"|url }}"><img src="{{ "/img/logo_discourse.png"|url }}"/></a>
|
||||
</div>
|
||||
<div class="header-buttons-panel">
|
||||
<button id="mobile-toggle" class="show-md btn btn-primary btn-action btn-lg"><i class="icon icon-menu"></i></button>
|
||||
<span id="mobile-menu" class="hide-md header-buttons">
|
||||
<div role="search">
|
||||
<form action="{{ "search.html"|url }}" method="get">
|
||||
<input id="mkdocs-search-query" type="search" name="q" placeholder="Search" autocomplete="off"/>
|
||||
</form>
|
||||
</div>
|
||||
<a href="{{ "/"|url}}" class="{% if page.is_homepage %}active{% endif %}">Home</a>
|
||||
<a href="{{ "/docs"|url }}" class="{% if 'docs' in page.url %}active{% endif %}">Docs</a>
|
||||
<a href="{{ "/support"|url }}" class="{% if 'support' in page.url %}active{% endif %}">Support</a>
|
||||
<a href="https://github.com/jean-emmanuel/open-stage-control" target="_blank">Bug Tracker</a>
|
||||
<a href="https://openstagecontrol.discourse.group">Community</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if page.is_homepage %}
|
||||
<div id="jumbotron" class="bg-secondary">
|
||||
<!-- <div class="bg" style="background-image:url({{base_url}}/img/ardour-osc.png)"></div> -->
|
||||
<div class="wrap">
|
||||
<h1 class="text-dark">{{ config.site_name }}</h1>
|
||||
<h2 class="text-dark">{{ config.site_description }}</h2>
|
||||
<br/>
|
||||
<ul class="">
|
||||
{% for link in config.extra.links %}
|
||||
<li><a class="btn {% if link.primary %}btn-primary{% endif %}" href="{{link.url}}" {% if link.newtab %}target="_blank"{% endif %}>{{link.title}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div id="main" class="wrap">
|
||||
{% if 'docs' in page.url %}
|
||||
{% set ns = namespace(navigation=[]) %}
|
||||
{% for nav_item in nav %}
|
||||
{% if nav_item.children %}
|
||||
{% set ns.navigation = nav_item %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<div class="col-left">
|
||||
<ul class="nav">
|
||||
{% for nav_item in ns.navigation.children %}
|
||||
{% if nav_item.active or nav_item.url == 'docs/getting-started/' and page.url == 'docs/' %}
|
||||
{% set active = True %}
|
||||
{% endif %}
|
||||
<li class="nav-item {% if active%}active{% endif %}">
|
||||
<a href="{{ nav_item.url|url }}">{{ nav_item.title }}</a>
|
||||
{% if active %}
|
||||
{% set toc_ = page.toc %}
|
||||
|
||||
<!--
|
||||
(@MaterialMkdocs)
|
||||
Hack: check whether the content contains a h1 headline. If it does, the
|
||||
top-level anchor must be skipped, since it would be redundant to the link
|
||||
to the current page that is located just above the anchor. Therefore we
|
||||
directly continue with the children of the anchor.
|
||||
-->
|
||||
{% if toc_ | first is defined and "\x3ch1 id=" in page.content %}
|
||||
{% set toc_ = (toc_ | first).children %}
|
||||
{% endif %}
|
||||
{% if toc_ | first is defined %}
|
||||
<ul class="nav">
|
||||
{% for toc_item in toc_ %}
|
||||
<li><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
|
||||
{% if toc_item.children | first is defined %}
|
||||
<ul class="nav">
|
||||
{% for toc_item in toc_item.children %}
|
||||
<li><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<div class="col-right">
|
||||
{% if page.is_homepage %}
|
||||
{% include 'home.html' %}
|
||||
{% endif %}
|
||||
|
||||
{% block content %}
|
||||
{{ page.content }}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>var base_url = "{{ base_url|url }}" </script>
|
||||
<script src="{{ "/scripts.js"|url }}"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js"></script>
|
||||
<script src="{{ "search/main.js"|url }}" defer></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -1,16 +0,0 @@
|
|||
@font-face {
|
||||
font-family: Roboto;
|
||||
src: url('Roboto-Regular-webfont.woff') format('woff');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: Roboto;
|
||||
src: url('Roboto-Light-webfont.woff') format('woff');
|
||||
font-weight: 100;
|
||||
font-style: normal;
|
||||
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
<div id="jumbotron-showcase">
|
||||
<img src="{{ config.extra.screenshot|url }}" id="jumbotron-img"/>
|
||||
</div>
|
||||
|
|
@ -1 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block fonts %}
|
||||
<style>body,input{font-family:"Roboto",-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono",SFMono-Regular,Consolas,Menlo,monospace}</style>
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -1,43 +0,0 @@
|
|||
function getOffset(element) {
|
||||
var offset = 0
|
||||
if (element) {
|
||||
do {
|
||||
if (!isNaN(element.offsetTop)) {
|
||||
offset += element.offsetTop - element.scrollTop
|
||||
}
|
||||
} while ((element = element.offsetParent))
|
||||
}
|
||||
|
||||
return offset
|
||||
}
|
||||
|
||||
var navHeight = 80
|
||||
function offsetScroll(){
|
||||
if (document.location.hash) {
|
||||
var el = document.getElementById(document.location.hash.substring(1))
|
||||
if (el) document.body.scrollTop = document.documentElement.scrollTop = getOffset(el) - navHeight
|
||||
}
|
||||
}
|
||||
window.addEventListener('hashchange', offsetScroll)
|
||||
setTimeout(offsetScroll, 250)
|
||||
|
||||
|
||||
var mobileToggle = document.getElementById('mobile-toggle'),
|
||||
mobileMenu = document.getElementById('mobile-menu'),
|
||||
show = false
|
||||
|
||||
function toggleMenu(s){
|
||||
show = s === undefined ? !show : s
|
||||
mobileToggle.classList.toggle('show', show)
|
||||
mobileMenu.classList.toggle('show', show)
|
||||
}
|
||||
|
||||
mobileToggle.addEventListener('click', function(){
|
||||
toggleMenu()
|
||||
})
|
||||
|
||||
document.addEventListener('click', function(e){
|
||||
if (!mobileToggle.parentNode.contains(e.target)) {
|
||||
toggleMenu(false)
|
||||
}
|
||||
})
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block extrahead %}
|
||||
<script>var base_url = '{{ "/"|url }}';</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h2 id="search">Search Results</h2>
|
||||
|
||||
<div id="mkdocs-search-results">
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue