# # ********************* # "$d_bin"'webLocal/webLocal library.sh' - # library of handy bash functions for webSite maintenance # __+-----+ # __Setup # __ [func, process]*[Start, Ender] see : "$d_bin""standard header.sh" # +-----+ # Archives # dWebWork_archiveLocal #() local backups of key d_webWork files # +-----+ # htmlHeadings_to_TblOfContents # htmlHeadings_to_TblOfContents #(pHtml) create a TblOfContents from headings in html file # htmlHeadings_to_TblOfContents_printf #(pHtml) unsuccessful replace echo with printf # +-----+ # processWebSite_find: [pHtmTypLL, pLnkAllL, pLnkTypLL, pLnk[Local, BmkPth]LGodBadLL]] # __21Jan2026 HUGE issue!!!: pExclHtmTyp cuts out files that will [hang up, freeze] # __ pinnL_pStrtEnddP_get_pPinQStr_pStrEncl_pStrEnclSortU_test # __ pHtmTypAllL_pLnkPLHrfImg_get_pHtmLnkPL_pLnkTypAllL_pLnkTypAllSortUL # __ must iteratively, track down offending [dir, pth]s, and add to pExclHtmTyp # dWeb_get_pHtmTypLL #() find Howell's pHtmTypLL, some with local links # pHtmTypAllL_pLnkPLHrfImg_get_pHtmLnkPL_pLnkTypAllL_pLnkTypAllSortUL #(pHtmNlkNwpWebL...etc) # pLnkTypAllSortUL_get_pLnkTypLL #(noArgs just enVars) sort links by type # pLnkBmkPthL_pLnkHtpBilL_pLnkHtsBilL_appendSort_pLnkLocL #() http[s]://www.BillHowell.ca/ -> /home/bill/web/ # pLnkLocL_get_pLnkGodL_pLnkBadL #() check links, split into [good, bad] # processWebSite_find #() initiate Howell's d_web stuff # +----------+ # processWww_fix: convert all http[s]://www.BillHowell.ca -> /home/bill/web, # pLnkNlkNwpWebL_check_nLnkBad #() check the number of bad links # pHtpWwwBilPL_replace_strHtpHom #() replace links http://www.BillHowell.ca/ -> /home/bill/web/ # pNlkWwwL_rename_pHtmNwpL #() rename files with links pNlkWwwL -> pHtmNwpL # processWww_fix #() [routine, special] cleanup of non-Local links to my webSite # +----------+ # processWebSite_fix: # pLnkPLBadBad_get_pLnkPLBadGod_pLnkBadDunnoPL #() split linkPLs into [good, unknown] # povrLnkBadPL_pLnkPLBadGod_replace #(pPovrLnkBadPL, pLnkPLBadGod) replace links # processWebSite_fix #() initiate link fixes (manual preparation of fixL) # __+----------+ # __links: other functions : no code yet, just old # __diffs: pHtmNlkNwpWebL [get, change, check] * [internal, local] * [pth, lnk, etc] # pLnkVerifyL_get_pLnkImgL #() generate pLnkImgL of links to images, not created yet # +-----+ # class-related # pHtmWebL_get_pClassL #() extract a list of classes from all my html files # pWebPageL_notIn_pHtmlClassAllL #() not created- add Path notIn Class, rm Class notIn Path () # pHtmWebL_put_pClassPL #(pHtmlL pStrPL) replace <:code:> phrases in pNlkNwpWebL # pOvrClassL_put_pHead_sub #(pClassL pHeadTplt) replace header, eg webPages # pOvrClassL_put_pHead #() replace webPages headers, pHtmlClass[All_ then TrNN]L # __[title, class] is inserted into a modified copy of pHead # __[modified header, old povr] are catenated to replacement povr