implement mdx remote

This commit is contained in:
Jeff Escalante
2020-12-07 17:04:11 -05:00
parent 789225dcb8
commit 0eae603a86
413 changed files with 2596 additions and 3404 deletions

View File

@@ -1,4 +1,3 @@
NEXT_PUBLIC_ALGOLIA_APP_ID=YY0FFNI7MF
NEXT_PUBLIC_ALGOLIA_INDEX=product_NOMAD
NEXT_PUBLIC_ALGOLIA_SEARCH_ONLY_API_KEY=5037da4824714676226913c65e961ca0
HASHI_ENV=production

1
website/.env.production Normal file
View File

@@ -0,0 +1 @@
HASHI_ENV=production

View File

@@ -1,4 +0,0 @@
module.exports = {
presets: ['next/babel'],
plugins: ['import-glob-array'],
}

View File

@@ -1,28 +0,0 @@
import Search from '@hashicorp/react-search'
export default function SearchBar() {
return (
<Search
renderHitContent={({ hit, Highlight }) => (
<>
<span className="name">
<Highlight attribute="page_title" hit={hit} tagName="span" />
</span>
<span className="description">
<Highlight attribute="description" hit={hit} tagName="span" />
</span>
</>
)}
resolveHitLink={(hit) => ({
href: {
pathname: `/${transformIdtoUrl(hit.objectID)}`,
},
})}
placeholder="Search Nomad documentation"
/>
)
}
function transformIdtoUrl(id) {
return id.replace(/\/index$/, '')
}

View File

@@ -1,8 +0,0 @@
.g-search {
width: calc(100% - 2rem);
max-width: 600px;
& .c-hits .ais-Highlight-highlighted {
background-color: #c1f1e0;
}
}

View File

@@ -19,7 +19,6 @@ The stream will be kept alive until the connection is closed.
| ------ | ------------------ | ------------------ |
| `GET` | `/v1/event/stream` | `application/json` |
The table below shows this endpoint's [required ACLs](/api-docs#acls). Due to
the nature of this endpoint individual topics require specific policies.
@@ -60,7 +59,7 @@ by default, requiring a management token.
### Event Topics
| Topic | Output |
| ------------ | ------------------------------- |
| ---------- | ------------------------------- |
| ACLToken | ACLToken |
| ACLPolicy | ACLPolicy |
| ACLPolicy | Allocation (no job information) |

View File

@@ -205,7 +205,7 @@ The table below shows this endpoint's support for
[required ACLs](/api-docs#acls).
| Blocking Queries | ACL Required |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| ---------------- | --------------------------------------------------------------------------------- |
| `NO` | `namespace:submit-job` with `namespace:sentinel-override` if `PolicyOverride` set |
### Parameters
@@ -252,9 +252,7 @@ $ curl \
"JobID": "example",
"JobModifyIndex": 51,
"Namespace": "default",
"Recommendations": [
"cb80a13d-20d8-fb05-db3f-4ea0fe667b1b"
],
"Recommendations": ["cb80a13d-20d8-fb05-db3f-4ea0fe667b1b"],
"Warnings": ""
}
]

View File

@@ -12,6 +12,7 @@ target plugins support the `dry-run` policy config parameter which allows a poli
to be evaluated, but will noop any suggested changes.
Below is a list of plugins you can use with the Nomad Autoscaler:
- [Nomad Task Group][nomad_task_group_target]
- [Dynamic Application Sizing Nomad Task][das_task_target]
- [AWS AutoScaling Group][aws_asg_target]
@@ -237,7 +238,6 @@ To use the Azure VMSS target plugin, the agent configuration needs to be populat
with the appropriate target block. Authentication to the Azure API can be supplied
in a number of ways.
#### Virtual Machine Identities
When using [virtual machine identities][vm_identity] you will need to provide a

View File

@@ -74,6 +74,7 @@ Evaluation ID: b754d6b3-8960-5652-60d8-d47df6eaed13
```
Scale the job with ID "job1" and the task group "group1" to a count of 8:
```shell-session
$ nomad job scale job1 group1 8
==> Monitoring evaluation "529cc88e"

Some files were not shown because too many files have changed in this diff Show More