Merge pull request #3053 from bookwyrm-social/develop

Release 0.7.0
This commit is contained in:
Jascha Ezra Urbach 2023-10-21 18:30:45 +02:00 committed by GitHub
commit c9e6dcc2d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 35 deletions

View file

@ -1 +1 @@
0.6.6 0.7.0

View file

@ -44,16 +44,18 @@
{% endif %} {% endif %}
{% if book.series %} {% if book.series %}
<meta itemprop="isPartOf" content="{{ book.series | escape }}"> <meta itemprop="position" content="{{ book.series_number }}">
<meta itemprop="volumeNumber" content="{{ book.series_number }}"> <span itemprop="isPartOf" itemscope itemtype="https://schema.org/BookSeries">
{% if book.authors.exists %} {% if book.authors.exists %}
<a href="{% url 'book-series-by' book.authors.first.id %}?series_name={{ book.series | urlencode }}"> <a href="{% url 'book-series-by' book.authors.first.id %}?series_name={{ book.series | urlencode }}"
itemprop="url">
{% endif %} {% endif %}
{{ book.series }}{% if book.series_number %} #{{ book.series_number }}{% endif %} <span itemprop="name">{{ book.series }}</span>
{% if book.series_number %} #{{ book.series_number }}{% endif %}
{% if book.authors.exists %} {% if book.authors.exists %}
</a> </a>
{% endif %} {% endif %}
</span>
{% endif %} {% endif %}
</p> </p>
{% endif %} {% endif %}
@ -186,8 +188,6 @@
itemtype="https://schema.org/AggregateRating" itemtype="https://schema.org/AggregateRating"
> >
<meta itemprop="ratingValue" content="{{ rating|floatformat }}"> <meta itemprop="ratingValue" content="{{ rating|floatformat }}">
{# @todo Is it possible to not hard-code the value? #}
<meta itemprop="bestRating" content="5">
<meta itemprop="reviewCount" content="{{ review_count }}"> <meta itemprop="reviewCount" content="{{ review_count }}">
<span> <span>

View file

@ -5,13 +5,18 @@
{% include 'snippets/avatar.html' with user=user %} {% include 'snippets/avatar.html' with user=user %}
</div> </div>
<div class="media-content"> <div class="media-content" itemprop="review" itemscope itemtype="https://schema.org/Review">
<div> <div itemprop="author"
<a href="{{ user.local_path }}">{{ user.display_name }}</a> itemscope
itemtype="https://schema.org/Person"
>
<a href="{{ user.local_path }}" itemprop="url">
<span itemprop="name">{{ user.display_name }}</span>
</a>
</div> </div>
<div class="is-flex"> <div class="is-flex" itemprop="reviewRating" itemscope itemtype="https://schema.org/Rating">
<meta itemprop="ratingValue" content="{{ rating.rating|floatformat }}">
<p class="mr-1">{% trans "rated it" %}</p> <p class="mr-1">{% trans "rated it" %}</p>
{% include 'snippets/stars.html' with rating=rating.rating %} {% include 'snippets/stars.html' with rating=rating.rating %}
</div> </div>
<div> <div>

View file

@ -5,15 +5,15 @@
{% block title %}{{ series_name }}{% endblock %} {% block title %}{{ series_name }}{% endblock %}
{% block content %} {% block content %}
<div class="block"> <div class="block" itemscope itemtype="https://schema.org/BookSeries">
<h1 class="title">{{ series_name }}</h1> <h1 class="title" itemprop="name">{{ series_name }}</h1>
<div class="subtitle" dir="auto"> <div class="subtitle" dir="auto">
{% trans "Series by" %} <a {% trans "Series by" %} <a
href="{{ author.local_path }}" href="{{ author.local_path }}"
class="author {{ link_class }}" class="author {{ link_class }}"
itemprop="author" itemprop="creator"
itemscope itemscope
itemtype="https://schema.org/Thing" itemtype="https://schema.org/Person"
><span ><span
itemprop="name" itemprop="name"
>{{ author.name }}</span></a> >{{ author.name }}</span></a>
@ -22,6 +22,7 @@
<div class="columns is-multiline is-mobile"> <div class="columns is-multiline is-mobile">
{% for book in books %} {% for book in books %}
{% with book=book %} {% with book=book %}
{# @todo Set `hasPart` property in some meaningful way #}
<div class="column is-one-fifth-tablet is-half-mobile is-flex is-flex-direction-column"> <div class="column is-one-fifth-tablet is-half-mobile is-flex is-flex-direction-column">
<div class="is-flex-grow-1 mb-3"> <div class="is-flex-grow-1 mb-3">
<span class="subtitle">{% if book.series_number %}{% blocktrans with series_number=book.series_number %}Book {{ series_number }}{% endblocktrans %}{% else %}{% trans 'Unsorted Book' %}{% endif %}</span> <span class="subtitle">{% if book.series_number %}{% blocktrans with series_number=book.series_number %}Book {{ series_number }}{% endblocktrans %}{% else %}{% trans 'Unsorted Book' %}{% endif %}</span>

View file

@ -6,14 +6,6 @@
{% load humanize %} {% load humanize %}
{% with status_type=status.status_type %} {% with status_type=status.status_type %}
<div
class="block"
{% if status_type == "Review" %}
itemprop="rating"
itemtype="https://schema.org/Rating"
{% endif %}
>
<div class="columns is-gapless"> <div class="columns is-gapless">
{% if not hide_book %} {% if not hide_book %}
{% with book=status.book|default:status.mention_books.first %} {% with book=status.book|default:status.mention_books.first %}
@ -58,9 +50,6 @@
{% endif %} {% endif %}
> >
<meta itemprop="ratingValue" content="{{ status.rating|floatformat }}"> <meta itemprop="ratingValue" content="{{ status.rating|floatformat }}">
{# @todo Is it possible to not hard-code the value? #}
<meta itemprop="bestRating" content="5">
</span> </span>
{% include 'snippets/stars.html' with rating=status.rating %} {% include 'snippets/stars.html' with rating=status.rating %}
</h4> </h4>
@ -154,6 +143,5 @@
</div> </div>
</article> </article>
</div> </div>
</div>
{% endwith %} {% endwith %}

View file

@ -16,9 +16,6 @@
> >
<span class="is-hidden" {{ rating_type }}> <span class="is-hidden" {{ rating_type }}>
<meta itemprop="ratingValue" content="{{ status.rating|floatformat }}"> <meta itemprop="ratingValue" content="{{ status.rating|floatformat }}">
{# @todo Is it possible to not hard-code the value? #}
<meta itemprop="bestRating" content="5">
</span> </span>
</span> </span>
</span> </span>

8
bump-version.sh Normal file → Executable file
View file

@ -46,7 +46,8 @@ if [ -f VERSION ]; then
# echo -e "$ADJUSTMENTS_MSG" # echo -e "$ADJUSTMENTS_MSG"
# read # read
echo -e "$PUSHING_MSG" echo -e "$PUSHING_MSG"
# git add CHANGELOG.md VERSION # git add CHANGELOG.md
git add VERSION
git commit -m "Bump version to ${INPUT_STRING}." git commit -m "Bump version to ${INPUT_STRING}."
git tag -a -m "Tag version ${INPUT_STRING}." "v$INPUT_STRING" git tag -a -m "Tag version ${INPUT_STRING}." "v$INPUT_STRING"
git push origin --tags git push origin --tags
@ -61,14 +62,15 @@ else
if [ "$RESPONSE" = "YES" ]; then RESPONSE="y"; fi if [ "$RESPONSE" = "YES" ]; then RESPONSE="y"; fi
if [ "$RESPONSE" = "y" ]; then if [ "$RESPONSE" = "y" ]; then
echo "0.1.0" > VERSION echo "0.1.0" > VERSION
echo "## 0.1.0 ($NOW)" > CHANGELOG.md # echo "## 0.1.0 ($NOW)" > CHANGELOG.md
# git log --pretty=format:" - %s" >> CHANGELOG.md # git log --pretty=format:" - %s" >> CHANGELOG.md
# echo "" >> CHANGELOG.md # echo "" >> CHANGELOG.md
# echo "" >> CHANGELOG.md # echo "" >> CHANGELOG.md
# echo -e "$ADJUSTMENTS_MSG" # echo -e "$ADJUSTMENTS_MSG"
# read # read
echo -e "$PUSHING_MSG" echo -e "$PUSHING_MSG"
git add VERSION CHANGELOG.md # git add CHANGELOG.md
git add VERSION
git commit -m "Add VERSION and CHANGELOG.md files, Bump version to v0.1.0." git commit -m "Add VERSION and CHANGELOG.md files, Bump version to v0.1.0."
git tag -a -m "Tag version 0.1.0." "v0.1.0" git tag -a -m "Tag version 0.1.0." "v0.1.0"
git push origin --tags git push origin --tags