Skip to content

Commit

Permalink
CLDR-17610 v46 BRS: keyboard chart rename
Browse files Browse the repository at this point in the history
- rename from keyboard to keyboards, matching prior releases
- the pre-45 charts were under 'keyboards/'
  • Loading branch information
srl295 committed May 6, 2024
1 parent f9f77ba commit 4953b71
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
# Note: will update ToC if out of date
run: 'cd tools/scripts/tr-archive/ && npm ci && npm run build'
- name: Run Kbd Charts
run: 'cd docs/charts/keyboard && npm ci && npm run build'
run: 'cd docs/charts/keyboards && npm ci && npm run build'
- name: Upload tr35.zip
uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ ga_tracking: UA-7672775-1
ga_tracking_anonymize_ip: true # Use GDPR compliant Google Analytics settings

exclude:
- charts/keyboard/node_modules
- charts/keyboard/node
- charts/keyboards/node_modules
- charts/keyboards/node
- ldml

#include:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

public class GenerateKeyboardCharts {

static final String SUBDIR = "keyboards";

public static void main(String args[]) throws IOException {
final File mainDir = new File(CLDRPaths.CHART_DIRECTORY);
if (mainDir.mkdirs()) {
Expand All @@ -17,7 +19,7 @@ public static void main(String args[]) throws IOException {
if (!mainDir.isDirectory()) {
throw new IOException("Main dir doesn't exist: " + mainDir);
}
final File kbdDir = new File(CLDRPaths.BASE_DIRECTORY, "docs/charts/keyboard");
final File kbdDir = new File(CLDRPaths.BASE_DIRECTORY, "docs/charts/" + SUBDIR);
if (!kbdDir.exists()) {
throw new IOException("Keyboards root dir doesn't exist: " + kbdDir);
}
Expand All @@ -29,16 +31,16 @@ public static void main(String args[]) throws IOException {
System.err.println("See " + new File(kbdDir, "README.md") + " for help.");
return;
}
final File staticTarg = new File(mainDir, "keyboard/static");
final File staticDataTarg = new File(mainDir, "keyboard/static/data");
final File staticTarg = new File(mainDir, SUBDIR + "/static");
final File staticDataTarg = new File(mainDir, SUBDIR + "/static/data");
if (staticDataTarg.mkdirs()) {
System.err.println("Created: " + staticDataTarg);
}
System.out.println("Copying: " + kbdStatic + " to " + staticTarg);

Files.copy(
new File(kbdDir, "index.html").toPath(),
new File(mainDir, "keyboard/index.html").toPath(),
new File(mainDir, SUBDIR + "/index.html").toPath(),
StandardCopyOption.REPLACE_EXISTING);
final String kbdStaticPrefix = kbdStatic.getAbsolutePath();
Files.walk(kbdStatic.toPath())
Expand Down
2 changes: 1 addition & 1 deletion tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<module>cldr-code</module>
<module>cldr-apps</module>
<module>cldr-rdf</module>
<module>../docs/charts/keyboard</module>
<module>../docs/charts/keyboards</module>
</modules>

<dependencyManagement>
Expand Down

0 comments on commit 4953b71

Please sign in to comment.