From 38b16684b35cf5cfb9bccecc75c7df6a5c43f391 Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Fri, 20 Oct 2017 16:25:42 -0400 Subject: [PATCH] website: Add vagrant-cloud layout Has sticky sidebar and support for navigating anchor tags --- .../source/docs/vagrant-cloud/api.html.md.erb | 31 ----- website/source/layouts/vagrant-cloud.erb | 128 ++++++++++++++++++ 2 files changed, 128 insertions(+), 31 deletions(-) create mode 100644 website/source/layouts/vagrant-cloud.erb diff --git a/website/source/docs/vagrant-cloud/api.html.md.erb b/website/source/docs/vagrant-cloud/api.html.md.erb index 8e128b35c..24f822460 100644 --- a/website/source/docs/vagrant-cloud/api.html.md.erb +++ b/website/source/docs/vagrant-cloud/api.html.md.erb @@ -64,37 +64,6 @@ sidebar_current: "vagrant-cloud-api" # Vagrant Cloud API -* [Using the API](#using-the-api) - * [Authentication](#authentication) - * [Request and Response Format](#request-and-response-format) - * [Response Codes](#response-codes) -* [Creating a usable box from scratch](#creating-a-usable-box-from-scratch) -* [Authentication](#authentication-1) - * [Create a token](#create-a-token) - * [Validate a token](#validate-a-token) - * [Request a 2FA code](#validate-a-token) -* [Organizations](#organizations) - * [Read an organization](#read-an-organization) -* [Boxes](#boxes) - * [Read a box](#read-a-box) - * [Create a box](#create-a-box) - * [Update a box](#update-a-box) - * [Delete a box](#delete-a-box) -* [Versions](#versions) - * [Read a version](#read-a-version) - * [Create a version](#create-a-version) - * [Update a version](#update-a-version) - * [Delete a version](#delete-a-version) - * [Release a version](#release-a-version) - * [Revoke a version](#revoke-a-version) -* [Providers](#providers) - * [Read a provider](#read-a-provider) - * [Create a providers](#create-a-provider) - * [Update a provider](#update-a-provider) - * [Delete a provider](#delete-a-provider) - * [Upload a provider](#upload-a-provider) - - ## Using the API Vagrant Cloud provides an API for users to interact with Vagrant Cloud for experimentation, automation, or building new features and tools on top of our existing application. diff --git a/website/source/layouts/vagrant-cloud.erb b/website/source/layouts/vagrant-cloud.erb new file mode 100644 index 000000000..7cf82278e --- /dev/null +++ b/website/source/layouts/vagrant-cloud.erb @@ -0,0 +1,128 @@ +<% content_for :head do %> + + +<% end %> + +<% wrap_layout :inner do %> + <% content_for :sidebar do %> + + <% end %> + + <%= yield %> +<% end %>