Skip to content

Commit cab1b67

Browse files
committed
PATCH(docs): rewrite unavailable ccl links to alternatives
1 parent e2d7ad6 commit cab1b67

9 files changed

Lines changed: 60 additions & 40 deletions

File tree

apps/docs/app/components/ClientFooter.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@
3333
</p>
3434
<p>
3535
Commercial licenses are also available. To inquire about commercial licenses, please contact Uri Wilensky at
36-
<Anchor href="mailto:netlogo-commercial-admin@ccl.northwestern.edu">
37-
netlogo-commercial-admin@ccl.northwestern.edu
38-
</Anchor>
36+
<Anchor href="mailto:netlogo@northwestern.edu"> netlogo@northwestern.edu </Anchor>
3937
.
4038
</p>
4139
<p>

apps/docs/autogen/contact.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ For help using NetLogo, ask questions on the
1717
http://groups.google.com/d/forum/netlogo-users.
1818

1919
If you have feedback, suggestions, or questions, you may write us at
20-
feedback@ccl.northwestern.edu.
20+
netlogo@northwestern.edu.
2121

2222
## Reporting bugs
2323

@@ -41,7 +41,7 @@ information as possible:
4141
message into your email, or make a screen capture if you are unable to copy
4242
and paste.
4343

44-
We also accept bug reports by email at bugs@ccl.northwestern.edu.
44+
We also accept bug reports by email at netlogo@northwestern.edu.
4545

4646
## Open source
4747

apps/docs/autogen/copyright.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ You should have received a copy of the GNU General Public License along with thi
2525

2626
## Commercial licenses
2727

28-
Commercial licenses are also available. To inquire about commercial licenses, please contact Uri Wilensky at [netlogo-commercial-admin@ccl.northwestern.edu](mailto:netlogo-commercial-admin@ccl.northwestern.edu).
28+
Commercial licenses are also available. To inquire about commercial licenses, please contact Uri Wilensky at [netlogo@northwestern.edu](mailto:netlogo@northwestern.edu).
2929

3030
## NetLogo User Manual license
3131

apps/docs/autogen/faq.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ or (at your option) any later version.
101101

102102
Commercial licenses are also available. To inquire about commercial licenses,
103103
please contact Uri Wilensky at
104-
<a href="mailto:netlogo-commercial-admin@ccl.northwestern.edu">netlogo-commercial-admin@ccl.northwestern.edu</a>.
104+
<a href="mailto:netlogo@northwestern.edu">netlogo@northwestern.edu</a>.
105105

