Cheatsheet
Contents
Cheatsheet#
See also
Admonition#
Note
You should note that the title will be automatically capitalized.
Important
This is an admonition box without a title.
Tip
This is an admonition box without a title.
Warning
This is an admonition box without a title.
Danger
Don't try this at home.
See also
This is a see also section.
Deprecated since version 13: This is an admonition box without a title.
Links#
Magic link (bare URLs via linkify
Sphinx extension)
Link to a file in the documentation.
Link to an arbitrary target#
This requires setting up a label above a heading, then using MyST syntax to create a link to that label.
Click the reference Link to an arbitrary target to jump to the target.
Code#
1 /**
2 * Render method.
3 * @method render
4 * @returns {string} Markup for the component.
5 */
6 render() {
7 return (
8 this.props.messages && (
9 <Container className="messages">
10 {map(this.props.messages, (message, index) => (
11 <Message
12 key={message.id}
13 value={index}
14 onDismiss={this.onDismiss}
15 error={message.level === 'error'}
16 success={message.level === 'success'}
17 warning={message.level === 'warning'}
18 info={message.level === 'info'}
19 header={message.title}
20 content={message.body}
21 />
22 ))}
23 </Container>
24 )
25 );
26 }
27);
def somefunction:
"""mydocstring"""
pass