parent
0e98b5935c
commit
52e42b85fc
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1 +1 @@
|
|||
issue-0001
|
||||
issue-1
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue