Skip to content

Commit

Permalink
docs: add documentation for using layers with private repos
Browse files Browse the repository at this point in the history
Update **Layers** documentation to include instructions for extending from private repositories.
  • Loading branch information
franklin-tina committed Mar 6, 2024
1 parent a8a06bb commit c0e5c78
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/1.getting-started/9.layers.md
Expand Up @@ -29,6 +29,18 @@ export default defineNuxtConfig({
})
```

The above example illustrates extending from a public GitHub repository. To extend from a **private** GitHub repository, follow the modified approach outlined below.

```ts twoslash [nuxt.config.ts]
export default defineNuxtConfig({
extends: [
// per layer configuration
['github:my-themes/private-awesome', { giget: { auth: process.env.GH_TOKEN } }]
]
})
```


::read-more{to="/docs/guide/going-further/layers"}
Read more about layers in the **Layer Author Guide**.
::
Expand Down

0 comments on commit c0e5c78

Please sign in to comment.