| 1 |
.. |
| 2 |
Copyright (c) 2021 Pradyun Gedam |
| 3 |
Licensed under Creative Commons Attribution-ShareAlike 4.0 International License |
| 4 |
SPDX-License-Identifier: CC-BY-SA-4.0 |
| 5 |
|
| 6 |
=========== |
| 7 |
Admonitions |
| 8 |
=========== |
| 9 |
|
| 10 |
Sphinx provides several different types of admonitions. |
| 11 |
|
| 12 |
``topic`` |
| 13 |
========= |
| 14 |
|
| 15 |
.. topic:: This is a topic. |
| 16 |
|
| 17 |
This is what admonitions are a special case of, according to the docutils |
| 18 |
documentation. |
| 19 |
|
| 20 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |
| 21 |
|
| 22 |
``admonition`` |
| 23 |
============== |
| 24 |
|
| 25 |
.. admonition:: The one with the custom titles |
| 26 |
|
| 27 |
It's got a certain charm to it. |
| 28 |
|
| 29 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |
| 30 |
|
| 31 |
``attention`` |
| 32 |
============= |
| 33 |
|
| 34 |
.. attention:: |
| 35 |
|
| 36 |
Climate change is real. |
| 37 |
|
| 38 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |
| 39 |
|
| 40 |
``caution`` |
| 41 |
=========== |
| 42 |
|
| 43 |
.. caution:: |
| 44 |
|
| 45 |
Cliff ahead: Don't drive off it. |
| 46 |
|
| 47 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |
| 48 |
|
| 49 |
``danger`` |
| 50 |
========== |
| 51 |
|
| 52 |
.. danger:: |
| 53 |
|
| 54 |
Mad scientist at work! |
| 55 |
|
| 56 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |
| 57 |
|
| 58 |
``error`` |
| 59 |
========= |
| 60 |
|
| 61 |
.. error:: |
| 62 |
|
| 63 |
Does not compute. |
| 64 |
|
| 65 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |
| 66 |
|
| 67 |
``hint`` |
| 68 |
======== |
| 69 |
|
| 70 |
.. hint:: |
| 71 |
|
| 72 |
Insulators insulate, until they are subject to ______ voltage. |
| 73 |
|
| 74 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |
| 75 |
|
| 76 |
``important`` |
| 77 |
============= |
| 78 |
|
| 79 |
.. important:: |
| 80 |
|
| 81 |
Tech is not neutral, nor is it apolitical. |
| 82 |
|
| 83 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |
| 84 |
|
| 85 |
``note`` |
| 86 |
======== |
| 87 |
|
| 88 |
.. note:: |
| 89 |
|
| 90 |
This is a note. |
| 91 |
|
| 92 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |
| 93 |
|
| 94 |
``seealso`` |
| 95 |
=========== |
| 96 |
|
| 97 |
.. seealso:: |
| 98 |
|
| 99 |
Other relevant information. |
| 100 |
|
| 101 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |
| 102 |
|
| 103 |
``tip`` |
| 104 |
======= |
| 105 |
|
| 106 |
.. tip:: |
| 107 |
|
| 108 |
25% if the service is good. |
| 109 |
|
| 110 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |
| 111 |
|
| 112 |
``todo`` |
| 113 |
======== |
| 114 |
|
| 115 |
.. todo:: |
| 116 |
|
| 117 |
This needs the ``sphinx.ext.todo`` extension. |
| 118 |
|
| 119 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |
| 120 |
|
| 121 |
``warning`` |
| 122 |
=========== |
| 123 |
|
| 124 |
.. warning:: |
| 125 |
|
| 126 |
Reader discretion is strongly advised. |
| 127 |
|
| 128 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |
| 129 |
|
| 130 |
``versionadded`` |
| 131 |
================ |
| 132 |
|
| 133 |
.. versionadded:: v0.1.1 |
| 134 |
|
| 135 |
Here's a version added message. |
| 136 |
|
| 137 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |
| 138 |
|
| 139 |
``versionchanged`` |
| 140 |
================== |
| 141 |
|
| 142 |
.. versionchanged:: v0.1.1 |
| 143 |
|
| 144 |
Here's a version changed message. |
| 145 |
|
| 146 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |
| 147 |
|
| 148 |
``deprecated`` |
| 149 |
============== |
| 150 |
|
| 151 |
.. deprecated:: v0.1.1 |
| 152 |
|
| 153 |
Here's a deprecation message. |
| 154 |
|
| 155 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |
| 156 |
|
| 157 |
|
| 158 |
``versionremoved`` |
| 159 |
================== |
| 160 |
|
| 161 |
.. versionremoved:: v0.1.1 |
| 162 |
|
| 163 |
Here's a version removed message. |
| 164 |
|
| 165 |
We also support *italic*, **bold**, ``code``, `links <https://www.sphinx-doc.org/en/master/>`_, and more. |