# Documentation example starlark script

**URL:** <https://drone.discourse.group/t/documentation-example-starlark-script/7444>\
**Category:** Drone Bugs\
**Created:** [April 24, 2020, 6:45am UTC](https://drone.discourse.group/t/documentation-example-starlark-script/7444 "2020-04-24T06:45:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilesbradshaw](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/gilesbradshaw/32/5650_2.png) [@gilesbradshaw](https://drone.discourse.group/u/gilesbradshaw)\
**Post date:** [April 24, 2020, 6:45am UTC](https://drone.discourse.group/t/documentation-example-starlark-script/7444/1 "2020-04-24T06:45:12Z")

</div>

The script does not compile

[https://docs.drone.io/pipeline/scripting/starlark/](https://docs.drone.io/pipeline/scripting/starlark/)

should be:

```auto
def main(ctx):
  return {
    "kind": "pipeline",
    "name": "build",
    "steps": [
      {
        "name": "build",
        "image": "alpine",
        "commands": [
            "echo hello world",
        ],
      },
    ],
  }

```

(would do PR but not sure where docs are…)
