Skip to content

Commit aaffc4c

Browse files
Adds benchmark intro to _config file and updates the UI a bit
1 parent d67dbc5 commit aaffc4c

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ gitter: https://gitter.im/rustpython/Lobby
3030
show_excerpts: true
3131
contributor_excerpt: "" # TODO: write something here, goes right under "Contributors" heading
3232
blog-intro: Create an issue if you see something wrong. Edit posts or create new ones via PR on <a target="_blank" href="https://github.com/RustPython/rustpython.github.io">github.com/RustPython/rustpython.github.io</a>
33+
benchmarks-intro: More information about the benchmarks can be found on <a target="_blank" href="https://github.com/RustPython/RustPython">github.com/RustPython/RustPython</a>
3334

3435
navigation:
3536
- title: Blog

_layouts/benchmarks.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<div class="benchmarks-intro">
2222
{{ content }}
2323
</div>
24-
24+
2525
{% assign folders = "" | split: ", " %}
2626
{% for folder in site.static_files %}
2727
{% if folder.path contains 'criterion/' %}
@@ -40,7 +40,7 @@
4040
{% else %}
4141
<ul class="tab" data-tab="benchmarks">
4242
{% for folder in folders %}
43-
<li {% if forloop.index==1 %} class="active" {% endif %}>
43+
<li {% if forloop.index==1 %} class="active" {% endif %} style="font-weight: bold;">
4444
<a href="">{{ folder }}</a>
4545
</li>
4646
{% endfor%}

assets/style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ ul.list-inline {
279279
line-height: 1.5em;
280280
}
281281

282-
.blog-intro {
282+
.blog-intro, .benchmarks-intro {
283283
background-color: #f6f8fa;
284284
padding-left: 2em;
285285
padding-right: 2em;

benchmarks.markdown

-2
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@ title: Benchmarks
66
This page displays some benchmarks that determine the performance of RustPython.
77

88
Most of these benchmarks compare RustPython to CPython.
9-
10-
More information about the benchmarks can be found on [the RustPython GitHub repo](https://github.com/RustPython/RustPython/tree/master/benches).

0 commit comments

Comments
 (0)