> For the complete documentation index, see [llms.txt](https://v-community.gitbook.io/v-by-example/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v-community.gitbook.io/v-by-example/docs_style_guide.md).

# Documentation Style Guide

These are the guidelines for writing documentation.

## Titles

* Each page must have a single `#`-level title at the top.
* Chapters in the same page must have `##`-level titles.
* Sub-chapters need to increase the number of `#` in the title according to

  their nesting depth.
* All words in the page's title must be capitalized, except for conjunctions

  like "of" and "and" .
* Only the first word of a chapter title must be capitalized.

```
# Arrays

...

## How to declare an array

...

## Create an empty array

...
```

## Print Width

To be easy to read when editing the markdown code, if the sentence is too long, divide it down. The recommended column length limit is 80.

## Code Output

To create output from code, there are two rules:

* If the output is short then put it as a comment
* If the output is quite long (column) then write it in a separate section after the code section.

## Indentation

Indentation must use spaces and the tab size must be 4.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://v-community.gitbook.io/v-by-example/docs_style_guide.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
