Home Database Mysql Tutorial Sphinx-doc学习

Sphinx-doc学习

Jun 07, 2016 pm 04:30 PM
http address study document

文档地址:http:// python hosted.org/an_example_pypi_project/ sphinx .html#bold-italics 粗体和斜体 **bold***italics* 列表 * A thing.* B thing.或者1. Item 1.2. Item 2.3. Item 3.或者- A thing.- B thing.- C thing. headers H1 --- Top of page to

文档地址:http://pythonhosted.org/an_example_pypi_project/sphinx.html#bold-italics

粗体和斜体

**bold***italics*
Copy after login

列表

* A thing.* B thing.或者1. Item 1.2. Item 2.3. Item 3.或者- A thing.- B thing.- C thing.
Copy after login

headers

H1 --- Top of page tops*************************?H2 -- page sections=====================?H3 -- subsections-------------------?H4 -- subsubsections++++++++++++++++++++++++
Copy after login

表格

COMPLEX TABLE:?+------------+------------+-----------+| Header 1?? | Header 2?? | Header 3??|+============+============+===========+| body row 1 | column 2?? | column 3??|+------------+------------+-----------+| body row 2 | Cells may span columns.|+------------+------------+-----------+| body row 3 | Cells may??| - Cells?? |+------------+ span rows. | - contain || body row 4 |????????????| - blocks. |+------------+------------+-----------+?SIMPLE TABLE:?=====??=====??======?? Inputs???? Output------------??------??A??????B????A or B=====??=====??======False??False??FalseTrue?? False??TrueFalse??True?? TrueTrue?? True?? True=====??=====??======
Copy after login

链接
`Docs for this project `_`Table of Contents`_
Copy after login

图片(Images)

Images==================?.. _is_sweaty:.. figure:: .static/abc.jpg?? :align:?? center??? Proof that getting rich is mostly luck.?This picture is_sweaty_.
Copy after login

代码

Here is something I want to talk about::?????def my_fn(foo, bar=True):????????"""A really useful function.?????????Returns None????????"""????????pass????????if a ==b :print "1"?inlines--------------This is inline ``if __name__ == '__main__':``
Copy after login

函数定义
========================

.. function:: format_exception(etype, value, tb[, limit=None])??? Format the exception with a traceback.??? :param etype: exception type?? :param value: exception value?? :param tb: traceback object?? :param limit: maximum number of stack frames to show?? :type limit: integer or None?? :rtype: list of strings
Copy after login

python语法连接
=========================

I really like the :mod:`threading` module which has the:class:`threading.Thread` class.?Here is a link :func:`time.time`.
Copy after login

段落标识
=============================

.. note:: test?.. warning:: test?.. versionadded:: version?.. versionchanged:: version?.. seealso:: test??例子------------------------?This is a statement.?.. warning::??? Never, ever, use this code!?.. versionadded:: 0.0.1?It's okay to use this code.
Copy after login

需要注意的地方:
标题的长度,要小于等于====的长度。
否则会在编译的过程中出现title undline too short.的错误。
如果rst文件中出现了中文的,需要进行特殊处理,才能保证编译不会出现问题。

修改conf.pyimport sysreload(sys)sys.setdefaultencoding('utf8')
Copy after login
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Where can I change my Meituan address? Meituan address modification tutorial! Where can I change my Meituan address? Meituan address modification tutorial! Mar 15, 2024 pm 04:07 PM

Where can I change my Meituan address? Meituan address modification tutorial!

Word document is blank when opening on Windows 11/10 Word document is blank when opening on Windows 11/10 Mar 11, 2024 am 09:34 AM

Word document is blank when opening on Windows 11/10

Let's learn how to input the root number in Word together Let's learn how to input the root number in Word together Mar 19, 2024 pm 08:52 PM

Let's learn how to input the root number in Word together

How to implement HTTP streaming using C++? How to implement HTTP streaming using C++? May 31, 2024 am 11:06 AM

How to implement HTTP streaming using C++?

How to solve HTTP 503 error How to solve HTTP 503 error Mar 12, 2024 pm 03:25 PM

How to solve HTTP 503 error

How to view Golang function documentation in the IDE? How to view Golang function documentation in the IDE? Apr 18, 2024 pm 03:06 PM

How to view Golang function documentation in the IDE?

Understand these 20 Dune analysis dashboards and quickly capture trends on the chain Understand these 20 Dune analysis dashboards and quickly capture trends on the chain Mar 13, 2024 am 09:19 AM

Understand these 20 Dune analysis dashboards and quickly capture trends on the chain

How to change the address for publishing works on Kuaishou? How do I hide my location when posting my work? How to change the address for publishing works on Kuaishou? How do I hide my location when posting my work? Mar 28, 2024 am 11:51 AM

How to change the address for publishing works on Kuaishou? How do I hide my location when posting my work?

See all articles