# pub.leaflet.pages.linearDocument

- Kind: object
- Authority: pages.leaflet.pub
- Lexicon: 1
- Published by [leaflet.pub](https://lexicon.garden/identity/did:plc:btxrwcaeyodrap5mnjw2fvmz), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:btxrwcaeyodrap5mnjw2fvmz/pub.leaflet.pages.linearDocument)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:btxrwcaeyodrap5mnjw2fvmz/pub.leaflet.pages.linearDocument/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:btxrwcaeyodrap5mnjw2fvmz/pub.leaflet.pages.linearDocument/analytics)

## Object (`pub.leaflet.pages.linearDocument`)

Type: object

### Properties

- `blocks` (array, required)
  - `items` (ref)
    - Reference: `#block`
- `id` (string)
- `theme` (ref)
  - Reference: `pub.leaflet.theme.page`

## #block (`pub.leaflet.pages.linearDocument#block`)

Type: object

### Properties

- `alignment` (string)
  - Constraints: knownValues: #textAlignLeft | #textAlignCenter | #textAlignRight | #textAlignJustify
- `block` (union, required)
  - One of: `pub.leaflet.blocks.iframe`, `pub.leaflet.blocks.html`, `pub.leaflet.blocks.text`, `pub.leaflet.blocks.blockquote`, `pub.leaflet.blocks.header`, `pub.leaflet.blocks.image`, `pub.leaflet.blocks.imageGallery`, `pub.leaflet.blocks.unorderedList`, `pub.leaflet.blocks.orderedList`, `pub.leaflet.blocks.website`, `pub.leaflet.blocks.math`, `pub.leaflet.blocks.code`, `pub.leaflet.blocks.horizontalRule`, `pub.leaflet.blocks.bskyPost`, `pub.leaflet.blocks.standardSitePost`, `pub.leaflet.blocks.standardSitePublication`, `pub.leaflet.blocks.page`, `pub.leaflet.blocks.embeddedCanvas`, `pub.leaflet.blocks.poll`, `pub.leaflet.blocks.button`, `pub.leaflet.blocks.postsList`, `pub.leaflet.blocks.signup`, `pub.leaflet.blocks.recommendedPubs`, `pub.leaflet.blocks.reply`, `pub.leaflet.blocks.questions`, `pub.leaflet.blocks.membersOnlyDelimiter`, `pub.leaflet.blocks.postHeader`, `pub.leaflet.blocks.drawing`

## #position (`pub.leaflet.pages.linearDocument#position`)

Type: object

### Properties

- `block` (array, required)
  - `items` (integer)
- `offset` (integer, required)

## #quote (`pub.leaflet.pages.linearDocument#quote`)

Type: object

### Properties

- `end` (ref, required)
  - Reference: `#position`
- `start` (ref, required)
  - Reference: `#position`

## #textAlignCenter (`pub.leaflet.pages.linearDocument#textAlignCenter`)

Type: token

## #textAlignJustify (`pub.leaflet.pages.linearDocument#textAlignJustify`)

Type: token

## #textAlignLeft (`pub.leaflet.pages.linearDocument#textAlignLeft`)

Type: token

## #textAlignRight (`pub.leaflet.pages.linearDocument#textAlignRight`)

Type: token

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "block": {
      "properties": {
        "alignment": {
          "knownValues": [
            "#textAlignLeft",
            "#textAlignCenter",
            "#textAlignRight",
            "#textAlignJustify"
          ],
          "type": "string"
        },
        "block": {
          "refs": [
            "pub.leaflet.blocks.iframe",
            "pub.leaflet.blocks.html",
            "pub.leaflet.blocks.text",
            "pub.leaflet.blocks.blockquote",
            "pub.leaflet.blocks.header",
            "pub.leaflet.blocks.image",
            "pub.leaflet.blocks.imageGallery",
            "pub.leaflet.blocks.unorderedList",
            "pub.leaflet.blocks.orderedList",
            "pub.leaflet.blocks.website",
            "pub.leaflet.blocks.math",
            "pub.leaflet.blocks.code",
            "pub.leaflet.blocks.horizontalRule",
            "pub.leaflet.blocks.bskyPost",
            "pub.leaflet.blocks.standardSitePost",
            "pub.leaflet.blocks.standardSitePublication",
            "pub.leaflet.blocks.page",
            "pub.leaflet.blocks.embeddedCanvas",
            "pub.leaflet.blocks.poll",
            "pub.leaflet.blocks.button",
            "pub.leaflet.blocks.postsList",
            "pub.leaflet.blocks.signup",
            "pub.leaflet.blocks.recommendedPubs",
            "pub.leaflet.blocks.reply",
            "pub.leaflet.blocks.questions",
            "pub.leaflet.blocks.membersOnlyDelimiter",
            "pub.leaflet.blocks.postHeader",
            "pub.leaflet.blocks.drawing"
          ],
          "type": "union"
        }
      },
      "required": [
        "block"
      ],
      "type": "object"
    },
    "main": {
      "properties": {
        "blocks": {
          "items": {
            "ref": "#block",
            "type": "ref"
          },
          "type": "array"
        },
        "id": {
          "type": "string"
        },
        "theme": {
          "ref": "pub.leaflet.theme.page",
          "type": "ref"
        }
      },
      "required": [
        "blocks"
      ],
      "type": "object"
    },
    "position": {
      "properties": {
        "block": {
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        "offset": {
          "type": "integer"
        }
      },
      "required": [
        "block",
        "offset"
      ],
      "type": "object"
    },
    "quote": {
      "properties": {
        "end": {
          "ref": "#position",
          "type": "ref"
        },
        "start": {
          "ref": "#position",
          "type": "ref"
        }
      },
      "required": [
        "start",
        "end"
      ],
      "type": "object"
    },
    "textAlignCenter": {
      "type": "token"
    },
    "textAlignJustify": {
      "type": "token"
    },
    "textAlignLeft": {
      "type": "token"
    },
    "textAlignRight": {
      "type": "token"
    }
  },
  "id": "pub.leaflet.pages.linearDocument",
  "lexicon": 1
}
```
