2018-05-22 23:15:08 +02:00
|
|
|
{{ partial "header" . }}
|
2020-02-03 09:17:14 +01:00
|
|
|
{{ $currentURL := .RelPermalink }}
|
2018-05-22 23:15:08 +02:00
|
|
|
|
|
|
|
<div class="actix-pageheader">
|
|
|
|
<div class="container">
|
|
|
|
<h1 class="display-4">{{ .Title }}</h1>
|
|
|
|
{{ if .Description }}
|
|
|
|
<p class="lead">{{ .Description }}</p>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container actix-docs">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
2018-05-27 21:04:29 +02:00
|
|
|
<button class="btn doctoggle" type="button" data-toggle="collapse" data-target="#collapsing-docnav" aria-expanded="false" aria-controls="collapsing-docnav">
|
|
|
|
Toggle navigation
|
|
|
|
</button>
|
2018-07-22 19:48:26 +02:00
|
|
|
|
2018-05-27 21:04:29 +02:00
|
|
|
<nav class="leftnav collapse show" id="collapsing-docnav">
|
2018-05-22 23:15:08 +02:00
|
|
|
<div class="" id="">
|
|
|
|
<h5>Introduction</h5>
|
|
|
|
<div>
|
|
|
|
<ul class="nav">
|
|
|
|
{{ range .Site.Menus.docs_intro }}
|
|
|
|
<li{{ if eq $currentURL .URL }} class="active"{{ end }}>
|
|
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h5>Basics</h5>
|
|
|
|
<div>
|
|
|
|
<ul class="nav">
|
|
|
|
{{ range .Site.Menus.docs_basics }}
|
|
|
|
<li{{ if eq $currentURL .URL }} class="active"{{ end }}>
|
|
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h5>Advanced</h5>
|
|
|
|
<div>
|
|
|
|
<ul class="nav">
|
|
|
|
{{ range .Site.Menus.docs_advanced }}
|
|
|
|
<li{{ if eq $currentURL .URL }} class="active"{{ end }}>
|
|
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h5>Protocols</h5>
|
|
|
|
<div>
|
|
|
|
<ul class="nav">
|
|
|
|
{{ range .Site.Menus.docs_proto }}
|
|
|
|
<li{{ if eq $currentURL .URL }} class="active"{{ end }}>
|
|
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h5>Patterns</h5>
|
|
|
|
<div>
|
|
|
|
<ul class="nav">
|
|
|
|
{{ range .Site.Menus.docs_patterns }}
|
|
|
|
<li{{ if eq $currentURL .URL }} class="active"{{ end }}>
|
|
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2020-01-28 12:36:35 +01:00
|
|
|
<h5>Diagrams</h5>
|
|
|
|
<div>
|
|
|
|
<ul class="nav">
|
|
|
|
{{ range .Site.Menus.docs_architecture }}
|
|
|
|
<li{{ if eq $currentURL .URL }} class="active"{{ end }}>
|
|
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2018-05-22 23:15:08 +02:00
|
|
|
<h5>API Documentation</h5>
|
|
|
|
<div>
|
|
|
|
<ul class="nav">
|
2018-06-11 14:37:12 +02:00
|
|
|
<li><a href="https://docs.rs/actix" target="view_window">actix <span class="fa fa-external-link"></span></a></li>
|
2019-06-18 23:42:17 +02:00
|
|
|
<li><a href="https://docs.rs/actix-web/" target="view_window">actix-web <span class="fa fa-external-link"></span></a></li>
|
2018-05-22 23:15:08 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="col-md-9">
|
|
|
|
<div class="actix-content">
|
|
|
|
{{ block "main" . }}{{ end }}
|
|
|
|
<div class="github-edit">
|
|
|
|
<a class="fa fa-github" href="https://github.com/actix/actix-website/tree/master/content/{{ .File.Path }}"> Edit on GitHub</a>
|
|
|
|
</div>
|
2020-02-01 21:22:11 +01:00
|
|
|
|
|
|
|
{{ if eq (len .Pages) 0 }}
|
|
|
|
{{ .Scratch.Set "Docs" .Parent.Pages.ByWeight }}
|
|
|
|
{{ else }}
|
|
|
|
{{ .Scratch.Set "Docs" .Pages.ByWeight }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ .Scratch.Set "CurrentWeight" .Weight }}
|
|
|
|
|
|
|
|
{{ range first 1 (where (.Scratch.Get "Docs") ".Weight" ">" (.Scratch.Get "CurrentWeight")) }}
|
2020-02-03 09:17:14 +01:00
|
|
|
<div class="actix-next"><b>Next up</b>: <a href = {{ .RelPermalink }}>{{ .Title }}</a></div>
|
2020-02-01 21:22:11 +01:00
|
|
|
{{ end }}
|
2018-05-22 23:15:08 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ partial "footer" . }}
|