Rename issues from #0001 to just #1

This commit is contained in:
Solene Rapenne 2021-09-27 12:10:42 +02:00
parent 0e98b5935c
commit 52e42b85fc
15 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ Everything related to writing a new issue is in `issues`.
## New issue
- Copy `_template` directory under a name like `issue-XXXX` with `XXXX` being the issue number.
- Copy `_template` directory under a name like `issue-X` with `X` being the new issue number.
- Delete the symlink `current` and make it with the new issue as a target.
## Edit an issue

View File

@ -1,5 +1,5 @@
all:
find . -maxdepth 1 -type d -name 'issue-*' -exec ./make_issue.sh {} \;
ls | grep issue- | sort -n | xargs ./make_issue.sh
./make_issue.sh _index ../public/index.html
clean:

View File

@ -1,4 +1,4 @@
<h2>Issues published</h2>
<ul>
<li>Issue #0001 <a href="">[html]</a> <a href="">[PDF]</a>
<li>Issue #1 <a href="">[html]</a> <a href="">[PDF]</a>
</ul>

View File

@ -1 +1 @@
issue-0001
issue-1

View File

@ -33,7 +33,7 @@ fi
cat _common/header $DIR/*html _common/footer > $DESTFILENAME
# replace with issue number
issue=$(echo -n "$1" | egrep -o "[0-9]+")
issue="${1#issue-}"
sed -i "s/__ISSUE__/${issue}/g" $DESTFILENAME
# replace date