Updating KCL examples on docs (#2355)

* updating KCL examples on docs

* update images and docs

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Josh Gomez
2024-05-14 17:10:47 -07:00
committed by GitHub
parent 26438270ff
commit 97ad66a358
100 changed files with 1210 additions and 657 deletions

View File

@ -125,7 +125,23 @@ pub async fn abs(args: Args) -> Result<MemoryItem, KclError> {
/// Computes the absolute value of a number.
///
/// ```no_run
/// const myVar = abs(-4)
/// const myAngle = -120
///
/// const sketch001 = startSketchOn('-XZ')
/// |> startProfileAt([0, 0], %)
/// |> line([8, 0], %)
/// |> angledLine({
/// angle: abs(myAngle),
/// length: 5,
/// }, %)
/// |> line([-5, 0], %)
/// |> angledLine({
/// angle: myAngle,
/// length: 5,
/// }, %)
/// |> close(%)
///
/// const baseExtrusion = extrude(5, sketch001)
/// ```
#[stdlib {
name = "abs",