# sphinx图片

之前我嵌入图片都是使用 `image` 指令：

```
.. image:: ../_static/kernel/clos_cbm_example.png
```

不过，在文档中，其实会引用图片，所以改为使用 `figure` 指令，可以添加更多内容:

```
.. figure:: ../_static/kernel/config_l3_cbms_per_clos.png
   :scale: 50%

   Figure 1: 为每个服务逻辑分类 (logical class of service, CLOS) 配置L3容量位掩码 (L3 capacity bitmasks)

   通过 MSR的  ``IA32_L3_MASK_n`` 可以配置CLOS的L3容量位掩码，这里 ``n`` 表示 CLOS 编号
```

## 参考

* [Figure](http://docutils.sourceforge.net/docs/ref/rst/directives.html#figure)
* [Reference Figures in reStructuredText via Figure Numbers using :numref:](https://stackoverflow.com/questions/44247102/reference-figures-in-restructuredtext-via-figure-numbers-using-numref)


---

# Agent Instructions: 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:

```
GET https://huataihuang.gitbook.io/cloud-atlas-draft/develop/doc/sphinx/sphinx_with_image.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
