-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path___render_deploy.sh
67 lines (48 loc) · 2.3 KB
/
___render_deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# empty docs/ folder
rm -rf docs/cv_ita.pdf docs/cv.pdf
# render the project
quarto render
#=========================================== (Push to Github repo) ================================================#
# check status
git status
# Add changes to git Index.
git add -A # ALL
git add -u # tracked
git add images/*
git commit -m "LONG ITA E ENG"
# git commit -m "revision INSTALL + cleanup slides 2" -m "01_... + 00_carico_tab-contesto.qmd "
# Push local source (master branch) to remote reference (origin)
#cd .
git push origin master
#=========================================== tutto insieme ================================================#
git add -u && git commit -m "small correct" && git push origin master
#=========================================== COPIO FILE SU WEBSITE DIR ================================================#
#!/bin/zsh
# NB Absolute paths begin with / !!!!!!
# Source directory (where the .pdf is located)
SOURCE_DIR="/Users/luisamimmi/Github/cv_typst/docs"
# Destination directory (where the .pdf will be copied to)
DEST_DIR="/Users/luisamimmi/Github/luisamimmi/cv"
# File name to copy
FILE_NAME="cv.pdf"
# Copy the file
cp "$SOURCE_DIR/$FILE_NAME" "$DEST_DIR/"
# List the files in the destination directory
# ls -l "$DEST_DIR" | grep ".pdf"
# ls -l "$DEST_DIR" | grep ".pdf" | awk '{print $6, $7, $8, $9}'
# `ls -l` lists the files in long format (including last modification)
# `awk '{print $6, $7, $8, $9}` extracts the mod date and time ($6, $7, $8 )
# and the file name ($9)
ls -l "$DEST_DIR" | grep ".pdf" | awk -v dir="$DEST_DIR" '{print dir, "->", $9 " (last saved on", $6, $7, $8, ")"}'
#===================================== Tracked by mistake in git =====================================#
git rm --cached _freeze/cv/execute-results/typ.json
#=========================================== (QUARTO EXTENSIONS) ======================================#
# ====== Font Awesome Extension for Quarto
# https://github.com/quarto-ext/fontawesome https://fontawesome.com/search?m=free
quarto add quarto-ext/fontawesome
# ====== icons extensions
quarto add mcanouil/quarto-iconify
# https://github.com/shafayetShafee/bsicons https://icons.getbootstrap.com/
quarto install extension shafayetShafee/bsicons
# ====== Multiple bibliographies
quarto install extension pandoc-ext/section-bibliographies