-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1aa08cc
commit c9febf3
Showing
2 changed files
with
94 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,13 +66,55 @@ If your organization's policy allows, and you don't mind, I request that you kee | |
| :-------- | :----: | :------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `name` | String | `'cloudflare'` | DNS over HTTPS provider for in-browser DNS resolution. Cloudflare & Google supported. <MiniNote>Must be <Code>cloudflare</Code> or <Code>google</Code></MiniNote> | | ||
|
||
### `external_link` | ||
### `links` | ||
|
||
Specify an array/list of links to show in the footer. By default, a link to your ASN's PeeringDB page is used. | ||
|
||
| Parameter | Type | Default | Description | | ||
| :---------- | :-----: | :---------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `title` | String | `'PeeringDB'` | Link title/label | | ||
| `url` | String | `'https://www.peeringdb.com/asn/{primary_asn}'` | Target URL. `{primary_asn}` will be replaced with the `primary_asn` value from <Link to="/docs/configuration#global-settings">Global Settings</Link> | | ||
| `show_icon` | Boolean | `true` | Show an icon on the right side of the link indicating that the link will take the user away from the hyperglass page. | | ||
| `side` | String | `'left'` | Show the link on the `'left'` or `'right'` side of the footer. | | ||
| `order` | Integer | `0` | Specify the order of the links (left to right). During rendering, `links` and [`menus`](#menus) are merged, so the order is used to sort both. | | ||
|
||
#### Example | ||
|
||
```yaml title="hyperglass.yaml" | ||
web: | ||
links: | ||
- title: Website | ||
url: https://www.example.com | ||
side: right | ||
order: 5 | ||
- title: PeeringDB | ||
url: https://www.peeringdb.com/asn/{primary_asn} | ||
side: left | ||
order: 2 | ||
``` | ||
### `menus` | ||
|
||
Specify an array/list of menus to show in the footer. A menu's content can be plain text or markdown. By default, generic help and terms & conditions menus are shown. | ||
|
||
| Parameter | Type | Default | Description | | ||
| :-------- | :-----: | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `title` | String | | Menu title/label | | ||
| `content` | String | | Menu content. Can be any string content, or a path to a plain text or markdown file. | | ||
| `side` | String | `'left'` | Show the menu on the `'left'` or `'right'` side of the footer. | | ||
| `order` | Integer | `0` | Specify the order of the links (left to right). During rendering, [`links`](#links) and `menus` are merged, so the order is used to sort both. | | ||
|
||
#### Example | ||
|
||
| Parameter | Type | Default | Description | | ||
| :-------- | :-----: | :---------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `enable` | Boolean | `true` | Enable or disable the display of an external link | | ||
| `title` | String | `'PeeringDB'` | Link title/label | | ||
| `url` | String | `'https://www.peeringdb.com/asn/{primary_asn}'` | Target URL. `{primary_asn}` will be replaced with the `primary_asn` value from <Link to="/docs/configuration#global-settings">Global Settings</Link> | | ||
```yaml title="hyperglass.yaml" | ||
web: | ||
menus: | ||
- title: Help | ||
content: "Please contact [[email protected]](mailto:[email protected]) to get support." | ||
- title: Terms & Conditions | ||
content: /etc/hyperglass/terms-and-conditions.md | ||
side: right | ||
``` | ||
|
||
### `greeting` | ||
|
||
|
@@ -96,19 +138,3 @@ By default, [this Opengraph image](/opengraph.jpg) is set. If you define one wit | |
| Parameter | Type | Description | | ||
| :-------- | :----: | :---------------------- | | ||
| `image` | String | Path to opengraph image | | ||
|
||
### `help_menu` | ||
|
||
| Parameter | Type | Default | Description | | ||
| :-------- | :-----: | :------- | :------------------------------------------------------------------------------------------- | | ||
| `enable` | Boolean | `true` | Enable or display the display of the help menu | | ||
| `file` | String | | Path to a plain text or markdown file with content to override the default help menu content | | ||
| `title` | String | `'Help'` | Help menu title | | ||
|
||
### `terms` | ||
|
||
| Parameter | Type | Default | Description | | ||
| :-------- | :-----: | :-------- | :-------------------------------------------------------------------------------------------- | | ||
| `enable` | Boolean | `true` | Enable or display the display of terms & conditions | | ||
| `file` | String | | Path to a plain text or markdown file with content to override the default terms & conditions | | ||
| `title` | String | `'Terms'` | Terms & conditions title | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters