2014-04-16 19:24:35 +00:00
|
|
|
{% extends "!layout.html" %}
|
|
|
|
|
2015-05-19 15:13:13 +00:00
|
|
|
{% block extrahead %}
|
2015-05-23 18:38:36 +00:00
|
|
|
<meta name="description" content="Small, safe and fast formatting library for C++">
|
|
|
|
<meta name="keywords" content="C++, formatting, printf, string, library">
|
|
|
|
<meta name="author" content="Victor Zverovich">
|
2016-04-24 17:39:33 +00:00
|
|
|
<link rel="stylesheet" href="_static/fmt.css">
|
2015-05-23 18:42:57 +00:00
|
|
|
{# Google Analytics #}
|
|
|
|
<script>
|
|
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
|
|
ga('create', 'UA-20116650-4', 'cppformat.github.io');
|
|
|
|
ga('send', 'pageview');
|
|
|
|
</script>
|
2015-05-19 15:13:13 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
2015-05-21 16:03:22 +00:00
|
|
|
{%- macro searchform(classes, button) %}
|
|
|
|
<form class="{{classes}}" role="search" action="{{ pathto('search') }}" method="get">
|
|
|
|
<div class="form-group">
|
2015-05-23 20:41:21 +00:00
|
|
|
<input type="text" name="q" class="form-control" {{ 'placeholder="Search"' if not button }} >
|
2015-05-21 16:03:22 +00:00
|
|
|
</div>
|
|
|
|
<input type="hidden" name="check_keywords" value="yes" />
|
|
|
|
<input type="hidden" name="area" value="default" />
|
|
|
|
{% if button %}
|
|
|
|
<input type="submit" class="btn btn-default" value="search">
|
|
|
|
{% endif %}
|
|
|
|
</form>
|
|
|
|
{%- endmacro %}
|
|
|
|
|
2015-03-09 14:37:27 +00:00
|
|
|
{% block header %}
|
2015-05-19 15:13:13 +00:00
|
|
|
<nav class="navbar navbar-inverse">
|
2015-05-23 19:28:41 +00:00
|
|
|
<div class="tb-container">
|
2015-05-19 15:13:13 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="navbar-content">
|
2015-05-23 15:31:29 +00:00
|
|
|
{# Brand and toggle get grouped for better mobile display #}
|
2015-05-19 15:13:13 +00:00
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle collapsed" 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>
|
2016-04-27 15:35:59 +00:00
|
|
|
<a class="navbar-brand" href="index.html">{fmt}</a>
|
2015-05-19 15:13:13 +00:00
|
|
|
</div>
|
|
|
|
|
2015-05-23 15:31:29 +00:00
|
|
|
{# Collect the nav links, forms, and other content for toggling #}
|
2015-05-19 15:13:13 +00:00
|
|
|
<div class="collapse navbar-collapse">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<li class="dropdown">
|
2015-05-23 15:31:29 +00:00
|
|
|
{# TODO: update versions automatically #}
|
2015-05-19 15:13:13 +00:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
|
2015-11-23 16:10:02 +00:00
|
|
|
aria-expanded="false">{{ version }} <span class="caret"></span></a>
|
2015-05-19 15:13:13 +00:00
|
|
|
<ul class="dropdown-menu" role="menu">
|
2016-04-28 13:54:37 +00:00
|
|
|
<li><a href="http://fmtlib.net/2.0.0/">2.0.0</a></li>
|
|
|
|
<li><a href="http://fmtlib.net/1.1.0/">1.1.0</a></li>
|
|
|
|
<li><a href="http://fmtlib.net/1.0.0/">1.0.0</a></li>
|
2015-05-19 15:13:13 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{% for name in ['Contents', 'Usage', 'API', 'Syntax'] %}
|
|
|
|
{% if pagename == name.lower() %}
|
|
|
|
<li class="active"><a href="{{name.lower()}}.html">{{name}} <span class="sr-only">(current)</span></a></li>
|
|
|
|
{%else%}
|
|
|
|
<li><a href="{{name.lower()}}.html">{{name}}</a></li>
|
|
|
|
{%endif%}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2015-05-21 01:22:35 +00:00
|
|
|
{% if pagename != 'search' %}
|
2015-05-21 16:03:22 +00:00
|
|
|
{{ searchform('navbar-form navbar-right', False) }}
|
2015-05-21 01:22:35 +00:00
|
|
|
{%endif%}
|
2015-05-23 15:31:29 +00:00
|
|
|
</div> {# /.navbar-collapse #}
|
|
|
|
</div> {# /.col-md-offset-2 #}
|
|
|
|
</div> {# /.row #}
|
2015-05-23 19:48:09 +00:00
|
|
|
</div> {# /.tb-container #}
|
2015-05-19 15:13:13 +00:00
|
|
|
</nav>
|
2015-03-09 14:37:27 +00:00
|
|
|
{% if pagename == "index" %}
|
2015-05-19 15:13:13 +00:00
|
|
|
<div class="jumbotron">
|
2015-05-23 19:48:09 +00:00
|
|
|
<div class="tb-container">
|
2016-04-27 15:35:59 +00:00
|
|
|
<h1>{fmt}</h1>
|
2015-05-19 15:13:13 +00:00
|
|
|
<p class="lead">Small, safe and fast formatting library for C++</p>
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
<a class="btn btn-success"
|
2016-04-27 15:35:59 +00:00
|
|
|
href="https://github.com/fmtlib/fmt/releases/download/2.0.0/cppformat-2.0.0.zip">
|
2015-05-19 15:13:13 +00:00
|
|
|
<span class="glyphicon glyphicon-download"></span> Download
|
|
|
|
</a>
|
|
|
|
<button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
|
|
|
<ul class="dropdown-menu">
|
2016-04-27 15:35:59 +00:00
|
|
|
<li><a href="https://github.com/fmtlib/fmt/releases/download/2.0.0/cppformat-2.0.0.zip">Version 2.0.0</a></li>
|
|
|
|
<li><a href="https://github.com/fmtlib/fmt/releases/download/1.1.0/cppformat-1.1.0.zip">Version 1.1.0</a></li>
|
|
|
|
<li><a href="https://github.com/fmtlib/fmt/releases/download/1.0.0/cppformat-1.0.0.zip">Version 1.0.0</a></li>
|
2015-05-19 15:13:13 +00:00
|
|
|
</ul>
|
2015-03-09 14:37:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-05-19 15:13:13 +00:00
|
|
|
</div>
|
2015-03-09 14:37:27 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2015-05-23 20:34:44 +00:00
|
|
|
{# Disable relbars. #}
|
2015-05-19 15:13:13 +00:00
|
|
|
{% block relbar1 %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block relbar2 %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2015-05-23 19:48:09 +00:00
|
|
|
<div class="tb-container">
|
2015-05-19 15:13:13 +00:00
|
|
|
<div class="row">
|
2015-05-23 15:31:29 +00:00
|
|
|
{# TODO: integrate sidebar
|
|
|
|
<div class="bs-sidebar">
|
2015-05-19 15:13:13 +00:00
|
|
|
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
|
|
|
<div class="sphinxsidebarwrapper">
|
|
|
|
{%- block sidebarlogo %}
|
|
|
|
{%- if logo %}
|
|
|
|
<p class="logo"><a href="{{ pathto(master_doc) }}">
|
|
|
|
<img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
|
|
|
|
</a></p>
|
|
|
|
{%- endif %}
|
|
|
|
{%- endblock %}
|
|
|
|
{%- for sidebartemplate in sidebars %}
|
|
|
|
{%- include sidebartemplate %}
|
|
|
|
{%- endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-05-23 15:31:29 +00:00
|
|
|
</div>
|
|
|
|
#}
|
2015-05-19 15:13:13 +00:00
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
{% block body %} {% endblock %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
2014-04-16 19:24:35 +00:00
|
|
|
{% block footer %}
|
|
|
|
{{ super() }}
|
2015-05-23 15:31:29 +00:00
|
|
|
{# Placed at the end of the document so the pages load faster. #}
|
2015-05-19 15:13:13 +00:00
|
|
|
<script src="_static/bootstrap.min.js"></script>
|
2014-10-17 14:53:56 +00:00
|
|
|
{% endblock %}
|