Skip to content

Commit c311d93

Browse files
Strip everything
https://xkcd.com/1172/
1 parent a3f8f17 commit c311d93

File tree

3 files changed

+8
-23
lines changed

3 files changed

+8
-23
lines changed

generate.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ class LanguageProjectData:
100100
logging.info(f'starting at {generation_time}')
101101
Path('build').mkdir(parents=True, exist_ok=True)
102102

103-
completion_progress = list(get_completion_progress())
104-
counts = get_counts(Path('clones', 'cpython', 'Doc', 'build', 'gettext'))
103+
# completion_progress = list(get_completion_progress())
104+
#counts = get_counts(Path('clones', 'cpython', 'Doc', 'build', 'gettext'))
105+
from data import completion_progress
106+
counts = 1,1
105107

106108
env = Environment(loader=FileSystemLoader('templates'))
107109
index = env.get_template('index.html.jinja').render(

src/style.css

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,6 @@ a:hover {
5151

5252
.card {
5353
flex: 1;
54-
transition: all 0.3s ease-in-out;
55-
}
56-
57-
.card:hover {
58-
text-decoration: none;
59-
transform: scale(1.05);
60-
}
61-
62-
@media (min-width: 768px) {
63-
.card {
64-
flex-basis: calc(33.33% - 30px);
65-
}
6654
}
6755

6856
/* ------------------------------ Index ------------------------------------- */

templates/index.html.jinja

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
<div class="card-body">
1010
<h5 class="card-subtitle text-muted">{{ project.translated_name }}</h5>
1111
<h4 class="card-title">{{ project.language.name }}</h4>
12-
<h5 class="card-subtitle mb-2">Completion: <strong>{{ '{:.2f}%'.format(project.completion) }}</strong></h5>
13-
<h6 class="card-subtitle mb-2 text-muted">30 Days Progress: {{ '{:.2f}%'.format(project.change) }}</h6>
14-
<h6 class="card-subtitle mb-2 text-muted">Translators: {{ project.translators.number }}</h6>
15-
<h6 style="text-align: center;">
12+
<p class="card-subtitle mb-2">Completion: <strong>{{ '{:.2f}%'.format(project.completion) }}</strong></p>
13+
<p class="card-subtitle mb-2 text-muted">30 days progress: {{ '{:.2f}%'.format(project.change) }}</p>
14+
<p style="text-align: center;">
1615
{% if project.built %}
1716
<a href="https://docs.python.org/{{ project.language.code }}/3/" style="color: #1595fe;">View</a>
1817
@@ -24,11 +23,7 @@
2423
{% else %}
2524
<a href="https://devguide.python.org/documentation/translations/translating/" style="color: #1595fe;">Contribute</a>
2625
{% endif %}
27-
{% if project.repository %}
28-
29-
<a href="https://github.com/{{ project.repository }}" style="color: #1595fe;">Repository</a>
30-
{% endif %}
31-
</h6>
26+
</p>
3227
<div class="progress-bar-container">
3328
<div class="progress-bar-index" style="width: {{ project.completion }}%;
3429
{% if project.change %}

0 commit comments

Comments
 (0)