mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Scrape RPi Image docs using ~ not : (and recurse into subdirs)
This commit is contained in:
parent
d5fd98b08e
commit
e34d84f712
1 changed files with 4 additions and 3 deletions
|
@ -69,9 +69,10 @@ sed -i "s|https://magazines-attachments.raspberrypi.org/books/full_pdfs/000/000/
|
|||
sed -i "s|https://.*archive.org/15/items/other_doc/other_doc.pdf|docs/Raspberry_Pi_User_Guide_v4.pdf|g" $DESTPATH/index.html
|
||||
sed -i "s|https://github.com/iiab/iiab/blob/master/roles/lokole/Lokole-IIAB_Users_Manual.pdf|docs/Lokole-IIAB_Users_Manual.pdf|g" $DESTPATH/index.html
|
||||
|
||||
# ...and within main subpages
|
||||
for f in $DESTPATH/*.html; do
|
||||
sed -i -r "s|https://github.com/iiab/iiab/wiki/([-.A-Za-z0-9]*)|\1.html|g" $f
|
||||
# ...and within subpages
|
||||
for f in $(find $DESTPATH -name "*.html"); do # Recursive (even if not yet nec, as of 2023-01-11)
|
||||
#for f in $DESTPATH/*.html; do # Non-recursive (omits subdirs)
|
||||
sed -i -r "s|https://github.com/iiab/iiab/wiki/([-.~A-Za-z0-9]*)|\1.html|g" $f
|
||||
|
||||
sed -i "s|https://github.com/iiab/iiab-admin-console/tree/master/docs|admin-console|g" $f
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue