Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLDR-17610 v46 BRS: keyboard chart rename #3691

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
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
Loading