Sample
V tejte sekcii su zozbrazene veskere ukazky pouzitia.
Code block
Ukazka blokov pomocou direktivy .. code-block:: **[language]**
.
YAML
# Configuration in YAML
XML
<!-- Configuration in XML -->
PHP
// Configuration in PHP
HTML+PHP
<! Test pre HTML !>
CONSOLE
$ pip install lumache
BASH
# common.sh
pip install my-dependency==1.2.3
PYTHON
from celery.contrib import rdb; rdb.set_trace()
INI
# Configuration for nova-rootwrap
# This file should be owned by (and only-writeable by) the root user
[DEFAULT]
# List of directories to load filter definitions from (separated by ',').
Zaroven je mozne aj pouzitie alternativnej direktivy .. code:: **[language]**
.
import sphinx_rtd_theme
extensions = [
...
'sphinx_rtd_theme',
]
html_theme = "sphinx_rtd_theme"
Code block s cislovanymi riadkami s podfarbenim a caption …
1def some_function():
2 interesting = False
3 print 'This line is highlighted.'
4 print 'This one is not...'
5 print '...but this one is.'
GUI label
:guilabel:`Some action`
Ina ukazka pre block
:guilabel:`Some action`
Some action
Centered text
You can create a statement with centered text with .. centered::
This is centered text!
Admonitions
Výstraha
Directives at large.
Upozornenie
Don’t take any wooden nickels.
Nebezpečné
Mad scientist at work!
Chyba
Does not compute.
Rada
It’s bigger than a bread box.
Dôležité
Wash behind your ears.
Clean up your room.
Including the closet.
The bathroom too.
Take the trash out of the bathroom.
Clean the sink.
Call your mother.
Back up your data.
Poznámka
This is a note. Equations within a note: \(G_{\mu\nu} = 8 \pi G (T_{\mu\nu} + \rho_\Lambda g_{\mu\nu})\).
Tip
15% if the service is good.
Example |
---|
Thing1 |
Thing2 |
Thing3 |
Varovanie
Strong prose may provoke extreme mental exertion. Reader discretion is strongly advised.
And, by the way…
You can make up your own admonition too.
Download Links
Target
Implicitny odkaz na nadpis bez stitka Glossary
Blocks
Literal Blocks
Literal blocks are indicated with a double-colon („::“) at the end of
the preceding paragraph (over there -->
). They can be indented
if literal_block:
text = 'is left as-is'
spaces_and_linebreaks = 'are preserved'
markup_processing = None
Or they can be quoted without indentation:: >> Great idea! > > Why didn’t I think of that?