Skip to content

Commit 2716253

Browse files
committed
Addressed some comments; Improved styling
1 parent 959fe5f commit 2716253

176 files changed

Lines changed: 35186 additions & 9081 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Whitespace-only changes.

improve_wordings.py

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
#!/usr/bin/env python3
2+
"""
3+
Script to improve wordings in HTML files to be more professional.
4+
Replaces terms like "dependents" with "Consumers" and related variations.
5+
"""
6+
7+
import os
8+
import re
9+
from pathlib import Path
10+
11+
# Define replacement patterns
12+
# Order matters - more specific patterns first
13+
REPLACEMENTS = [
14+
# Specific phrases first
15+
(r'First-Level Dependencies', 'Primary Consumers'),
16+
(r'All Deeper Dependencies', 'Secondary Consumers'),
17+
(r'Dependent Libraries \(Latest Version:', 'Consumer Libraries (Latest Version:'),
18+
(r'Dependent Libraries', 'Consumer Libraries'),
19+
(r'No dependent libraries found', 'No consumer libraries found'),
20+
(r'with dependents', 'with consumers'),
21+
(r'for the latest version with dependents', 'for the latest version with consumers'),
22+
23+
# Chart labels and titles
24+
(r'Dependency Count', 'Consumer Count'),
25+
26+
# General word replacements (case-sensitive)
27+
(r'\bdependents\b', 'Consumers'), # whole word only
28+
(r'\bdependent\b', 'Consumer'), # whole word only
29+
30+
# Note: We keep "dependencies" as is when it refers to actual dependencies,
31+
# but we've already replaced "Dependent Libraries" above
32+
]
33+
34+
def process_file(file_path):
35+
"""Process a single HTML file with all replacements."""
36+
try:
37+
with open(file_path, 'r', encoding='utf-8') as f:
38+
content = f.read()
39+
40+
original_content = content
41+
42+
# Apply all replacements
43+
for pattern, replacement in REPLACEMENTS:
44+
content = re.sub(pattern, replacement, content)
45+
46+
# Only write if content changed
47+
if content != original_content:
48+
with open(file_path, 'w', encoding='utf-8') as f:
49+
f.write(content)
50+
return True
51+
return False
52+
except Exception as e:
53+
print(f"Error processing {file_path}: {e}")
54+
return False
55+
56+
def main():
57+
"""Main function to process all HTML files."""
58+
# Get the script directory (project root)
59+
script_dir = Path(__file__).parent.absolute()
60+
61+
# Find all HTML files
62+
html_files = []
63+
64+
# Root directory HTML files
65+
for html_file in script_dir.glob('*.html'):
66+
html_files.append(html_file)
67+
68+
# HTML files in v1.90 directory
69+
v190_dir = script_dir / 'v1.90'
70+
if v190_dir.exists():
71+
for html_file in v190_dir.glob('*.html'):
72+
html_files.append(html_file)
73+
74+
# HTML files in v1.90/libraries directory
75+
libraries_dir = v190_dir / 'libraries'
76+
if libraries_dir.exists():
77+
for html_file in libraries_dir.glob('*.html'):
78+
html_files.append(html_file)
79+
80+
print(f"Found {len(html_files)} HTML files to process...")
81+
82+
processed_count = 0
83+
for html_file in html_files:
84+
if process_file(html_file):
85+
processed_count += 1
86+
print(f"Updated: {html_file.relative_to(script_dir)}")
87+
88+
print(f"\nProcessing complete!")
89+
print(f"Total files processed: {len(html_files)}")
90+
print(f"Files updated: {processed_count}")
91+
92+
if __name__ == '__main__':
93+
main()

v1.90/bsl_analysis.html

