website/docs: Prepare for monorepo. (#14119)
* docusaurus-theme: Fix header alignment, overscroll, vertical padding. * docusaurus-theme: Lint. * website/docs: Prepare for monorepo packages. * website/docs: Clean up dependencies. Tidy table. * website/docs: Fix issue where Prettier affects example content. * website/docs: Temp fix for stale packages.
This commit is contained in:
		@ -4,6 +4,7 @@ title: Example
 | 
			
		||||
 | 
			
		||||
This is one of the default packaged blueprints to create the default authentication flow.
 | 
			
		||||
 | 
			
		||||
<!-- prettier-ignore-start -->
 | 
			
		||||
```yaml
 | 
			
		||||
version: 1
 | 
			
		||||
metadata:
 | 
			
		||||
@ -64,3 +65,4 @@ entries:
 | 
			
		||||
          target: !KeyOf flow
 | 
			
		||||
      model: authentik_flows.flowstagebinding
 | 
			
		||||
```
 | 
			
		||||
<!-- prettier-ignore-end -->
 | 
			
		||||
 | 
			
		||||
@ -48,6 +48,8 @@ Returns the value of the given environment variable. Can be used as a scalar wit
 | 
			
		||||
 | 
			
		||||
Examples:
 | 
			
		||||
 | 
			
		||||
{/* prettier-ignore-start */}
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
configure_flow: !Find [authentik_flows.flow, [slug, default-password-change]]
 | 
			
		||||
```
 | 
			
		||||
@ -60,6 +62,8 @@ configure_flow:
 | 
			
		||||
    ]
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
{/* prettier-ignore-end */}
 | 
			
		||||
 | 
			
		||||
Looks up any model and resolves to the the matches' primary key.
 | 
			
		||||
First argument is the model to be queried, remaining arguments are expected to be pairs of key=value pairs to query for.
 | 
			
		||||
 | 
			
		||||
@ -67,10 +71,15 @@ First argument is the model to be queried, remaining arguments are expected to b
 | 
			
		||||
 | 
			
		||||
Example:
 | 
			
		||||
 | 
			
		||||
{/* prettier-ignore-start */}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
configure_flow: !Context foo
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
{/* prettier-ignore-end */}
 | 
			
		||||
 | 
			
		||||
Find values from the context. Can optionally be called with a default like `!Context [foo, default-value]`.
 | 
			
		||||
 | 
			
		||||
#### `!Format`
 | 
			
		||||
@ -209,6 +218,8 @@ For example, given a sequence like this - `["a", "b", "c"]`, this tag will resol
 | 
			
		||||
 | 
			
		||||
Minimal examples:
 | 
			
		||||
 | 
			
		||||
{/* prettier-ignore-start */}
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
configuration_stages: !Enumerate [
 | 
			
		||||
        !Context map_of_totp_stage_names_and_types,
 | 
			
		||||
@ -224,6 +235,8 @@ configuration_stages: !Enumerate [
 | 
			
		||||
    ]
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
{/* prettier-ignore-end */}
 | 
			
		||||
 | 
			
		||||
The above example will resolve to something like this:
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
@ -265,6 +278,8 @@ Full example:
 | 
			
		||||
Note that an `!Enumeration` tag's iterable can never be an `!Item` or `!Value` tag with a depth of `0`. Minimum depth allowed is `1`. This is because a depth of `0` refers to the `!Enumeration` tag the `!Item` or `!Value` tag is in, and an `!Enumeration` tag cannot iterate over itself.
 | 
			
		||||
:::
 | 
			
		||||
 | 
			
		||||
{/* prettier-ignore-start */}
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
example: !Enumerate [
 | 
			
		||||
        !Context sequence, # ["foo", "bar"]
 | 
			
		||||
@ -288,6 +303,8 @@ example: !Enumerate [
 | 
			
		||||
    ]
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
{/* prettier-ignore-end */}
 | 
			
		||||
 | 
			
		||||
The above example will resolve to something like this:
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
 | 
			
		||||
@ -2,8 +2,8 @@
 | 
			
		||||
 | 
			
		||||
To further modify the look of authentik, a custom CSS file can be created. Creating such a file is outside the scope of this document.
 | 
			
		||||
 | 
			
		||||
import Tabs from "@theme/Tabs";
 | 
			
		||||
import TabItem from "@theme/TabItem";
 | 
			
		||||
import Tabs from "@theme/Tabs";
 | 
			
		||||
 | 
			
		||||
<Tabs
 | 
			
		||||
  defaultValue="docker-compose"
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user