Skip to content

Commit 4306bf4

Browse files
authored
Removing bad urls take3 (#4521)
* Removed additional bad reply URLs * Fixed a few links * Fixed blog redirect URLs to local host * Added linter to broken links * Fixed additional paths and hardened CI * Relaxed lint rules * Improved lint to focus on markdown and fixed images in the developer guide * Fixed a few broken images and links * Fixed some paths * Fixed HTML urls * Replaced linters with standard web based linters * Switched to faster linter * Fixed contributing path
1 parent 05b292a commit 4306bf4

File tree

567 files changed

+6681
-6703
lines changed

Some content is hidden

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

567 files changed

+6681
-6703
lines changed

.github/workflows/website-docs.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,35 @@ jobs:
7272
WEBSITE_INCLUDE_JAVADOCS: "true"
7373
WEBSITE_INCLUDE_DEVGUIDE: "true"
7474

75+
- name: Validate internal links and images
76+
uses: lycheeverse/lychee-action@v2
77+
with:
78+
args: >-
79+
--offline
80+
--no-progress
81+
docs/website/public/**/*.html
82+
83+
- name: Reject absolute codenameone.com links
84+
run: |
85+
set -euo pipefail
86+
report="docs/website/reports/disallowed-codenameone-links.txt"
87+
mkdir -p "$(dirname "$report")"
88+
rg -n --no-heading -S '\]\((https?:)?//(www\.)?codenameone\.com([/:?#)]|$)|<https?://(www\.)?codenameone\.com([/:?#>]|$)|(href|src)=["'"'"']https?://(www\.)?codenameone\.com([/:?#]|$)' \
89+
docs/website/content docs/website/layouts docs/website/static > "$report" || true
90+
if [ -s "$report" ]; then
91+
echo "Disallowed absolute codenameone.com links found (use relative URLs or non-www subdomains):" >&2
92+
sed -n '1,200p' "$report" >&2
93+
exit 1
94+
fi
95+
96+
- name: Upload codenameone link policy report
97+
if: ${{ always() }}
98+
uses: actions/upload-artifact@v4
99+
with:
100+
name: codenameone-link-policy-report
101+
path: docs/website/reports/disallowed-codenameone-links.txt
102+
if-no-files-found: ignore
103+
75104
- name: Validate OTA skin output
76105
run: |
77106
set -euo pipefail

docs/developer-guide/About-This-Guide.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This developer guide is sourced directly from the `docs` directory of the https:
77

88
=== How to Contribute Updates
99

10-
To contribute updates, clone the repository, create a feature branch, and edit the AsciiDoc files in `docs/developer-guide`. Follow the steps in the link:../../CONTRIBUTING.md[CONTRIBUTING guidelines] to open a GitHub pull request (PR) instead of using the deprecated community wiki. Each PR is automatically linted and built by continuous integration, then reviewed by a maintainer before it is merged. Once merged, the content is rendered to the web manual at https://www.codenameone.com/manual/ and to the downloadable PDF at https://www.codenameone.com/files/developer-guide.pdf[https://www.codenameone.com/files/developer-guide.pdf]. Periodically, major revisions are collected for print-on-demand distribution.
10+
To contribute updates, clone the repository, create a feature branch, and edit the AsciiDoc files in `docs/developer-guide`. Follow the steps in the link:https://github.com/codenameone/CodenameOne/blob/master/docs/website/CONTRIBUTING.md[CONTRIBUTING guidelines] to open a GitHub pull request (PR) instead of using the deprecated community wiki. Each PR is automatically linted and built by continuous integration, then reviewed by a maintainer before it is merged. Once merged, the content is rendered to the web manual at https://www.codenameone.com/manual/ and to the downloadable PDF at https://www.codenameone.com/files/developer-guide.pdf[https://www.codenameone.com/files/developer-guide.pdf]. Periodically, major revisions are collected for print-on-demand distribution.
1111

1212
While this guide focuses on tutorial and conceptual material, the complete API reference remains available in the https://www.codenameone.com/javadoc/[Codename One JavaDoc]. The source code for the framework and this manual lives alongside each other in Git, so improvements to documentation and code can evolve together through the same contribution workflow.
1313

docs/website/content/about-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ With the free version, there is a JAR size limit of 1 - 8.5mb. Notice that this
4040

4141
The free tier allows you to use your generated apps commercially and place have no restrictions on them. There are no nag screens or license limitations!
4242

43-
There are many additional benefits and additional features you can get in the paid plans, see the [pricing details here](https://www.codenameone.com/pricing.html).
43+
There are many additional benefits and additional features you can get in the paid plans, see the [pricing details here](/pricing/).
4444

4545
### Where can I learn more?
4646

docs/website/content/advanced-build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ Build hints/arguments allow us to manipulate the build process on the build serv
1818

1919
When sending a build to the server you can provide additional parameters to the build which will be incorporated into the build process on the server to hint on multiple different build time options.You can do this by right clicking the Codename One project and entering the project properties. There you will find the "Build Hints" tab in which you can just type the arguments and the appropriate values from the list below.
2020

21-
We removed this page since it duplicates content from the developer guide and we should probably maintain only one **authoritative** list. The up to date list is [here](https://www.codenameone.com/manual/advanced-topics.html#_sending_arguments_to_the_build_server).
21+
We removed this page since it duplicates content from the developer guide and we should probably maintain only one **authoritative** list. The up to date list is [here](/manual/advanced-topics/#_sending_arguments_to_the_build_server).

docs/website/content/blog/3-image-tools-for-app-marketing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ Good promotional material is no substitute for good app design, but it’s a ste
7272
_This post was automatically migrated from the legacy Codename One blog. The original comments are preserved below for historical context. New discussion happens in the Discussion section._
7373

7474

75-
### **Chris Moore** — May 30, 2019 at 7:49 am ([permalink](https://www.codenameone.com/blog/3-image-tools-for-app-marketing.html#comment-24041))
75+
### **Chris Moore** — May 30, 2019 at 7:49 am ([permalink](/blog/3-image-tools-for-app-marketing/#comment-24041))
7676

7777
> Hey Shai!
7878
>
7979
> Nice tips. I wonder whether you’ve tried Promomatic ([https://www.promomatic.com/)](<https://www.promomatic.com/>)) for building app screenshots instead of AppLaunchPad? Super easy to use and cost effective when building for the app store launch. Found them on Product Hunt a few months back.
8080
>
81-
> [Log in to Reply](https://www.codenameone.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.codenameone.com%2Fblog%2F3-image-tools-for-app-marketing.html)
81+
8282

8383
---
8484

docs/website/content/blog/5-tips-for-gamifying-your-mobile-app.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,44 +82,44 @@ Notice: This post was automatically converted using a script from an older blogg
8282
_This post was automatically migrated from the legacy Codename One blog. The original comments are preserved below for historical context. New discussion happens in the Discussion section._
8383

8484

85-
### **Anonymous** — March 24, 2013 at 2:56 pm ([permalink](https://www.codenameone.com/blog/5-tips-for-gamifying-your-mobile-app.html#comment-24251))
85+
### **Anonymous** — March 24, 2013 at 2:56 pm ([permalink](/blog/5-tips-for-gamifying-your-mobile-app/#comment-24251))
8686

8787
> Anonymous says:
8888
>
8989
> Great post guys!
9090
>
9191
> Keep up the good work!
9292
>
93-
> [Log in to Reply](https://www.codenameone.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.codenameone.com%2Fblog%2F5-tips-for-gamifying-your-mobile-app.html)
9493
9594

96-
### **Anonymous** — March 24, 2013 at 4:20 pm ([permalink](https://www.codenameone.com/blog/5-tips-for-gamifying-your-mobile-app.html#comment-21425))
95+
96+
### **Anonymous** — March 24, 2013 at 4:20 pm ([permalink](/blog/5-tips-for-gamifying-your-mobile-app/#comment-21425))
9797

9898
> Anonymous says:
9999
>
100100
> Very cool. Thanks for the post!
101101
>
102-
> [Log in to Reply](https://www.codenameone.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.codenameone.com%2Fblog%2F5-tips-for-gamifying-your-mobile-app.html)
103102
104103

105-
### **Anonymous** — November 13, 2013 at 10:25 am ([permalink](https://www.codenameone.com/blog/5-tips-for-gamifying-your-mobile-app.html#comment-21681))
104+
105+
### **Anonymous** — November 13, 2013 at 10:25 am ([permalink](/blog/5-tips-for-gamifying-your-mobile-app/#comment-21681))
106106

107107
> Anonymous says:
108108
>
109109
> Thanks for this post. Do you have any examples of utility apps that do this well? Eg, Telecoms, banking, power etc
110110
>
111-
> [Log in to Reply](https://www.codenameone.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.codenameone.com%2Fblog%2F5-tips-for-gamifying-your-mobile-app.html)
112111
113112

114-
### **Balbir singh** — February 7, 2018 at 10:16 am ([permalink](https://www.codenameone.com/blog/5-tips-for-gamifying-your-mobile-app.html#comment-23869))
113+
114+
### **Balbir singh** — February 7, 2018 at 10:16 am ([permalink](/blog/5-tips-for-gamifying-your-mobile-app/#comment-23869))
115115

116116
> Balbir singh says:
117117
>
118118
> thanks for sharing this informative post about mobile app.
119119
> [http://www.nanoarchsoftware…](<http://www.nanoarchsoftware.com/Services/mobile-application>)
120120
> .
121121
>
122-
> [Log in to Reply](https://www.codenameone.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.codenameone.com%2Fblog%2F5-tips-for-gamifying-your-mobile-app.html)
122+
123123

124124
---
125125

docs/website/content/blog/64-bit-oss-vm.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,22 @@ Notice: This post was automatically converted using a script from an older blogg
5656
_This post was automatically migrated from the legacy Codename One blog. The original comments are preserved below for historical context. New discussion happens in the Discussion section._
5757

5858

59-
### **Anonymous** — November 10, 2014 at 8:13 am ([permalink](https://www.codenameone.com/blog/64-bit-oss-vm.html#comment-21907))
59+
### **Anonymous** — November 10, 2014 at 8:13 am ([permalink](/blog/64-bit-oss-vm/#comment-21907))
6060

6161
> Anonymous says:
6262
>
6363
> I got an error when I tried to build with the new vm
6464
>
65-
> [Log in to Reply](https://www.codenameone.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.codenameone.com%2Fblog%2F64-bit-oss-vm.html)
6665
6766

68-
### **Anonymous** — November 26, 2014 at 8:14 am ([permalink](https://www.codenameone.com/blog/64-bit-oss-vm.html#comment-22175))
67+
68+
### **Anonymous** — November 26, 2014 at 8:14 am ([permalink](/blog/64-bit-oss-vm/#comment-22175))
6969

7070
> Anonymous says:
7171
>
7272
> Can you post on the forum with more details e.g. build error log?
7373
>
74-
> [Log in to Reply](https://www.codenameone.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.codenameone.com%2Fblog%2F64-bit-oss-vm.html)
74+
7575

7676
---
7777

docs/website/content/blog/a-junior-software-developers-journey-at-codename-one.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ I barely wrote 100 lines of code (not the best ones). Even worst than that, I fe
3535

3636
### What Really Helped?
3737

38-
I found the [Codename One developer guide](https://www.codenameone.com/developer-guide.html) to be the best learning resource. It’s great for learning your way around the tool and understanding its components.
38+
I found the [Codename One developer guide](/developer-guide/) to be the best learning resource. It’s great for learning your way around the tool and understanding its components.
3939

40-
In the [How Do I](https://www.codenameone.com/how-do-i.html) section I found some very helpful video tutorials that also helped a lot with learning common use cases, like the [Layout basics](https://www.codenameone.com/how_di_i/how-do-i-positioning-components-using-layout-managers.html) video, and the [How to convert a PSD Design into a Native Mobile App](https://www.codenameone.com/video/how-to-convert-a-psd-design-into-a-native-mobile-app.html).
40+
In the [How Do I](/how-do-i/) section I found some very helpful video tutorials that also helped a lot with learning common use cases, like the [Layout basics](/how_di_i/how-do-i-positioning-components-using-layout-managers/) video, and the [How to convert a PSD Design into a Native Mobile App](/video/how-to-convert-a-psd-design-into-a-native-mobile-app/).
4141

4242
At that point, I was comfortable enough with a good foundation level knowledge and my work seemed much smoother and stress-free.
4343

@@ -63,29 +63,21 @@ And even better, the app contains links to the [source code](https://github.com/
6363

6464
But more importantly, users can see and learn about the application structure and how it needs to be written.
6565

66-
![](https://www.codenameone.com/wp-content/uploads/2020/12/kitchen-sink-screenshot_1-169x300.png)
6766

68-
![](https://www.codenameone.com/wp-content/uploads/2020/12/kitchen-sink-screenshot_2-169x300.png)
69-
70-
![](https://www.codenameone.com/wp-content/uploads/2020/12/kitchen-sink-screenshot_3-169x300.png)
71-
72-
![](https://www.codenameone.com/wp-content/uploads/2020/12/kitchen-sink-screenshot_4-169x300.png)
73-
74-
![](https://www.codenameone.com/wp-content/uploads/2020/12/kitchen-sink-screenshot_5-169x300.png)
7567
---
7668

7769
## Archived Comments
7870

7971
_This post was automatically migrated from the legacy Codename One blog. The original comments are preserved below for historical context. New discussion happens in the Discussion section._
8072

8173

82-
### **[email protected]** — December 26, 2020 at 2:56 pm ([permalink](https://www.codenameone.com/blog/a-junior-software-developers-journey-at-codename-one.html#comment-24368))
74+
### **[email protected]** — December 26, 2020 at 2:56 pm ([permalink](/blog/a-junior-software-developers-journey-at-codename-one/#comment-24368))
8375

8476
> [[email protected]](/cdn-cgi/l/email-protection) says:
8577
>
8678
> Looking forward to having an extra hand on CN1, Sergey. Welcome 🙂
8779
>
88-
> [Log in to Reply](https://www.codenameone.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.codenameone.com%2Fblog%2Fa-junior-software-developers-journey-at-codename-one.html)
80+
8981

9082
---
9183

docs/website/content/blog/a-new-idea.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ by copying them to the new plugin. Be sure to let us know immediately if you run
103103
_This post was automatically migrated from the legacy Codename One blog. The original comments are preserved below for historical context. New discussion happens in the Discussion section._
104104

105105

106-
### **Therk** — April 13, 2016 at 11:42 pm ([permalink](https://www.codenameone.com/blog/a-new-idea.html#comment-22656))
106+
### **Therk** — April 13, 2016 at 11:42 pm ([permalink](/blog/a-new-idea/#comment-22656))
107107

108108
> Thank you for improving the plugin. It is more intuitive even though it may not be consistent with other IntelliJ plugins. Unfortunately, I started to get a NullPointerException when setting up the Run configuration for a new sample application.
109109
> I am not sure the best way to report such issues, but the stack trace is:
@@ -201,10 +201,10 @@ _This post was automatically migrated from the legacy Codename One blog. The ori
201201
> at java.awt.EventDispatchThread.pumpEvents([EventDispatchThread.java](<http://EventDispatchThread.java>):93)
202202
> at [java.awt.EventDispatchThrea…](<http://java.awt.EventDispatchThread.run)([EventDispatchThread.java](http://EventDispatchThread.java)>:82)
203203
>
204-
> [Log in to Reply](https://www.codenameone.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.codenameone.com%2Fblog%2Fa-new-idea.html)
205204
206205

207-
### **Therk** — April 14, 2016 at 12:21 am ([permalink](https://www.codenameone.com/blog/a-new-idea.html#comment-22484))
206+
207+
### **Therk** — April 14, 2016 at 12:21 am ([permalink](/blog/a-new-idea/#comment-22484))
208208

209209
> A few suggestion on improving the IDEA plugin:
210210
> 1\. In the Codename One Preferences, tabbing between fields does not seem to work, requiring a mouse click into next fields. For example in the Login or iOS Certificate Wizard.
@@ -215,19 +215,19 @@ _This post was automatically migrated from the legacy Codename One blog. The ori
215215
> 6\. It should allow to select existing App ID and name for an application.
216216
> 7\. Under Global Preferences and iOS Certificate Wizard, App ID and name should probably not be required, as I think Global Preferences are to be shared between other CodenameOne application.
217217
>
218-
> [Log in to Reply](https://www.codenameone.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.codenameone.com%2Fblog%2Fa-new-idea.html)
219218
220219

221-
### **Shai Almog** — April 14, 2016 at 2:36 am ([permalink](https://www.codenameone.com/blog/a-new-idea.html#comment-22585))
220+
221+
### **Shai Almog** — April 14, 2016 at 2:36 am ([permalink](/blog/a-new-idea/#comment-22585))
222222

223223
> Thanks!
224224
> Those are great issues/RFE’s.
225225
> The right place to file them so they don’t get lost under our workload is the issue tracker at [http://github.com/codenameo…](<http://github.com/codenameone/CodenameOne/issues/>)
226226
>
227-
> [Log in to Reply](https://www.codenameone.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.codenameone.com%2Fblog%2Fa-new-idea.html)
228227
229228

230-
### **Shai Almog** — April 14, 2016 at 8:08 am ([permalink](https://www.codenameone.com/blog/a-new-idea.html#comment-22766))
229+
230+
### **Shai Almog** — April 14, 2016 at 8:08 am ([permalink](/blog/a-new-idea/#comment-22766))
231231

232232
> Shai Almog says:
233233
>
@@ -237,44 +237,44 @@ _This post was automatically migrated from the legacy Codename One blog. The ori
237237
> 6\. It should have the existing app id from your app which must match the package name of your project.
238238
> 7\. The global version of the wizard should allow you to customize the app id as it can be a * certificate but it can reside anywhere e.g. I can make a com.mycompany.* or just plain * as my default. This matters to the provisioning profile.
239239
>
240-
> [Log in to Reply](https://www.codenameone.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.codenameone.com%2Fblog%2Fa-new-idea.html)
241240
242241

243-
### **Shai Almog** — April 14, 2016 at 8:14 am ([permalink](https://www.codenameone.com/blog/a-new-idea.html#comment-22774))
242+
243+
### **Shai Almog** — April 14, 2016 at 8:14 am ([permalink](/blog/a-new-idea/#comment-22774))
244244

245245
> Shai Almog says:
246246
>
247247
> How do you set the run configuration?
248248
> I see the problem but I can’t reproduce it to make sure the fix is correct.
249249
>
250-
> [Log in to Reply](https://www.codenameone.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.codenameone.com%2Fblog%2Fa-new-idea.html)
251250
252251

253-
### **Eric Coolman** — April 28, 2016 at 9:50 pm ([permalink](https://www.codenameone.com/blog/a-new-idea.html#comment-22466))
252+
253+
### **Eric Coolman** — April 28, 2016 at 9:50 pm ([permalink](/blog/a-new-idea/#comment-22466))
254254

255255
> Eric Coolman says:
256256
>
257257
> Great work, and thanks! 🙂
258258
>
259-
> [Log in to Reply](https://www.codenameone.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.codenameone.com%2Fblog%2Fa-new-idea.html)
260259
261260

262-
### **James van Kessel** — May 20, 2016 at 3:56 pm ([permalink](https://www.codenameone.com/blog/a-new-idea.html#comment-22606))
261+
262+
### **James van Kessel** — May 20, 2016 at 3:56 pm ([permalink](/blog/a-new-idea/#comment-22606))
263263

264264
> James van Kessel says:
265265
>
266266
> Hi Shai, For someone with an existing project, are there any warnings or cautions you’d give someone still using an older CN1 plugin (i am still on 3.1) before clicking “update Plugin”?
267267
>
268-
> [Log in to Reply](https://www.codenameone.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.codenameone.com%2Fblog%2Fa-new-idea.html)
269268
270269

271-
### **Shai Almog** — May 21, 2016 at 3:51 am ([permalink](https://www.codenameone.com/blog/a-new-idea.html#comment-22611))
270+
271+
### **Shai Almog** — May 21, 2016 at 3:51 am ([permalink](/blog/a-new-idea/#comment-22611))
272272

273273
> Shai Almog says:
274274
>
275275
> If you update to the latest it will be the new plugin and there is no warning. Notice that on the plugin page at IDEA you can always download the older versions of the plugin if you need it while we fix a potential issue you might run into.
276276
>
277-
> [Log in to Reply](https://www.codenameone.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.codenameone.com%2Fblog%2Fa-new-idea.html)
277+
278278

279279
---
280280

0 commit comments

Comments
 (0)