From 9443eb4006a06bc3d9a2ac3d5339ac394d2c5c6e Mon Sep 17 00:00:00 2001 From: neodarz Date: Sun, 4 Oct 2020 22:25:33 +0200 Subject: Update some cheat --- dotfiles/cheat/sphinxdoc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 dotfiles/cheat/sphinxdoc (limited to 'dotfiles/cheat/sphinxdoc') 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; +} +``` -- cgit v1.2.1