diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2025-11-18 13:16:10 -0300 |
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2025-11-18 13:16:10 -0300 |
| commit | 17c8a7528259ea25ec2fc260bdc8706ee3f83dec (patch) | |
| tree | 528b3047c269406d361f888f8d55d8b4ce2a4913 | |
| parent | 8ed61913ab911a3463fc3cd7604c5aff0469ffff (diff) | |
| download | bookup-0.3.1.tar.gz bookup-0.3.1.tar.bz2 | |
Fix: apply fixes to the frontmatter citation mechanism0.3.1
| -rw-r--r-- | ChangeLog.md | 4 | ||||
| -rwxr-xr-x | bin/archive | 4 | ||||
| -rwxr-xr-x | bin/compile-book | 9 | ||||
| -rw-r--r-- | structure/book/en/00-preamble.md | 2 | ||||
| -rw-r--r-- | structure/book/pt-br/00-preamble.md | 2 |
5 files changed, 15 insertions, 6 deletions
diff --git a/ChangeLog.md b/ChangeLog.md index f2269ee..b14e82b 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,9 @@ # ChangeLog +## v0.3.1 - 2025-11-18 + +* [x] Apply fixes to the frontmatter citation mechanism. + ## v0.3.0 - 2025-11-18 * [x] Citation: diff --git a/bin/archive b/bin/archive index ca0b610..d79d411 100755 --- a/bin/archive +++ b/bin/archive @@ -52,10 +52,6 @@ fi # Check if the revision is a tag if git tag | grep -q "^${REVISION}$"; then - # Save info on the latest tagged release - mkdir -p $METADATA - echo $REVISION > $LATEST - # Check if archive does not exists if [ ! -d "$ARCHIVE/$REVISION" ]; then echo "# $BASENAME: archiving $REVISION..." diff --git a/bin/compile-book b/bin/compile-book index e68a36d..eaf7a11 100755 --- a/bin/compile-book +++ b/bin/compile-book @@ -12,6 +12,8 @@ OUTPUT="${1:-book}" REVISION="$2" DATE="$3" LANG="`grep lang _common.yml _book.yml _notes.yml 2> /dev/null | tail -1 | cut -d : -f 3 | sed -e 's/"//g' -e 's/ //g'`" +METADATA=".metadata" +LATEST="$METADATA/latest.txt" # Set the language if [ -z "$LANG" ]; then @@ -74,3 +76,10 @@ fi # Symlink as a Bookdown source ln -sf $OUTPUT.md $OUTPUT.Rmd + +# Check if the revision is a tag +if git tag | grep -q "^${REVISION}$"; then + # Save info on the latest tagged release + mkdir -p $METADATA + echo $REVISION > $LATEST +fi diff --git a/structure/book/en/00-preamble.md b/structure/book/en/00-preamble.md index 5bb4c13..6d26c75 100644 --- a/structure/book/en/00-preamble.md +++ b/structure/book/en/00-preamble.md @@ -47,7 +47,7 @@ if (knitr::is_html_output()) { author_cite = paste(toupper(author[2]), author[1], sep=', ') version = readLines('.metadata/latest.txt') if (version != '0.0.0') { - archive = version + archive = paste('archive', version, sep='/') } else { archive = '' diff --git a/structure/book/pt-br/00-preamble.md b/structure/book/pt-br/00-preamble.md index 8602f0b..6bb4132 100644 --- a/structure/book/pt-br/00-preamble.md +++ b/structure/book/pt-br/00-preamble.md @@ -48,7 +48,7 @@ if (knitr::is_html_output()) { author_cite = paste(toupper(author[2]), author[1], sep=', ') version = readLines('.metadata/latest.txt') if (version != '0.0.0') { - archive = version + archive = paste('archive', version, sep='/') } else { archive = '' |
