Skip to content

Commit b61a846

Browse files
authored
Fixing website urls to local references and hosted binary files (#4518)
* Fixed http and https URLs to codenameone.com to relative URLs * Initial work on OTA skin directory * Redirecting to the developer guide PDF in the latest release
1 parent 81b7ce8 commit b61a846

25 files changed

+269
-942
lines changed

.github/workflows/pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
- 'docs/**'
1313
- '**/*.md'
1414
- '.github/workflows/developer-guide-docs.yml'
15+
- '.github/workflows/website-docs.yml'
1516
- 'CodenameOneDesigner/**'
1617
- 'Ports/IOSPort/**'
1718
push:
@@ -25,6 +26,7 @@ on:
2526
- 'docs/**'
2627
- '**/*.md'
2728
- '.github/workflows/developer-guide-docs.yml'
29+
- '.github/workflows/website-docs.yml'
2830
- 'CodenameOneDesigner/**'
2931
- 'Ports/IOSPort/**'
3032

.github/workflows/website-docs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,20 @@ jobs:
5050
set -euo pipefail
5151
gem install --no-document asciidoctor rouge
5252
53+
- name: Download latest OTA skins
54+
run: |
55+
set -euo pipefail
56+
scripts/website/fetch_ota_skins.sh
57+
env:
58+
GITHUB_TOKEN: ${{ github.token }}
59+
60+
- name: Update developer guide PDF redirect
61+
run: |
62+
set -euo pipefail
63+
scripts/website/update_developer_guide_redirect.sh
64+
env:
65+
GITHUB_TOKEN: ${{ github.token }}
66+
5367
- name: Build website
5468
run: |
5569
set -euo pipefail
@@ -58,6 +72,17 @@ jobs:
5872
WEBSITE_INCLUDE_JAVADOCS: "true"
5973
WEBSITE_INCLUDE_DEVGUIDE: "true"
6074

75+
- name: Validate OTA skin output
76+
run: |
77+
set -euo pipefail
78+
test -f docs/website/public/OTA/Skins.xml
79+
80+
- name: Validate developer guide redirect output
81+
run: |
82+
set -euo pipefail
83+
test -f docs/website/public/_redirects
84+
grep -Eq '^/files/developer-guide\.pdf https://github\.com/codenameone/CodenameOne/releases/download/.+/developer-guide\.pdf 302$' docs/website/public/_redirects
85+
6186
- name: Upload built site artifact
6287
uses: actions/upload-artifact@v4
6388
with:

docs/website/content/architecture-of-the-gui-builder.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The Codename One Designer isn't a standard code generator, the UI is saved withi
1818

1919
1. No fragile generated code to break.
2020
2. Designers who don't know Java can use the tool.
21-
3. The "[Codename One LIVE!](http://www.codenameone.com/codename-one-live.html)" application can show a live preview of your design as you build it.
21+
3. The "[Codename One LIVE!](/codename-one-live)" application can show a live preview of your design as you build it.
2222
4. Images and theme settings can be integrated directly with the GUI without concern.
2323
5. The tool is consistent since the file you save is the file you run.
2424
6. GUI's/themes can be downloaded dynamically without replacing the application (this can reduce download size).
@@ -46,7 +46,7 @@ Container c = u.createContainer(r, "uiNameInResource");
4646

4747
(Notice that since Form & Dialog both derive from Container you can just downcast to the appropriate type).
4848

49-
This would work for any resource file and can work completely dynamically! E.g. you can download a resource file on the fly and just show the UI that is within the resource file... That is what [Codename One LIVE!](http://www.codenameone.com/codename-one-live.html) is doing internally.
49+
This would work for any resource file and can work completely dynamically! E.g. you can download a resource file on the fly and just show the UI that is within the resource file... That is what [Codename One LIVE!](/codename-one-live) is doing internally.
5050

5151
### IDE Bindings
5252

docs/website/content/blog/java-is-superior-to-react-native-in-practically-every-way.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ compared to Codename One and has some obvious potential issues.
224224

225225
## Truly native cross-platform app development with Java or Kotlin for iOS, Android & Web.
226226

227-
[ Get Started ](https://codenameone.com/getting-started.html)
227+
[Get Started](/getting-started/)
228228

229-
[ Why Codename one? ](https://codenameone.com/introduction.html)
229+
[Why Codename one? ](/introduction/)
230230
---
231231

232232
## Archived Comments

docs/website/content/demo-camera-demo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ Blog Post: [link](/blog/camera-demo.html)
3535

3636
Source: [link](https://github.com/codenameone/CameraDemo)
3737

38-
JS Port: [link](http://www.codenameone.com/demos/CameraDemo/)
38+
JS Port: [link](/demos/CameraDemo/)
3939

40-
Android App: [link](http://www.codenameone.com/demos/CameraDemo/CameraDemo-release.apk)
40+
Android App: [link](/demos/CameraDemo/CameraDemo-release.apk)
4141

4242
ios: [link](#)

docs/website/content/demo-chrome.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ Since Apple doesn’t allow demos on itunes and doesn’t allow installing apps
3535

3636
Source: [link](https://github.com/codenameone/Chrome)
3737

38-
JS Port: [link](http://www.codenameone.com/demos/Chrome/)
38+
JS Port: [link](/demos/Chrome/)
3939

40-
Android App: [link](http://www.codenameone.com/demos/Chrome/Chrome-release.apk)
40+
Android App: [link](/demos/Chrome/Chrome-release.apk)
4141

4242
ios: [link](#)

docs/website/content/demo-clean-modern-port-of-psd-design-to-cross-platform-native-mobile-app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ Blog Post: [link](/template-clean-modern-ui-kit.html)
5555

5656
Source: [link](https://github.com/codenameone/CleanModernUIKit)
5757

58-
JS Port: [link](http://www.codenameone.com/demos/CleanModern/)
58+
JS Port: [link](/demos/CleanModern/)
5959

60-
Android App: [link](http://www.codenameone.com/demos/CleanModern/CleanModern-release.apk)
60+
Android App: [link](/demos/CleanModern/CleanModern-release.apk)

docs/website/content/demo-dr-sbaitso.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ Tutorial: [link](https://www.udemy.com/learn-mobile-programming-by-example-with-
3737

3838
Source: [link](https://github.com/codenameone/codenameone-demos/tree/master/DrSbaitso)
3939

40-
JS Port: [link](http://www.codenameone.com/demos/DrSbaitso/)
40+
JS Port: [link](/demos/DrSbaitso/)
4141

42-
Windows Desktop: [link](http://www.codenameone.com/demos/DrSbaitso/DrSbaitso.exe)
42+
Windows Desktop: [link](/demos/DrSbaitso/DrSbaitso.exe)
4343

44-
Mac App: [link](http://www.codenameone.com/demos/DrSbaitso/DrSbaitso.dmg)
44+
Mac App: [link](/demos/DrSbaitso/DrSbaitso.dmg)
4545

46-
Android App: [link](http://www.codenameone.com/demos/DrSbaitso/DrSbaitso-release.apk)
46+
Android App: [link](/demos/DrSbaitso/DrSbaitso-release.apk)
4747

4848
ios: [link](#)

docs/website/content/demo-geoviz-demo.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ Blog Post: [link](https://beta.codenameone.com/blog/geo-viz-and-codename-one.htm
3535

3636
Source: [link](https://github.com/codenameone/codenameone-demos/tree/master/GeoVizDemo)
3737

38-
JS Port: [link](http://www.codenameone.com/demos/GeoVizDemo/)
38+
JS Port: [link](/demos/GeoVizDemo/)
3939

40-
Windows Desktop: [link](http://www.codenameone.com/demos/GeoVizDemo/GeoVizDemo.exe)
40+
Windows Desktop: [link](/demos/GeoVizDemo/GeoVizDemo.exe)
4141

42-
Mac App: [link](http://www.codenameone.com/demos/GeoVizDemo/GeoVizDemo.dmg)
42+
Mac App: [link](/demos/GeoVizDemo/GeoVizDemo.dmg)
4343

44-
Android App: [link](http://www.codenameone.com/demos/GeoVizDemo/GeoVizDemo-release.apk)
44+
Android App: [link](/demos/GeoVizDemo/GeoVizDemo-release.apk)
4545

4646
ios: [link](#)

docs/website/content/demo-google-maps-demo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ Blog Post: [link](https://beta.codenameone.com/blog/new-improved-native-google-m
3535

3636
Source: [link](https://github.com/codenameone/codenameone-google-maps/tree/master/GoogleMapsTest)
3737

38-
JS Port: [link](http://www.codenameone.com/demos/GoogleMaps/)
38+
JS Port: [link](/demos/GoogleMaps/)
3939

40-
Android App: [link](http://www.codenameone.com/demos/GoogleMaps/GoogleMapsTestApp-release.apk)
40+
Android App: [link](/demos/GoogleMaps/GoogleMapsTestApp-release.apk)
4141

4242
ios: [link](#)

0 commit comments

Comments
 (0)