Skip to content

Commit 080e155

Browse files
committed
Build: shrink preview comment
Implement what we discussed in #12295. This is not perfect and it doesn't pretend to be, it's just one of the implementations after a few discussion iterations in the comments. The idea of this PR is to have something a little better than what we have to be able to merge and move forward with.
1 parent 69a341d commit 080e155

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

readthedocs/templates/core/build-overview.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@ Template used for generating the build overview page that is posted as a comment
44
Whitespaces and newlines are important in some places like lists and tables,
55
make sure to adjust the tags accordingly, as they introduce newlines.
66
{% endcomment %}
7-
## Documentation build overview
7+
### Documentation build overview
88

9-
> 📚 [{{ project.name }}](https://{{ PRODUCTION_DOMAIN }}{% url "projects_detail" project.slug %}) | 🛠️ build [#{{ current_version_build.pk }}](https://{{ PRODUCTION_DOMAIN }}{% url "builds_detail" project.slug current_version_build.pk %}) ({{ current_version_build.commit }}) | 🔍 [preview]({{ current_version.get_absolute_url }})
9+
> 📚 [{{ project.name }}](https://{{ PRODUCTION_DOMAIN }}{% url "projects_detail" project.slug %}) | 🛠️ Build [#{{ current_version_build.pk }}](https://{{ PRODUCTION_DOMAIN }}{% url "builds_detail" project.slug current_version_build.pk %}) | 📁 Comparing {{ current_version_build.commit }} against [{{ base_version.verbose_name }}]({{ base_version.get_absolute_url }}) ({{ base_version_build.commit }})
1010
11-
### Files changed
12-
13-
> Comparing with [{{ base_version.verbose_name }}]({{ base_version.get_absolute_url }}) ({{ base_version_build.commit }}...{{ current_version_build.commit }})
11+
[<kbd><br />🔍 Preview build <br /></kbd>]({{ current_version.get_absolute_url }})
1412

1513
{% if diff.files %}
1614
<details>
17-
<summary>Show files ({{ diff.files|length }}) | {{ diff.modified|length }} modified | {{ diff.added|length }} added | {{ diff.deleted|length }} deleted</summary>
15+
<summary>Show files changed (({{ diff.files|length }} files total): 📝 {{ diff.modified|length }} | ➕ {{ diff.added|length }} | ➖ {{ diff.deleted|length }}</summary>
1816

1917
| File | Status |
2018
| --- | --- |

0 commit comments

Comments
 (0)