From 7d3e62087fbbad2dc10d59359f19a42180a19391 Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Thu, 8 Sep 2022 13:37:41 +0530 Subject: docs: Use name in Last Updated | Cleanup | Improve insert mode perf Fix highlight not refreshing for last line when tailwind mode is activated --- scripts/gen_docs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3-70-g09d2