SquidDev / illuaminate

Very WIP static analysis for Lua
https://squiddev.cc/illuaminate/
BSD 3-Clause "New" or "Revised" License
49 stars 2 forks source link

Strikethrough deprecated definitions #17

Closed Lemmmy closed 4 years ago

Lemmmy commented 4 years ago

Applies a strikethrough style to deprecated definitions in the module definition list and on the definition's item. Also adds the text 'deprecated' in the list:

Requires this CSS patch (for CC:Tweaked):

diff --git a/doc/styles.css b/doc/styles.css
index b765c33a..cd884a60 100644
--- a/doc/styles.css
+++ b/doc/styles.css
@@ -128,6 +128,11 @@ table.definition-list th {
     text-align: right;
 }

+/* Deprecated definitions */
+table.definition-list tr.definition-deprecated th {
+    text-decoration: line-through;
+}
+
 table.definition-list td { width: 100%; }

 dl.definition dt {
@@ -142,6 +147,10 @@ dl.definition dt .definition-name {
     flex-grow: 1;
 }

+/* Deprecated definitions */
+dl.definition dt .definition-name.definition-deprecated {
+    text-decoration: line-through;
+}

 dl.definition dd {
     padding-bottom: 1em;
SquidDev commented 4 years ago

Thanks!