aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/cheat/sphinxdoc
blob: 3e081d7194bac913539f75d3dbb0e6d3ffe1cc02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Add a strike html component

In conf.py file:

```
rst_prolog = """
.. role:: strike
"""
```

Extend the layout theme template `layout.html` with:

```
{% extends "!layout.html" %}
{% set css_files = css_files + ["_static/style.css"] %}
```

In the `style.css`:

```
.strike {
  text-decoration: line-through;
}
```