Skip to content

Commit 4dc5400

Browse files
leftibotclaude
andcommitted
Fix #4: Remove outdated and unreachable website elements
Remove the Discourse Forums button (discourse.chaiscript.com is unreachable), the dashboard button (outdated build results page), deprecated Google Analytics (Universal Analytics sunset July 2023), the Google+ widget (shut down 2019), and the Gitter chat widget (service deprecated). Also removes the Discourse link from the support page. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 30c9ed0 commit 4dc5400

File tree

4 files changed

+55
-42
lines changed

4 files changed

+55
-42
lines changed

_includes/common.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@
2020
<![endif]-->
2121
<!-- END COPYING HERE -->
2222

23-
<script>
24-
((window.gitter = {}).chat = {}).options = {
25-
room: 'ChaiScript/ChaiScript'
26-
};
27-
</script>
28-
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
29-
3023
<style>
3124
.cs-blue {color:white; background: #31708f}
3225
.body-with-margin {margin-right: 50px; margin-left: 50px;}

_includes/header.html

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,6 @@
66
</div>
77

88

9-
<script>
10-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
11-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
12-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
13-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
14-
15-
ga('create', 'UA-384017-5', 'chaiscript.com');
16-
ga('send', 'pageview');
17-
18-
</script>
19-
209

2110
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
2211
<div class="container">
@@ -72,12 +61,6 @@
7261
<li>
7362
<a href="http://codecov.io/github/ChaiScript/ChaiScript?branch=master"><img src="http://codecov.io/github/ChaiScript/ChaiScript/coverage.svg?branch=master" alt="Coverage Status" /></a>
7463
</li>
75-
<li>
76-
<a href="http://chaiscript.com/ChaiScript-BuildResults/index.html"><img src="https://img.shields.io/badge/dashboard-online-green.svg"/></a>
77-
</li>
78-
<li>
79-
<a href="http://discourse.chaiscript.com"><img src="https://img.shields.io/badge/Discourse_Forums--green.svg"/></a>
80-
</li>
8164
</ul>
8265
</div>
8366
</div>
@@ -102,19 +85,6 @@
10285
<a href="https://twitter.com/intent/tweet?button_hashtag=ChaiScript&text=Embedded%20scripting%20for%20my%20next%20project%3A%20" class="twitter-hashtag-button" data-related="lefticus" data-url="http://chaiscript.com" data-dnt="true">Tweet #ChaiScript</a>
10386
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
10487
</li>
105-
<li>
106-
<!-- Place this tag where you want the +1 button to render. -->
107-
<div class="g-plusone" data-size="medium" data-annotation="inline" data-width="120" data-href="http://chaiscript.com"></div>
108-
109-
<!-- Place this tag after the last +1 button tag. -->
110-
<script type="text/javascript">
111-
(function() {
112-
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
113-
po.src = 'https://apis.google.com/js/platform.js';
114-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
115-
})();
116-
</script>
117-
</li>
11888
</ul>
11989
</div>
12090
</div>

support.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ <h3>Support tickets are handled with <a href="https://github.com/ChaiScript/Chai
2323
</div>
2424

2525

26-
<div class="alert alert-warning">
27-
<a class="alert-link" href="http://discourse.chaiscript.com">Discourse for general discussions and questions.</a>
28-
</div>
29-
30-
3126

3227
<div class="alert alert-success">
3328
<a class="alert-link" href="https://codedocs.xyz/ChaiScript/ChaiScript/">ChaiScript Generated Documents.</a>

test_cleanup.sh

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#!/bin/bash
2+
# Regression test for issue #4: website cleanup
3+
# Checks that outdated/unreachable links and buttons have been removed
4+
5+
FAIL=0
6+
7+
# Test 1: Dashboard button should not exist in header
8+
if grep -q "dashboard" _includes/header.html; then
9+
echo "FAIL: Dashboard button still present in header.html"
10+
FAIL=1
11+
else
12+
echo "PASS: Dashboard button removed from header.html"
13+
fi
14+
15+
# Test 2: Discourse Forums button should not exist in header
16+
if grep -q "discourse.chaiscript.com" _includes/header.html; then
17+
echo "FAIL: Discourse Forums button still present in header.html"
18+
FAIL=1
19+
else
20+
echo "PASS: Discourse Forums button removed from header.html"
21+
fi
22+
23+
# Test 3: Discourse link should not exist in support page
24+
if grep -q "discourse.chaiscript.com" support.html; then
25+
echo "FAIL: Discourse link still present in support.html"
26+
FAIL=1
27+
else
28+
echo "PASS: Discourse link removed from support.html"
29+
fi
30+
31+
# Test 4: Google+ widget should not exist (service shut down in 2019)
32+
if grep -q "g-plusone" _includes/header.html; then
33+
echo "FAIL: Google+ widget still present in header.html"
34+
FAIL=1
35+
else
36+
echo "PASS: Google+ widget removed from header.html"
37+
fi
38+
39+
# Test 5: Gitter chat widget should not exist (service deprecated)
40+
if grep -q "gitter.im" _includes/common.html; then
41+
echo "FAIL: Gitter chat widget still present in common.html"
42+
FAIL=1
43+
else
44+
echo "PASS: Gitter chat widget removed from common.html"
45+
fi
46+
47+
# Test 6: Google Analytics (Universal Analytics) was sunset July 2023
48+
if grep -q "google-analytics.com/analytics.js" _includes/header.html; then
49+
echo "FAIL: Deprecated Universal Analytics still present in header.html"
50+
FAIL=1
51+
else
52+
echo "PASS: Deprecated Universal Analytics removed from header.html"
53+
fi
54+
55+
exit $FAIL

0 commit comments

Comments
 (0)