Skip to content

Commit

Permalink
add cookbook and move header guide to cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
filrak committed Sep 24, 2023
1 parent 1431745 commit 13e6a81
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 11 deletions.
9 changes: 0 additions & 9 deletions docs/content/2.assistant.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/content/2.overview/_dir.yml

This file was deleted.

10 changes: 10 additions & 0 deletions docs/content/3.cookbook/1.index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Available Guides
layout: default
---

# Cookbook

Here you will find guides, best practices and recipes that will teach you how to achieve certain use cases in the most optimal way with Vue Storefront stack.

:card{to="/Cookbook/pass-custom-headers-and-cookies-to-requests" title="Pass Custom Headers and Cookies to Requests" description="In this tutorial, we'll demonstrate how to set up an interceptor to pass headers when making requests using the axios client inside the Vue Storefront SDK. This is useful when you need to append custom headers or cookies to your API calls."}
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Pass Custom Headers in Requests
---
title: Pass Custom Headers and Cookies to Requests
layout: default
scope: sdk, middleware, integrations
---

# Pass Custom Headers and Cookies to Requests

In this tutorial, we'll demonstrate how to set up an interceptor to pass headers when making requests using the axios client inside the Vue Storefront SDK. This is useful when you need to append custom headers or cookies to your API calls.

Expand Down
4 changes: 4 additions & 0 deletions docs/content/3.cookbook/_dir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: Cookbook
sidebarRoot: true
navigation:
icon: ri:book-2-fill
6 changes: 6 additions & 0 deletions docs/content/_sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
"icon": "ri:book-2-fill",
"sidebarRoot": true
},
{
"title": "Cookbook",
"_path": "/cookbook",
"icon": "ri:book-2-fill",
"sidebarRoot": true
},
{
"title": "SDK",
"_path": "/sdk",
Expand Down

0 comments on commit 13e6a81

Please sign in to comment.