Skip to content

Commit

Permalink
chore/nanocl: substate guide
Browse files Browse the repository at this point in the history
  • Loading branch information
leon3s committed May 4, 2024
1 parent 67164ef commit 4596b4d
Show file tree
Hide file tree
Showing 5 changed files with 193 additions and 180 deletions.
7 changes: 0 additions & 7 deletions docs/guides/nanocl/advanced-usage/sub-state.md

This file was deleted.

20 changes: 20 additions & 0 deletions docs/guides/nanocl/advanced-usage/substate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: SubState - Nanocl
description: Use substate in your statefile.
keywords: [documentation, nanocl, guides, get started, configuration, state, file, config, yaml, yml, statefile, substate]
image: /img/logo.webp
sidebar_label: SubState
---

import StatefileBlock from '@site/src/components/statefile_block';

# SubState

You can require other Statefiles in your Statefile using the `SubStates` key.

This is useful if you need to reuse a statefile in multiple places.
Or in a mono-repository settings to have a single source of truth for your state.

There is an example of how to use it:

<StatefileBlock example="advanced/substate.yml" />
Empty file added examples/advanced/substate.yml
Empty file.
Loading

0 comments on commit 4596b4d

Please sign in to comment.