Skip to content

Commit

Permalink
Format docs
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel committed Dec 2, 2024
1 parent 2979eb9 commit 78d9bef
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 34 deletions.
12 changes: 6 additions & 6 deletions docs/how-tos/control-motor.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,13 +492,13 @@ const main = async () => {
const machine = await VIAM.createRobotClient({
host,
credentials: {
type: 'api-key'
/* Replace "<API-KEY>" (including brackets) with your machine's api key */,
payload: '<API-KEY>',
authEntity: '<API-KEY-ID>'
/* Replace "<API-KEY-ID>" (including brackets) with your machine's api key id */,
// Replace "<API-KEY>" (including brackets) with your machine's api key
type: "api-key",
payload: "<API-KEY>",
// Replace "<API-KEY-ID>" (including brackets) with your machine's api key id
authEntity: "<API-KEY-ID>",
},
signalingAddress: 'https://app.viam.com:443',
signalingAddress: "https://app.viam.com:443",
});

button().onclick = async () => {
Expand Down
24 changes: 12 additions & 12 deletions docs/how-tos/drive-rover.md
Original file line number Diff line number Diff line change
Expand Up @@ -521,13 +521,13 @@ async function main() {
const machine = await VIAM.createRobotClient({
host,
credentials: {
type: 'api-key'
/* Replace "<API-KEY>" (including brackets) with your machine's api key */,
payload: '<API-KEY>',
authEntity: '<API-KEY-ID>'
/* Replace "<API-KEY-ID>" (including brackets) with your machine's api key id */,
// Replace "<API-KEY>" (including brackets) with your machine's api key
type: "api-key",
payload: "<API-KEY>",
// Replace "<API-KEY-ID>" (including brackets) with your machine's api key id
authEntity: "<API-KEY-ID>",
},
signalingAddress: 'https://app.viam.com:443',
signalingAddress: "https://app.viam.com:443",
});

button().onclick = async () => {
Expand Down Expand Up @@ -1018,13 +1018,13 @@ const main = async () => {
const machine = await VIAM.createRobotClient({
host,
credentials: {
type: 'api-key'
/* Replace "<API-KEY>" (including brackets) with your machine's api key */,
payload: '<API-KEY>',
authEntity: '<API-KEY-ID>'
/* Replace "<API-KEY-ID>" (including brackets) with your machine's api key id */,
// Replace "<API-KEY>" (including brackets) with your machine's api key
type: "api-key",
payload: "<API-KEY>",
// Replace "<API-KEY-ID>" (including brackets) with your machine's api key id
authEntity: "<API-KEY-ID>",
},
signalingAddress: 'https://app.viam.com:443',
signalingAddress: "https://app.viam.com:443",
});

button().onclick = async () => {
Expand Down
12 changes: 6 additions & 6 deletions docs/sdks/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,13 @@ async function main() {
const robot = await VIAM.createRobotClient({
host,
credentials: {
type: 'api-key'
/* Replace "<API-KEY>" (including brackets) with your machine's api key */,
payload: '<API-KEY>',
authEntity: '<API-KEY-ID>'
/* Replace "<API-KEY-ID>" (including brackets) with your machine's api key id */,
// Replace "<API-KEY>" (including brackets) with your machine's api key
type: "api-key",
payload: "<API-KEY>",
// Replace "<API-KEY-ID>" (including brackets) with your machine's api key id
authEntity: "<API-KEY-ID>",
},
signalingAddress: 'https://app.viam.com:443',
signalingAddress: "https://app.viam.com:443",
});

console.log("Resources:");
Expand Down
12 changes: 6 additions & 6 deletions docs/tutorials/control/air-quality-fleet.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,12 +439,12 @@ The following instructions describe how to set up an API key for one location.
async function main() {
const opts: VIAM.ViamClientOptions = {
credentials: {
type: 'api-key'
/* Replace "<API-KEY>" (including brackets) with your machine's api key */,
payload: '<API-KEY>',
authEntity: '<API-KEY-ID>'
/* Replace "<API-KEY-ID>" (including brackets) with your machine's api key id */,
}
// Replace "<API-KEY>" (including brackets) with your machine's api key
type: "api-key",
payload: "<API-KEY>",
// Replace "<API-KEY-ID>" (including brackets) with your machine's api key id
authEntity: "<API-KEY-ID>",
},
};
const orgID: string = "<ORGANIZATION ID>"; // Replace
Expand Down
8 changes: 4 additions & 4 deletions static/include/program/authenticate.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ const host = "ADDRESS FROM THE VIAM APP";
const robot = await VIAM.createRobotClient({
host,
credentials: {
type: 'api-key'
/* Replace "<API-KEY>" (including brackets) with your machine's api key */,
// Replace "<API-KEY>" (including brackets) with your machine's api key
type: 'api-key',
payload: '<API-KEY>',
authEntity: '<API-KEY-ID>'
/* Replace "<API-KEY-ID>" (including brackets) with your machine's api key id */,
// Replace "<API-KEY-ID>" (including brackets) with your machine's api key id
authEntity: '<API-KEY-ID>',
},
signalingAddress: 'https://app.viam.com:443',
});
Expand Down

0 comments on commit 78d9bef

Please sign in to comment.