106106
The source code is [on GitHub, here](https://github.com/NetLogo/NetLogo).
107107
Development discussion is on the
@@ -285,7 +285,7 @@ We also maintain an
285285
[advanced installation wiki page](https://github.com/NetLogo/NetLogo/wiki/Advanced-Installation)
286286
which may have additional tips and tricks. We encourage users who have problems
287287
with unattended installation or ideas on how it could be improved to email
288-
[feedback@ccl.northwestern.edu](mailto:feedback@ccl.northwestern.edu?subject=Unattended%20Installation).
288+
[netlogo@northwestern.edu](mailto:netlogo@northwestern.edu?subject=Unattended%20Installation).
289289

290290
## Running
291291

@@ -395,7 +395,7 @@ determine a root cause for this problem, but we're continuing to investigate.
395395
We're looking for assistance from you if you run into this problem. It would be
396396
extremely helpful if you could run the following command in the "Terminal"
397397
application and send the output in an email to
398-
[bugs@ccl.northwestern.edu](mailto:bugs@ccl.northwestern.edu?subject=Sierra%20NetLogo%206%20Bug).
398+
[netlogo@northwestern.edu](mailto:netlogo@northwestern.edu?subject=Sierra%20NetLogo%206%20Bug).
399399

400400
xattr -pl com.apple.quarantine /Applications/NetLogo\ {{version}}/NetLogo\ {{version}}.app
401401

@@ -413,7 +413,7 @@ off. The command is:
413413
Note that if you plan to run NetLogo 3D or HubNet Client you may also need to
414414
re-run that command once for each of those applications. If the workaround was
415415
not effective for you, please
416-
[send us an email and let us know](mailto:bugs@ccl.northwestern.edu?subject=Sierra%20NetLogo%206%20Bug%20Workaround).
416+
[send us an email and let us know](mailto:netlogo@northwestern.edu?subject=Sierra%20NetLogo%206%20Bug%20Workaround).
417417

418418
### NetLogo won't start on Windows or crashes suddenly on Mac OS Sierra
419419

@@ -427,7 +427,7 @@ settings or drivers. If you are unable to open NetLogo on Windows, you might be
427427
able to fix this by updating or reinstalling your graphics driver and/or
428428
disabling any graphics card utilities. Because NetLogo might be unable to start
429429
for a number of reasons, we encourage you to
430-
[contact us](mailto:bugs@ccl.northwestern.edu?subject=NetLogo%206%20Launch%20Problem%20in%20Windows)
430+
[contact us](mailto:netlogo@northwestern.edu?subject=NetLogo%206%20Launch%20Problem%20in%20Windows)
431431
if these steps aren't effective in resolving the problem.
432432

433433
### How can I speed up the launching of NetLogo on a remote server that is behind a proxy?

apps/docs/autogen/netlogo7intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,4 +371,4 @@ the
371371
option of the [NetLogo Preferences Dialog](netlogopreferences#overview) to
372372
enable or disable data collection. If you have any questions or concerns about
373373
the collection and storage of this data, feel free to contact the NetLogo team
374-
at feedback@ccl.northwestern.edu.
374+
at netlogo@northwestern.edu.

apps/docs/autogen/netlogopreferences.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ information is analyzed by the NetLogo team in order to understand how often
127127
certain NetLogo features are being used, so as to inform development priorities.
128128
No personal or identifying information will be collected. If you have any
129129
questions or concerns about the collection and storage of this data, feel free
130-
to contact the NetLogo team at feedback@ccl.northwestern.edu.
130+
to contact the NetLogo team at netlogo@northwestern.edu.
131131

132132
## Code Preferences
133133

apps/docs/autogen/transition.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ All primitives have been removed from the `cf` extension and replaced by the
7474
to use these primitives as an example on which to remodel NetLogo's existing
7575
`ifelse` and `ifelse-value` primitives. Because this would be a relatively large
7676
language change, we would love to hear any
77-
[feedback address](mailto:ccl-feedback@ccl.northwestern.edu) you may have from
77+
[feedback address](mailto:netlogo@northwestern.edu) you may have from
7878
using these `cf` extension primitives.
7979

8080
## Changes for NetLogo 6.0
@@ -118,7 +118,7 @@ cases it doesn't cover.
118118

119119
If your model doesn't fall into the above categories and doesn't convert or
120120
converts incorrectly, please email our
121-
[feedback address](mailto:ccl-feedback@ccl.northwestern.edu) and we'll be happy
121+
[feedback address](mailto:netlogo@northwestern.edu) and we'll be happy
122122
to offer whatever assistance we can.
123123

124124
### Link reporters overhauled to be more consistent and flexible

apps/learn/app/components/mdc/ProseA.vue

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<template>
2+
<Anchor :href="href" :target="props.target" :external="external">
3+
<slot />
4+
</Anchor>
5+
</template>
6+
7+
<script lang="ts">
8+
const rewrites = [
9+
{
10+
title: 'Rewrite CCL links to archived versions',
11+
match: (href: string): boolean =>
12+
href.startsWith('https://ccl.northwestern.edu/') || href.startsWith('http://ccl.northwestern.edu/'),
13+
rewrite: (href: string): string => {
14+
return `https://web.archive.org/web/${encodeURIComponent(href)}`
15+
},
16+
},
17+
]
18+
</script>
19+
20+
<script setup lang="ts">
21+
import type { PropType } from 'vue'
22+
23+
const props = defineProps({
24+
href: {
25+
type: String,
26+
default: '',
27+
},
28+
target: {
29+
type: String as PropType<'_blank' | '_parent' | '_self' | '_top' | (string & object) | null | undefined>,
30+
default: undefined,
31+
required: false,
32+
},
33+
})
34+
35+
const external = computed(() => {
36+
return props.href.startsWith('http') || props.href.startsWith('//')
37+
})
38+
39+
const href = computed(() =>
40+
rewrites.reduce((acc, rule) => {
41+
if (rule.match(acc)) {
42+
return rule.rewrite(acc)
43+
}
44+
return acc
45+
}, props.href)
46+
)
47+
</script>

0 commit comments

Comments
 (0)