mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 18:08:31 +07:00
163 lines
6.5 KiB
HTML
163 lines
6.5 KiB
HTML
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="">
|
|
<meta name="author" content="">
|
|
<link rel="shortcut icon" href="">
|
|
<link rel="canonical" href="{{ url }}">
|
|
|
|
<title>{{ project_title }}</title>
|
|
|
|
<!-- Bootstrap core CSS -->
|
|
<link href="{{ base_url }}/css/bootstrap-3.0.3.min.css" rel="stylesheet">
|
|
|
|
<!-- Custom styles for this template -->
|
|
<link href="{{ base_url }}/css/base.css" rel="stylesheet">
|
|
|
|
<link href="{{ base_url }}/css/prettify-1.0.css" rel="stylesheet">
|
|
|
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
<!--[if lt IE 9]>
|
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
|
<![endif]-->
|
|
</head>
|
|
|
|
<body onload="prettyPrint()">
|
|
<!-- Fixed navbar -->
|
|
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="{{ homepage_url }}">{{ project_name }}</a>
|
|
</div>
|
|
<div class="navbar-collapse collapse">
|
|
<!-- Navbar -->
|
|
<ul class="nav navbar-nav">
|
|
{% for name, item in nav.items() %}
|
|
{% if item is mapping %}
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ name }} <b class="caret"></b></a>
|
|
<ul class="dropdown-menu">
|
|
{% for name, url in item.items() %}
|
|
<li><a href="{{ url }}">{{ name }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
{% else %}
|
|
<li class="active"><a href="{{ item }}">{{ name }}</a></li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
<!--
|
|
<ul class="nav navbar-nav">
|
|
<li class="active"><a href="#">Home</a></li>
|
|
<li><a href="#about">About</a></li>
|
|
<li><a href="#contact">Contact</a></li>
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
|
|
<ul class="dropdown-menu">
|
|
<li><a href="#">Action</a></li>
|
|
<li><a href="#">Another action</a></li>
|
|
<li><a href="#">Something else here</a></li>
|
|
<li class="divider"></li>
|
|
<li class="dropdown-header">Nav header</li>
|
|
<li><a href="#">Separated link</a></li>
|
|
<li><a href="#">One more separated link</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
-->
|
|
<!-- End navbar -->
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li {% if not previous_url %}class="disabled"{% endif %}><a href="{% if previous_url %}{{ previous_url }}{% else %}{{ url }}{% endif %}">Previous</a></li>
|
|
<li {% if not next_url %}class="disabled"{% endif %}><a href="{% if next_url %}{{ next_url }}{% else %}{{ url }}{% endif %}">Next</a></li>
|
|
<!--<li class="active"><a href="./">Fixed top</a></li>-->
|
|
</ul>
|
|
</div><!--/.nav-collapse -->
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
|
|
<!-- Main component for a primary marketing message or call to action -->
|
|
<!--<div class="jumbotron">
|
|
<h1>Navbar example</h1>
|
|
<p>This example is a quick exercise to illustrate how the default, static and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p>
|
|
<p>To see the difference between static and fixed top navbars, just scroll.</p>
|
|
<p>
|
|
<a class="btn btn-lg btn-primary" href="../../components/#navbar" role="button">View navbar docs »</a>
|
|
</p>
|
|
</div>-->
|
|
<div class="col-md-3">
|
|
|
|
<div class="bs-sidebar hidden-print affix" role="complementary" style="">
|
|
<!-- Sidenav -->
|
|
<!--
|
|
<ul class="nav bs-sidenav">
|
|
<li>
|
|
<a href="#js-overview">Overview</a>
|
|
<ul class="nav">
|
|
<li><a href="#js-individual-compiled">Individual or compiled</a></li>
|
|
<li><a href="#js-data-attrs">Data attributes</a></li>
|
|
<li><a href="#js-programmatic-api">Programmatic API</a></li>
|
|
<li><a href="#js-noconflict">No conflict</a></li>
|
|
<li><a href="#js-events">Events</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#transitions">Transitions</a></li>
|
|
<li>
|
|
<a href="#modals">Modal</a>
|
|
<ul class="nav">
|
|
<li><a href="#modals-examples">Examples</a></li>
|
|
<li><a href="#modals-usage">Usage</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
--> {{ toc }}
|
|
<!-- End sidenav -->
|
|
</div>
|
|
</div>
|
|
<div class="col-md-9" role="main">{{ content }}</div>
|
|
</div> <!-- /container -->
|
|
|
|
|
|
<!-- Bootstrap core JavaScript
|
|
================================================== -->
|
|
<!-- Placed at the end of the document so the pages load faster -->
|
|
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
|
|
<script src="{{ base_url }}/js/bootstrap-3.0.3.min.js"></script>
|
|
<script src="{{ base_url }}/js/prettify-1.0.min.js"></script>
|
|
<script>
|
|
window.disableShift = false;
|
|
var shiftWindow = function() {
|
|
if (window.disableShift) {
|
|
window.disableShift = false;
|
|
} else {
|
|
scrollBy(0, -60);
|
|
};
|
|
};
|
|
if (location.hash) {shiftWindow();}
|
|
window.addEventListener("hashchange", shiftWindow);
|
|
$("ul.nav a" ).click(function() {
|
|
var href = this.href;
|
|
var suffix = location.hash;
|
|
var matchesCurrentHash = (href.indexOf(suffix, href.length - suffix.length) !== -1);
|
|
if (location.hash && matchesCurrentHash) {
|
|
window.disableShift = true;
|
|
location.hash='';
|
|
};
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|