Lines changed: 87 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,106 @@
66
<title>Boost Software License (BSL-1.0) Analysis</title>
77
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>
88
<style>
9+
* {
10+
box-sizing: border-box;
11+
}
912
body {
10-
font-family: Arial, sans-serif;
11-
max-width: 1400px;
13+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
14+
max-width: 1600px;
1215
margin: 0 auto;
13-
padding: 20px;
14-
background-color: #f5f5f5;
16+
padding: 30px 20px;
17+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
18+
min-height: 100vh;
1519
}
1620
h1 {
1721
text-align: center;
18-
color: #333;
22+
color: #fff;
23+
font-size: 2.5em;
24+
margin-bottom: 10px;
25+
text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
26+
font-weight: 700;
27+
}
28+
body > p {
29+
text-align: center;
30+
color: rgba(255, 255, 255, 0.9);
31+
margin-bottom: 30px;
32+
font-size: 0.95em;
1933
}
2034
.chart-container {
21-
background: white;
22-
padding: 20px;
23-
margin: 20px 0;
24-
border-radius: 8px;
25-
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
35+
background: #ffffff;
36+
padding: 30px;
37+
margin: 25px 0;
38+
border-radius: 12px;
39+
box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
40+
transition: transform 0.2s ease, box-shadow 0.2s ease;
41+
border: 1px solid rgba(255, 255, 255, 0.2);
42+
}
43+
.chart-container:hover {
44+
transform: translateY(-2px);
45+
box-shadow: 0 12px 32px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.1);
46+
}
47+
.chart-container h2 {
48+
margin-top: 0;
49+
margin-bottom: 20px;
50+
color: #1a202c;
51+
font-size: 1.6em;
52+
font-weight: 600;
53+
padding-bottom: 15px;
54+
border-bottom: 3px solid #667eea;
55+
}
56+
.chart-container h3 {
57+
color: #2d3748;
58+
font-size: 1.2em;
59+
font-weight: 600;
60+
margin-top: 0;
61+
margin-bottom: 15px;
2662
}
2763
canvas {
28-
max-height: 400px;
64+
width: 100% !important;
65+
height: 100% !important;
66+
display: block;
67+
max-height: 450px;
68+
}
69+
table {
70+
width: 100%;
71+
border-collapse: collapse;
72+
margin: 20px 0;
73+
}
74+
th, td {
75+
padding: 10px;
76+
text-align: left;
77+
border-bottom: 1px solid #ddd;
78+
}
79+
th {
80+
background-color: #f0f0f0;
81+
font-weight: 600;
82+
}
83+
tr:hover {
84+
background-color: #f9f9f9;
85+
}
86+
a {
87+
color: #0066cc;
88+
text-decoration: none;
89+
}
90+
a:hover {
91+
text-decoration: underline;
92+
}
93+
@media (max-width: 1200px) {
94+
body {
95+
padding: 20px 15px;
96+
}
97+
.chart-container {
98+
padding: 20px;
99+
}
100+
h1 {
101+
font-size: 2em;
102+
}
29103
}
30104
</style>
31105
</head>
32106
<body>
33107
<div style="margin-bottom: 10px;">
34-
<a href="../index.html" style="color: #666; text-decoration: none; font-size: 0.9rem;">← Back to Version Selector</a>
108+
<a href="../index.html" style="color: rgba(255, 255, 255, 0.9); text-decoration: none; font-size: 0.9rem;">← Back to Version Selector</a>
35109
</div>
36110
<h1>Boost Software License (BSL-1.0) Analysis</h1>
37111

@@ -43,7 +117,7 @@ <h1>Boost Software License (BSL-1.0) Analysis</h1>
43117
</nav>
44118

45119
<div class="chart-container">
46-
<h2 style="text-align: center">Boost Software License Adoption</h2>
120+
<h2>Boost Software License Adoption</h2>
47121
<div style="margin-bottom: 20px; text-align: center">
48122
<p><strong>Total repositories using BSL-1.0:</strong> 42,581</p>
49123
<p><strong>Repositories created since Boost 1.89.0:</strong> 4,383</p>

v1.90/data_to_release_note.html

