Skip to content

Commit

Permalink
Merge pull request #9533 from ballerina-platform/automate-bbes-558bb7…
Browse files Browse the repository at this point in the history
…14f9e3cdf9f3b4aa371898ea774e4ee2a3

[Automated] Update Ballerina By Example(BBEs) pages
  • Loading branch information
sm1990 authored Oct 4, 2024
2 parents 558bb71 + 8d15069 commit 3948e2d
Show file tree
Hide file tree
Showing 546 changed files with 3,331 additions and 640 deletions.
94 changes: 62 additions & 32 deletions _data/ballerina-by-example-nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,17 @@ sublinks:
- title: Strings
id: 1
url: strings
- title: Conditional statements
- title: Operators
id: 5
sublinks:
- title: Binary operators
id: 1
url: binary-operators
- title: Unary operators
id: 2
url: unary-operators
- title: Conditional statements
id: 6
sublinks:
- title: If statement
id: 1
Expand All @@ -74,7 +83,7 @@ sublinks:
id: 4
url: binding-patterns-in-match-statement
- title: Functions
id: 6
id: 7
sublinks:
- title: Functions
id: 1
Expand Down Expand Up @@ -107,7 +116,7 @@ sublinks:
id: 10
url: function-closure
- title: Iteration
id: 7
id: 8
sublinks:
- title: Foreach statement
id: 1
Expand All @@ -125,13 +134,13 @@ sublinks:
id: 5
url: int-range
- title: Lang library
id: 8
id: 9
sublinks:
- title: Langlib functions
id: 1
url: langlib-functions
- title: Types and typing
id: 9
id: 10
sublinks:
- title: Structural typing
id: 1
Expand Down Expand Up @@ -179,19 +188,19 @@ sublinks:
id: 15
url: never-type
- title: Expression-oriented style
id: 10
id: 11
sublinks:
- title: Expression-oriented style
id: 1
url: expression-oriented-style
- title: Equality
id: 11
id: 12
sublinks:
- title: Expression equality
id: 1
url: expression-equality
- title: Lists
id: 12
id: 13
sublinks:
- title: Arrays
id: 1
Expand All @@ -218,7 +227,7 @@ sublinks:
id: 8
url: binary-data
- title: Mappings
id: 13
id: 14
sublinks:
- title: Maps
id: 1
Expand All @@ -230,7 +239,7 @@ sublinks:
id: 3
url: computed-field-key
- title: Records
id: 14
id: 15
sublinks:
- title: Optional fields
id: 1
Expand All @@ -248,13 +257,13 @@ sublinks:
id: 5
url: default-values-for-record-fields
- title: Array/Map symmetry
id: 15
id: 16
sublinks:
- title: Array/Map symmetry
id: 1
url: array-map-symmetry
- title: Objects
id: 16
id: 17
sublinks:
- title: Object
id: 1
Expand Down Expand Up @@ -293,7 +302,7 @@ sublinks:
id: 12
url: start-service-from-service-class-definition
- title: Binding patterns
id: 17
id: 18
sublinks:
- title: Binding patterns
id: 1
Expand Down Expand Up @@ -341,7 +350,7 @@ sublinks:
id: 15
url: error-binding-pattern-in-match-statement
- title: Tables
id: 18
id: 19
sublinks:
- title: Table
id: 1
Expand All @@ -356,7 +365,7 @@ sublinks:
id: 4
url: structured-keys
- title: Query expressions
id: 19
id: 20
sublinks:
- title: Query expressions
id: 1
Expand Down Expand Up @@ -407,13 +416,13 @@ sublinks:
id: 16
url: aggregation
- title: Query actions
id: 20
id: 21
sublinks:
- title: Query actions
id: 1
url: query-actions
- title: JSON
id: 21
id: 22
sublinks:
- title: JSON type
id: 1
Expand Down Expand Up @@ -455,7 +464,7 @@ sublinks:
id: 13
url: jsonpath-expressions
- title: Backtick templates
id: 22
id: 23
sublinks:
- title: Raw templates
id: 1
Expand All @@ -467,7 +476,7 @@ sublinks:
id: 3
url: xml-templates
- title: XML
id: 23
id: 24
sublinks:
- title: XML data model
id: 1
Expand Down Expand Up @@ -506,7 +515,7 @@ sublinks:
id: 12
url: xml-to-record-with-projection
- title: Regular Expressions
id: 24
id: 25
sublinks:
- title: RegExp type
id: 1
Expand All @@ -515,7 +524,7 @@ sublinks:
id: 2
url: regexp-operations
- title: Metadata
id: 25
id: 26
sublinks:
- title: Documentation
id: 1
Expand All @@ -524,7 +533,7 @@ sublinks:
id: 2
url: annotations
- title: Network interaction
id: 26
id: 27
sublinks:
- title: 'Consume services: client objects'
id: 1
Expand All @@ -548,7 +557,7 @@ sublinks:
id: 7
url: resource-path-parameters
- title: Configurability
id: 27
id: 28
sublinks:
- title: Configurable variables
id: 1
Expand All @@ -560,7 +569,7 @@ sublinks:
id: 3
url: configuring-via-cli
- title: Error handling
id: 28
id: 29
sublinks:
- title: Error handling
id: 1
Expand All @@ -584,13 +593,13 @@ sublinks:
id: 7
url: error-cause
- title: Ignore return values and errors
id: 29
id: 30
sublinks:
- title: Ignore return values and errors
id: 1
url: ignoring-return-values-and-errors
- title: Mutability and identity
id: 30
id: 31
sublinks:
- title: Identity
id: 1
Expand All @@ -605,7 +614,7 @@ sublinks:
id: 4
url: immutability
- title: Concurrency
id: 31
id: 32
sublinks:
- title: Asynchronous function calls
id: 1
Expand Down Expand Up @@ -659,7 +668,7 @@ sublinks:
id: 17
url: fork
- title: Transactions
id: 32
id: 33
sublinks:
- title: Transaction statement
id: 1
Expand All @@ -683,7 +692,7 @@ sublinks:
id: 7
url: commit-rollback-handlers
- title: Concurrency safety
id: 33
id: 34
sublinks:
- title: Lock statement
id: 1
Expand Down Expand Up @@ -719,13 +728,13 @@ sublinks:
id: 11
url: run-strands-safely-on-separate-threads
- title: Interface to external code
id: 34
id: 35
sublinks:
- title: Interface to external code
id: 1
url: interface-to-external-code
- title: Testing
id: 35
id: 36
sublinks:
- title: Assertions
id: 1
Expand Down Expand Up @@ -1867,8 +1876,29 @@ sublinks:
- title: Serialize to YAML string
id: 3
url: anydata-to-yaml-string
- title: Constraint
- title: CSV data
id: 17
sublinks:
- title: Convert CSV string to records
id: 1
url: csv-string-to-record-array
- title: Convert CSV string to arrays
id: 2
url: csv-string-to-anydata-array
- title: Parse CSV byte streams to records
id: 3
url: csv-streams-to-record-array
- title: Parse CSV lists to custom types
id: 4
url: parse-csv-lists
- title: Transform CSV records to custom types
id: 5
url: transform-csv-records-to-custom-types
- title: Handle CSV with custom configurations
id: 6
url: csv-user-configurations
- title: Constraint
id: 18
sublinks:
- title: Constraint validations
id: 1
Expand Down
2 changes: 1 addition & 1 deletion swan-lake/by-example/access-json-elements/content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function AccessJsonElements({ codeSnippets }) {
className="bg-transparent border-0 m-0 p-2 ms-auto"
onClick={() => {
window.open(
"https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.10.0/examples/access-json-elements",
"https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.10.1/examples/access-json-elements",
"_blank",
);
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function AccessOptionalJsonElements({ codeSnippets }) {
className="bg-transparent border-0 m-0 p-2 ms-auto"
onClick={() => {
window.open(
"https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.10.0/examples/access-optional-json-elements",
"https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.10.1/examples/access-optional-json-elements",
"_blank",
);
}}
Expand Down
2 changes: 1 addition & 1 deletion swan-lake/by-example/aggregation/content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function Aggregation({ codeSnippets }) {
className="bg-transparent border-0 m-0 p-2 ms-auto"
onClick={() => {
window.open(
"https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.10.0/examples/aggregation",
"https://github.com/ballerina-platform/ballerina-distribution/tree/v2201.10.1/examples/aggregation",
"_blank",
);
}}
Expand Down
Loading

0 comments on commit 3948e2d

Please sign in to comment.