aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAkianonymus <anonymus.aki@gmail.com>2022-09-08 13:37:41 +0530
committerAkianonymus <anonymus.aki@gmail.com>2022-09-08 15:37:05 +0530
commit7d3e62087fbbad2dc10d59359f19a42180a19391 (patch)
tree8c03381d06b75b4692fbe6e2d8c1cebc91196797 /scripts
parenttailwind: Use true for normal mode (diff)
docs: Use name in Last Updated | Cleanup | Improve insert mode perf
Fix highlight not refreshing for last line when tailwind mode is activated
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gen_docs.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gen_docs.sh b/scripts/gen_docs.sh
index 3363d42..2be3ec6 100644
--- a/scripts/gen_docs.sh
+++ b/scripts/gen_docs.sh
@@ -15,11 +15,11 @@ create_vim_doc() (
fi
if [[ -d "${target}" ]]; then
- ldoc -p "${project_name}" -t "${project_name} Docs" -u "${target}" -l "${TMP_DIR}" -d "${TMP_DIR}" || cleanup
+ ldoc -p "${project_name}" -t "${project_name} Docs" -u "${target}" -l "${TMP_DIR}" -d "${TMP_DIR}" --date "- $(date +'%B')" || cleanup
cd "${TMP_DIR}/modules" || exit 1
cat "${project_name}".html "${project_name}"*.*.html >"${project_name}".txt || cleanup
elif [[ -f "${target}" ]]; then
- ldoc -p "${project_name}" -t "${project_name} Docs" -u "${target}" -l "${TMP_DIR}" -d "${TMP_DIR}" || cleanup
+ ldoc -p "${project_name}" -t "${project_name} Docs" -u "${target}" -l "${TMP_DIR}" -d "${TMP_DIR}" --date "- $(date +'%B')" || cleanup
cd "${TMP_DIR}" || exit 1
cat index.html >"${project_name}".txt || cleanup
else
@@ -55,7 +55,7 @@ main() {
project_name="colorizer"
if command -v ldoc 1>/dev/null; then
# html docs
- ldoc -f discount -p "${project_name}" -t "${project_name} Docs" -u lua "${@}" -s doc || cleanup
+ ldoc -f discount -p "${project_name}" -t "${project_name} Docs" -u lua "${@}" -s doc --date "- $(date +'%B')" || cleanup
# vim docs
create_vim_doc "${project_name}" lua doc/ldoc_vim.ltp || cleanup