Skip to content

Commit

Permalink
move timeline/relplot.svg to images
Browse files Browse the repository at this point in the history
  • Loading branch information
xieby1 committed Nov 7, 2023
1 parent f25538a commit 3367c6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ define \n


endef
ALL_GEN = src/timeline.svg src/relplot.svg \
ALL_GEN = src/images/timeline.svg src/images/relplot.svg \
test/web/test.js mdbook
all: ${ALL_GEN}

Expand All @@ -12,7 +12,7 @@ mdbook:
test/web/test.js: test/web/test.ts
tsc --target es6 $<

CMDL_GEN = data/timeline.csv test/web/runXonY.json src/relplot.svg
CMDL_GEN = data/timeline.csv test/web/runXonY.json src/images/relplot.svg
${CMDL_GEN} &: src/lib.py src/data.py src/cmdl.py
src/cmdl.py \
-c $(word 1,${CMDL_GEN}) \
Expand All @@ -23,7 +23,7 @@ ${CMDL_GEN} &: src/lib.py src/data.py src/cmdl.py
# which will causing cannot resizing by css
# add one to generated svg
# https://stackoverflow.com/questions/644896/how-do-i-scale-a-stubborn-svg-embedded-with-the-object-tag
src/timeline.svg: data/timeline.csv data/gnuclad.conf
src/images/timeline.svg: data/timeline.csv data/gnuclad.conf
gnuclad $< $@ $(word 2,$^)
identify -format 'viewBox="0 0 %w %h"\n' $@ | sed -i '/height/r /dev/stdin' $@

Expand Down
4 changes: 2 additions & 2 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

## Timeline

<object data="timeline.svg" width="100%"></object>
<object data="./images/timeline.svg" width="100%"></object>

## Host-guest Relplot

<object data="relplot.svg" style="width: 100%;"></object>
<object data="./images/relplot.svg" style="width: 100%;"></object>

0 comments on commit 3367c6d

Please sign in to comment.