Skip to content

Commit 094b14f

Browse files
committed
fix: fix search and replace error in language markers
1 parent a67d8cb commit 094b14f

File tree

21 files changed

+39
-39
lines changed

21 files changed

+39
-39
lines changed

sources/academy/platform/deploying_your_code/input_schema.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Though writing an [input schema](/platform/actors/development/actor-definition/i
1919

2020
In the root of our project, we'll create a file named **INPUT_SCHEMA.json** and start writing the first part of the schema.
2121

22-
```javascripton
22+
```json
2323
{
2424
"title": "Adding actor input",
2525
"description": "Add all values in list of numbers with an arbitrary length.",
@@ -34,7 +34,7 @@ The **title** and **description** simply describe what the input schema is for,
3434

3535
In order to define all of the properties our actor is expecting, we must include them within an object with a key of **properties**.
3636

37-
```javascripton
37+
```json
3838
{
3939
"title": "Adding actor input",
4040
"description": "Add all values in list of numbers with an arbitrary length.",
@@ -55,7 +55,7 @@ Each property's key corresponds to the name we're expecting within our code, whi
5555

5656
Within our new **numbers** property, there are two more fields we must specify. Firstly, we must let the platform know that we're expecting an array of numbers with the **type** field. Then, we should also instruct Apify on which UI component to render for this input property. In our case, we have an array of numbers, which means we should use the **json** editor type that we discovered in the ["array" section](/platform/actors/development/actor-definition/input-schema#array) of the input schema documentation. We could also use **stringList**, but then we'd have to parse out the numbers from the strings.
5757

58-
```javascripton
58+
```json
5959
{
6060
"title": "Adding actor input",
6161
"description": "Add all values in list of numbers with an arbitrary length.",
@@ -76,7 +76,7 @@ Within our new **numbers** property, there are two more fields we must specify.
7676

7777
The great thing about building an input schema is that it will automatically validate your inputs based on their type, maximum value, minimum value, etc. Sometimes, you want to ensure that the user will always provide input for certain fields, as they are crucial to the actor's run. This can be done by using the **required** field and passing in the names of the fields you'd like to require.
7878

79-
```javascripton
79+
```json
8080
{
8181
"title": "Adding actor input",
8282
"description": "Add all values in list of numbers with an arbitrary length.",

sources/academy/platform/deploying_your_code/inputs_outputs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ If we run this right now, we'll see **null** in our terminal - this is because w
5959

6060
We'll now add an **INPUT.json** file within **storage/key_value_stores/default** to match what we're expecting in our code.
6161

62-
```javascripton
62+
```json
6363
{
6464
"numbers": [5, 5, 5, 5]
6565
}
@@ -213,7 +213,7 @@ Since we've changed our code a lot from the way it originally was by wrapping it
213213

214214
After running our script, there should be a single item in the default dataset that looks like this:
215215

216-
```javascripton
216+
```json
217217
{
218218
"solution": 20
219219
}

sources/academy/platform/deploying_your_code/output_schema.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Firstly, create a `.actor` folder in the root of your actor's source code. Then,
2525

2626
Next, copy-paste the following template code into your `actor.json` file.
2727

28-
```javascripton
28+
```json
2929
{
3030
"actorSpecification": 1,
3131
"name": "___ENTER_ACTOR_NAME____",
@@ -73,7 +73,7 @@ To configure the output schema, simply replace the fields in the template with t
7373

7474
For reference, you can use the [Zappos Scraper source code](https://github.com/PerVillalva/zappos-scraper-actor/blob/main/.actor/actor.json) as an example of how the final implementation of the output tab should look in a live actor.
7575

76-
```javascripton
76+
```json
7777
{
7878
"actorSpecification": 1,
7979
"name": "zappos-scraper",

sources/academy/platform/expert_scraping_with_apify/apify_api_and_client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Though it's a bit unintuitive, this is a perfect activity for learning how to us
3939

4040
The new actor should take the following input values, which be mapped to parameters in the API calls:
4141

42-
```javascripton
42+
```json
4343
{
4444
// How much memory to allocate to the Amazon actor
4545
// Must be a power of 2

sources/academy/platform/expert_scraping_with_apify/migrations_maintaining_state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Before moving forward, read about actor [events](/sdk/js/docs/upgrading/upgradin
3535

3636
Once again returning to our Amazon **demo-actor**, let's say that we need to store an object in memory (as a variable) containing all of the scraped ASINs as keys and the number of offers scraped from each ASIN as values. The object should follow this format:
3737

38-
```javascripton
38+
```json
3939
{
4040
"B079ZJ1BPR": 3,
4141
"B07D4R4258": 21

sources/academy/platform/expert_scraping_with_apify/saving_useful_stats.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Before moving on, give these valuable resources a quick lookover:
3636

3737
In our Amazon actor, each dataset result must now have the following extra keys:
3838

39-
```javascripton
39+
```json
4040
{
4141
"dateHandled": "date-here", // the date + time at which the request was handled
4242
"numberOfRetries": 4, // the number of retries of the request before running successfully
@@ -46,7 +46,7 @@ In our Amazon actor, each dataset result must now have the following extra keys:
4646

4747
Also, an object including these values should be persisted during the run in th Key-Value store and logged to the console every 10 seconds:
4848

49-
```javascripton
49+
```json
5050
{
5151
"errors": { // all of the errors for every request path
5252
"some-site.com/products/123": [

sources/academy/platform/expert_scraping_with_apify/solutions/integrating_webhooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ await Actor.exit();
102102
103103
Cool! But **wait**, don't forget to configure the **INPUT_SCHEMA.json** file as well! It's not necessary to do this step, as we'll be calling the actor through Apify's API within a webhook, but it's still good to get into the habit of writing quality input schemas that describe the input values your actors are expecting.
104104
105-
```javascripton
105+
```json
106106
{
107107
"title": "Amazon Filter Actor",
108108
"type": "object",

sources/academy/platform/expert_scraping_with_apify/solutions/using_api_and_client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ else await withAPI();
130130

131131
And before we push to the platform, let's not forget to write an input schema in the **INPUT_SCHEMA.JSON** file:
132132

133-
```javascripton
133+
```json
134134
{
135135
"title": "Actor Caller",
136136
"type": "object",

sources/academy/platform/getting_started/inputs_outputs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Then, replace everything in **INPUT_SCHEMA.json** with this:
4242

4343
> This step isn't necessary, as the actor will still be able to take input in JSON format without it; however, we are providing the content for this actor's input schema in this lesson, as it will give the Apify platform a blueprint off of which it can generate a nice UI for your inputs, as well as validate their values.
4444
45-
```javascripton
45+
```json
4646
{
4747
"title": "Number adder",
4848
"type": "object",

sources/academy/tutorials/apify_scrapers/getting_started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ https://apify.com/store
118118

119119
We also need to somehow distinguish the **Start URL** from all the other URLs that the scraper will add later. To do this, click the **Details** button in the **Start URL** form and see the **User data** input. Here you can add any information you'll need during the scrape in a JSON format. For now, just add a label to the **Start URL**.
120120

121-
```javascripton
121+
```json
122122
{
123123
"label": "START"
124124
}
@@ -182,7 +182,7 @@ This is because even though it matches our **Pseudo URL**'s format, the HTML ele
182182

183183
Let's use the above **Pseudo URL** in our task. We should also add a label as we did with our **Start URL**. This label will be added to all pages that were enqueued into the request queue using the given **Pseudo URL**.
184184

185-
```javascripton
185+
```json
186186
{
187187
"label": "DETAIL"
188188
}

0 commit comments

Comments
 (0)