mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Migrate API layouts
This commit is contained in:
65
website/source/layouts/api.erb
Normal file
65
website/source/layouts/api.erb
Normal file
@@ -0,0 +1,65 @@
|
||||
<% wrap_layout :inner do %>
|
||||
<% content_for :sidebar do %>
|
||||
<ul class="nav docs-sidenav">
|
||||
<li<%= sidebar_current("api-overview") %>>
|
||||
<a href="/api/index.html">Overview</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("api-libraries-and-sdks") %>>
|
||||
<a href="/api/libraries-and-sdks.html">Libraries & SDKs</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("api-json-jobs") %>>
|
||||
<a href="/api/json-jobs.html">JSON Jobs</a>
|
||||
</li>
|
||||
|
||||
<hr>
|
||||
|
||||
<li<%= sidebar_current("api-agent") %>>
|
||||
<a href="/api/agent.html">Agent</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("api-allocations") %>>
|
||||
<a href="/api/allocations.html">Allocations</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("api-client") %>>
|
||||
<a href="/api/client.html">Client</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("api-evaluations") %>>
|
||||
<a href="/api/evaluations.html">Evaluations</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("api-jobs") %>>
|
||||
<a href="/api/jobs.html">Jobs</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("api-nodes") %>>
|
||||
<a href="/api/nodes.html">Nodes</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("api-operator") %>>
|
||||
<a href="/api/operator.html">Operator</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("api-regions") %>>
|
||||
<a href="/api/regions.html">Regions</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("api-status") %>>
|
||||
<a href="/api/status.html">Status</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("api-system") %>>
|
||||
<a href="/api/system.html">System</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("api-validate") %>>
|
||||
<a href="/api/validate.html">Validate</a>
|
||||
</li>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
<%= yield %>
|
||||
<% end %>
|
||||
@@ -1,130 +0,0 @@
|
||||
<% wrap_layout :inner do %>
|
||||
<% content_for :sidebar do %>
|
||||
<ul class="nav docs-sidenav">
|
||||
<li<%= sidebar_current("docs-home") %>>
|
||||
<a href="/docs/index.html">Documentation Home</a>
|
||||
</li>
|
||||
|
||||
<hr>
|
||||
|
||||
<li<%= sidebar_current("docs-http-overview") %>>
|
||||
<a href="/docs/http/index.html">Overview</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-json-jobs") %>>
|
||||
<a href="/docs/http/json-jobs.html">JSON Jobs</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-job") %>>
|
||||
<a href="#">Jobs</a>
|
||||
<ul class="nav nav-visible">
|
||||
<li<%= sidebar_current("docs-http-jobs") %>>
|
||||
<a href="/docs/http/jobs.html">/v1/jobs</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-job-") %>>
|
||||
<a href="/docs/http/job.html">/v1/job</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-node") %>>
|
||||
<a href="#">Nodes</a>
|
||||
<ul class="nav nav-visible">
|
||||
<li<%= sidebar_current("docs-http-nodes") %>>
|
||||
<a href="/docs/http/nodes.html">/v1/nodes</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-node-") %>>
|
||||
<a href="/docs/http/node.html">/v1/node</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-alloc") %>>
|
||||
<a href="#">Allocations</a>
|
||||
<ul class="nav nav-visible">
|
||||
<li<%= sidebar_current("docs-http-allocs") %>>
|
||||
<a href="/docs/http/allocs.html">/v1/allocations</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-alloc-") %>>
|
||||
<a href="/docs/http/alloc.html">/v1/allocation</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-eval") %>>
|
||||
<a href="#">Evaluations</a>
|
||||
<ul class="nav nav-visible">
|
||||
<li<%= sidebar_current("docs-http-evals") %>>
|
||||
<a href="/docs/http/evals.html">/v1/evaluations</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-eval-") %>>
|
||||
<a href="/docs/http/eval.html">/v1/evaluation</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-agent") %>>
|
||||
<a href="#">Agent</a>
|
||||
<ul class="nav nav-visible">
|
||||
<li<%= sidebar_current("docs-http-agent-self") %>>
|
||||
<a href="/docs/http/agent-self.html">/v1/agent/self</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-agent-join") %>>
|
||||
<a href="/docs/http/agent-join.html">/v1/agent/join</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-agent-members") %>>
|
||||
<a href="/docs/http/agent-members.html">/v1/agent/members</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-agent-force-leave") %>>
|
||||
<a href="/docs/http/agent-force-leave.html">/v1/agent/force-leave</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-agent-servers") %>>
|
||||
<a href="/docs/http/agent-servers.html">/v1/agent/servers</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li<%= sidebar_current("docs-http-client") %>>
|
||||
<a href="#">Client</a>
|
||||
<ul class="nav nav-visible">
|
||||
<li<%= sidebar_current("docs-http-client-fs") %>>
|
||||
<a href="/docs/http/client-fs.html">/v1/client/fs</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-client-stats") %>>
|
||||
<a href="/docs/http/client-stats.html">/v1/client/stats</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-client-allocation-stats") %>>
|
||||
<a href="/docs/http/client-allocation-stats.html">/v1/client/allocation</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-regions") %>>
|
||||
<a href="/docs/http/regions.html">Regions</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-status") %>>
|
||||
<a href="/docs/http/status.html">Status</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-operator") %>>
|
||||
<a href="/docs/http/operator.html">Operator</a>
|
||||
</li>
|
||||
|
||||
<li<%= sidebar_current("docs-http-system") %>>
|
||||
<a href="/docs/http/system.html">System</a>
|
||||
</li>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
<%= yield %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user