aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/cheat/sphinxdoc
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2020-10-04 22:25:33 +0200
committerneodarz <neodarz@neodarz.net>2020-10-04 22:25:33 +0200
commit9443eb4006a06bc3d9a2ac3d5339ac394d2c5c6e (patch)
tree864670655f9bd3d521410dd24fa14b002ab3c81c /dotfiles/cheat/sphinxdoc
parent8b4e51ffa979c10e37d7ba3d7957184b751c2db7 (diff)
downloaddotfiles-9443eb4006a06bc3d9a2ac3d5339ac394d2c5c6e.tar.xz
dotfiles-9443eb4006a06bc3d9a2ac3d5339ac394d2c5c6e.zip
Update some cheat
Diffstat (limited to 'dotfiles/cheat/sphinxdoc')
-rw-r--r--dotfiles/cheat/sphinxdoc24
1 files changed, 24 insertions, 0 deletions
diff --git a/dotfiles/cheat/sphinxdoc b/dotfiles/cheat/sphinxdoc
new file mode 100644
index 0000000..3e081d7
--- /dev/null
+++ b/dotfiles/cheat/sphinxdoc
@@ -0,0 +1,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;
+}
+```