We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48bf5fd commit 578ac2cCopy full SHA for 578ac2c
2 files changed
tools/publish.sh
@@ -29,8 +29,6 @@ check_status() {
29
update_files() {
30
bash _scripts/sh/create_pages.sh
31
bash _scripts/sh/dump_lastmod.sh
32
-
33
- find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
34
}
35
36
tools/pv.sh
@@ -16,10 +16,11 @@
16
set -eu
17
18
WORK_DIR=$(dirname $(dirname $(realpath "$0")))
19
-URL_FILE=${WORK_DIR}/assets/data/proxy.json
20
-PV_CACHE=${WORK_DIR}/assets/data/pageviews.json
+URL_FILE=${WORK_DIR}/_config.yml
+PV_CACHE=${WORK_DIR}/assets/js/data/pageviews.json
21
22
23
-PROXY_URL=$(jq -r '.proxyUrl' $URL_FILE)
+PROXY_URL=$(grep "proxy_endpoint:" $URL_FILE | sed "s/.*: '//g;s/'.*//")
24
25
wget $PROXY_URL -O $PV_CACHE
+
26
+echo "ls $PV_CACHE"
0 commit comments