Lines changed: 71 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,82 @@
66
<title>Boost Library Usage Analysis: Repositories with 10+ Stars</title>
77
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>
88
<style>
9+
* {
10+
box-sizing: border-box;
11+
}
912
body {
10-
font-family: Arial, sans-serif;
11-
max-width: 1400px;
13+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
14+
max-width: 1600px;
1215
margin: 0 auto;
13-
padding: 20px;
14-
background-color: #f5f5f5;
16+
padding: 30px 20px;
17+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
18+
min-height: 100vh;
1519
}
1620
h1 {
1721
text-align: center;
18-
color: #333;
22+
color: #fff;
23+
font-size: 2.5em;
24+
margin-bottom: 10px;
25+
text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
26+
font-weight: 700;
27+
}
28+
body > p {
29+
text-align: center;
30+
color: rgba(255, 255, 255, 0.9);
31+
margin-bottom: 30px;
32+
font-size: 0.95em;
1933
}
2034
.chart-container {
21-
background: white;
22-
padding: 20px;
23-
margin: 20px 0;
24-
border-radius: 8px;
25-
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
35+
background: #ffffff;
36+
padding: 30px;
37+
margin: 25px 0;
38+
border-radius: 12px;
39+
box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
40+
transition: transform 0.2s ease, box-shadow 0.2s ease;
41+
border: 1px solid rgba(255, 255, 255, 0.2);
42+
}
43+
.chart-container:hover {
44+
transform: translateY(-2px);
45+
box-shadow: 0 12px 32px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.1);
46+
}
47+
.chart-container h2 {
48+
margin-top: 0;
49+
margin-bottom: 20px;
50+
color: #1a202c;
51+
font-size: 1.6em;
52+
font-weight: 600;
53+
padding-bottom: 15px;
54+
border-bottom: 3px solid #667eea;
55+
}
56+
.chart-container h3 {
57+
color: #2d3748;
58+
font-size: 1.2em;
59+
font-weight: 600;
60+
margin-top: 0;
61+
margin-bottom: 15px;
2662
}
2763
canvas {
28-
max-height: 400px;
64+
width: 100% !important;
65+
height: 100% !important;
66+
display: block;
67+
max-height: 450px;
2968
}
3069
table {
3170
width: 100%;
3271
border-collapse: collapse;
72+
margin: 20px 0;
3373
}
3474
th, td {
35-
padding: 8px;
36-
border: 1px solid #ddd;
75+
padding: 10px;
76+
text-align: left;
77+
border-bottom: 1px solid #ddd;
3778
}
3879
th {
3980
background-color: #f0f0f0;
81+
font-weight: 600;
82+
}
83+
tr:hover {
84+
background-color: #f9f9f9;
4085
}
4186
a {
4287
color: #0066cc;
@@ -45,11 +90,22 @@
4590
a:hover {
4691
text-decoration: underline;
4792
}
93+
@media (max-width: 1200px) {
94+
body {
95+
padding: 20px 15px;
96+
}
97+
.chart-container {
98+
padding: 20px;
99+
}
100+
h1 {
101+
font-size: 2em;
102+
}
103+
}
48104
</style>
49105
</head>
50106
<body>
51107
<div style="margin-bottom: 10px;">
52-
<a href="../index.html" style="color: #666; text-decoration: none; font-size: 0.9rem;">← Back to Version Selector</a>
108+
<a href="../index.html" style="color: rgba(255, 255, 255, 0.9); text-decoration: none; font-size: 0.9rem;">← Back to Version Selector</a>
53109
</div>
54110
<h1>Boost Library Usage Analysis: Repositories with 10+ Stars</h1>
55111

@@ -62,7 +118,7 @@ <h1>Boost Library Usage Analysis: Repositories with 10+ Stars</h1>
62118

63119

64120
<div class="chart-container">
65-
<h2 style="text-align: center;">Repository Overview</h2>
121+
<h2>Repository Overview</h2>
66122
<div style="margin-bottom: 20px; text-align: center;">
67123
<p><strong>Total repositories with 10+ stars:</strong> 6,183</p>
68124
<p><strong>Repositories created since Boost 1.89.0 (August 14, 2025):</strong> 1,643</p>

0 commit comments

Comments
 (0)