Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0217cdf

Browse files
committed
create a list in the config file for all the dashboards, show list on homepage under dashboard section
1 parent30ca05f commit0217cdf

File tree

3 files changed

+44
-29
lines changed

3 files changed

+44
-29
lines changed

‎_config.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ navigation:
4141
-title:Gitter
4242
url:https://gitter.im/rustpython/Lobby
4343

44+
dashboards:
45+
-title:CPython test compatibility
46+
url:/pages/regression-tests-results.html
47+
4448
# Build settings
4549
theme:minima
4650
plugins:

‎_layouts/home.html‎

Lines changed: 39 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
<section>
88
<divclass="w-100 m-auto mt-2">
99
<divclass="d-md-flex justify-center">
10-
<divclass="d-sm-none"><imgclass="logo"src="{{site.baseurl}}/assets/img/rust-python-logo.svg"alt="RustPython Logo">
10+
<divclass="d-sm-none"><imgclass="logo"src="{{site.baseurl}}/assets/img/rust-python-logo.svg"
11+
alt="RustPython Logo">
1112
</div>
1213
<divclass="w-md-25 pl-2">
1314
<divclass="title">{{ site.title }}</div>
1415
<divclass="">
1516
<p>
16-
{{ site.description }}
17+
{{ site.description }}
1718
</p>
1819
</div>
1920
</div>
@@ -29,14 +30,15 @@
2930
</div>
3031
<divclass="mt-md-4 mt-sm-2 w-md-50 m-auto">
3132
<pclass="mt-md-4">
32-
{{ page.explainer }}
33+
{{ page.explainer }}
3334
</p>
3435
</div>
3536
<divclass="text-md-center">
3637
<ulclass="list-inline">
37-
{% for demo in page.demo %}
38-
<liclass="float-left pr-1 mt-1"><arel="noopener"rel="noreferrer"href="{{ demo.url }}"target="_blank">{{ demo.label }}</a></li>
39-
{% endfor %}
38+
{% for demo in page.demo %}
39+
<liclass="float-left pr-1 mt-1"><arel="noopener"rel="noreferrer"href="{{ demo.url }}"
40+
target="_blank">{{ demo.label }}</a></li>
41+
{% endfor %}
4042
</ul>
4143
</div>
4244
</section>
@@ -47,9 +49,10 @@
4749
<divclass="text-center">
4850
<divclass="section-title"> Installation</div>
4951
{% for install in page.installation %}
50-
<markclass="code d-table m-auto mt-1"> {{ install.command }}</mark>
52+
<markclass="code d-table m-auto mt-1"> {{ install.command }}</mark>
5153
{% endfor %}
52-
<divclass="mt-1"><small><arel="noopener"rel="noreferrer"href="{{ page.build-from-source-link }}"target="_blank">OR BUILD FROM SOURCE</a></small></div>
54+
<divclass="mt-1"><small><arel="noopener"rel="noreferrer"href="{{ page.build-from-source-link }}"
55+
target="_blank">OR BUILD FROM SOURCE</a></small></div>
5356
</div>
5457
</section>
5558

@@ -61,28 +64,37 @@
6164
<divclass="d-md-flex">
6265
{% for goals in page.goals %}
6366
<divclass="w-md-50 mt-2 goal bg-rust">
64-
<divclass=" text-white p-2">
67+
<divclass=" text-white p-2">
6568
{{ goals.goal }}
66-
</div>
69+
</div>
6770
</div>
6871
{% endfor %}
6972
</div>
7073
<divclass="d-md-flex mt-2">
7174
<divclass="w-md-50">
72-
{{ content }}
75+
{{ content }}
7376
</div>
7477
<divclass="w-md-50 mt-2">
7578
<divclass="border w-md-50 float-md-right mt-md-4 p-2">
76-
<strong> Learn more</strong>
77-
<!-- list of posts where category is "featured" -->
78-
<ulclass="list-unstyled">
79-
{%- for post in site.posts -%}
80-
{% if post.categories contains "featured" %}
81-
<liclass="mt-1"><ahref="{{ post.url | relative_url }}"> {{ post.title | escape }}</a></li>
82-
{% endif %}
83-
{%- endfor -%}
84-
</ul>
79+
<strong> Featured Posts</strong>
80+
<!-- list of posts where category is "featured" -->
81+
<ulclass="list-unstyled">
82+
{%- for post in site.categories.featured limit:3 -%}
83+
<liclass="mt-1"><ahref="{{ post.url | relative_url }}"> {{ post.title | escape }}</a></li>
84+
{%- endfor -%}
85+
</ul>
8586
</div>
87+
88+
<divclass="border w-md-50 float-md-right mt-md-4 p-2">
89+
<strong> Dashboard</strong>
90+
<!-- list of posts where category is "featured" -->
91+
<ulclass="list-unstyled">
92+
{%- for dashboard in site.dashboards -%}
93+
<liclass="mt-1"><ahref="{{ dashboard.url | relative_url }}"> {{ dashboard.title | escape }}</a></li>
94+
{%- endfor -%}
95+
</ul>
96+
</div>
97+
8698
</div>
8799
</div>
88100
</div>
@@ -96,12 +108,15 @@
96108
<pclass="w-80">{{ site.contributor_excerpt}}</p>
97109
<ulclass="list-contributors">
98110
{% for contributor in site.data.contributors %}
99-
<li><arel="noopener"rel="noreferrer"href="https://github.com/{{ contributor.github_username }}"target="_blank">{{ contributor.github_username }}</a></li>
111+
<li><arel="noopener"rel="noreferrer"href="https://github.com/{{ contributor.github_username }}"
112+
target="_blank">{{ contributor.github_username }}</a></li>
100113
{% endfor %}
101114
</ul>
102115
<divclass="d-md-flex">
103-
<divclass="pr-1 mt-1"><small><ahref="https://github.com/RustPython/RustPython/graphs/contributors">VIEW MORE</a></small></div>
104-
<divclass="mt-1"><small><ahref="https://github.com/RustPython/RustPython/#contributing">HOW TO CONTRIBUTE</a></small></div>
116+
<divclass="pr-1 mt-1"><small><ahref="https://github.com/RustPython/RustPython/graphs/contributors">VIEW
117+
MORE</a></small></div>
118+
<divclass="mt-1"><small><ahref="https://github.com/RustPython/RustPython/#contributing">HOW TO
119+
CONTRIBUTE</a></small></div>
105120
</div>
106121
</div>
107-
</section>
122+
</section>

‎index.markdown‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,4 @@ IronPython is well-integrated with .NET, which means IronPython can use the .NET
3838

3939
We want to unlock the same possibilities that Jython and IronPython enable, but for the Rust programming language. In addition, thanks to Rusts' minimal runtime, we're able to compile RustPython to WebAssembly and allow users to run their Python code easily in the browser.
4040

41-
Check the "learn more" section for an explainer of all those jargon-y words, or read the blog for more in-depth technical discussion.
42-
43-
###Other Resources
44-
45-
-[CPython test compatibility]({% link pages/regression-tests-results.markdown %})
41+
Check the "learn more" section for an explainer of all those jargon-y words, or read the blog for more in-depth technical discussion.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp