Decrease opacity of non-applicable documentation items (#25)

This commit is contained in:
Hugo Locurcio 2023-02-01 12:20:21 +01:00 committed by GitHub
parent 3dcb21558a
commit 8cbe0fb3e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -3,3 +3,6 @@
# Automatically generated by `build.sh`
content/_index.md
# Lockfile generated by Hugo
.hugo_build.lock

View File

@ -38,7 +38,7 @@ EOF
python3 "$GODOT_TMP_DIR/doc/tools/doc_status.py" -u "$GODOT_TMP_DIR/doc/classes" "$GODOT_TMP_DIR"/modules/*/doc_classes | tail -n +2 >> content/_index.md
# Fade out `0/0` completion ratios as they can't be completed (there's nothing to document).
sed -i 's:0/0:<span style="opacity\: 0.5">0/0</span>:g' content/_index.md
sed -i 's:0/0:<span style="opacity\: 0.3">0/0</span>:g' content/_index.md
# Add classes for completion percentages to style them for easier visual grepping.
# Incomplete percentages (0-99%).