Skip to content

Commit

Permalink
Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Jul 13, 2023
1 parent d36889b commit c7cfeda
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 60 deletions.
5 changes: 1 addition & 4 deletions build/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@
<div class="uk-child-width-expand" uk-grid>
<div class="uk-text-left">
<br><a style="color: #666" href="https://github.com/armory3d/armortools">GitHub</a>
<br><a style="color: #666" href="https://github.com/armory3d/armortools/issues">Tracker</a>
<br><a style="color: #666" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4PLPYSRW3QXLW">Donate</a>
<br><a style="color: #666" href="https://armorlab.org/community">Contact</a>
</div>
<div class="uk-text-center">
<br><a style="color: #666" href="https://armorlab.org/community">Contact</a>
<br><a style="color: #666" href="https://www.youtube.com/c/armory3d">Youtube</a>
<br><a style="color: #666" href="https://www.artstation.com/armory">ArtStation</a>
</div>
<div class="uk-text-right">
<br><a style="color: #666" href="https://twitter.com/armory3d">Twitter</a>
<br><a style="color: #666" href="https://instagram.com/armory3d">Instagram</a>
<br><a style="color: #666" href="https://fb.me/armorytools">Facebook</a>
</div>
</div>
</div>
Expand Down
56 changes: 28 additions & 28 deletions build/make.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,31 @@ writeHtml('notes.html');
writeHtml('howto.html');
writeHtml('privacy.html');

fs.rmSync('../img/cloud', { recursive: true });
fs.mkdirSync('../img/cloud');

cloud_grid = `
<div class="uk-section uk-section-secondary">
<div style="justify-content: center; display: grid; grid-template-columns: repeat(auto-fill, 170px); max-width: 900px; margin: auto;">
`;

let icon_folders = [
'../../armorpaint_cloud/public/cloud/materials/scanned',
];

for (folder of icon_folders) {
fs.readdirSync(folder).forEach(file => {
let isMaterial = folder.indexOf('/materials') > 0;
if (file.endsWith(isMaterial ? '.png' : '.jpg')) {
fs.copyFileSync(folder + '/' + file, '../img/cloud/' + file);
label = file.slice(0, -9);
if (label.length > 13) label = label.substring(0, 11) + '...';
cloud_grid += '<div style="width: 70%; text-align: center; margin: auto;"><img src="' + (isMaterial ? 'img/cloud_raytraced/' : 'img/cloud/') + file + '"/><br>' + label + '<br><br></div>';
}
});
}

cloud_grid += '</div></div>';
cloud_grid += '<div class="uk-section uk-section-secondary"><div class="uk-text-center">Materials are available in the <a href="https://armorpaint.org/cloud.html">ArmorPaint cloud</a>. 🖌🎨<br><br></div></div>';

writeHtml('gallery.html', cloud_grid);
// fs.rmSync('../img/cloud', { recursive: true });
// fs.mkdirSync('../img/cloud');

// cloud_grid = `
// <div class="uk-section uk-section-secondary">
// <div style="justify-content: center; display: grid; grid-template-columns: repeat(auto-fill, 170px); max-width: 900px; margin: auto;">
// `;

// let icon_folders = [
// '../../armorpaint_cloud/public/cloud/materials/scanned',
// ];

// for (folder of icon_folders) {
// fs.readdirSync(folder).forEach(file => {
// let isMaterial = folder.indexOf('/materials') > 0;
// if (file.endsWith(isMaterial ? '.png' : '.jpg')) {
// fs.copyFileSync(folder + '/' + file, '../img/cloud/' + file);
// label = file.slice(0, -9);
// if (label.length > 13) label = label.substring(0, 11) + '...';
// cloud_grid += '<div style="width: 70%; text-align: center; margin: auto;"><img src="' + (isMaterial ? 'img/cloud_raytraced/' : 'img/cloud/') + file + '"/><br>' + label + '<br><br></div>';
// }
// });
// }

// cloud_grid += '</div></div>';
// cloud_grid += '<div class="uk-section uk-section-secondary"><div class="uk-text-center">Materials are available in the <a href="https://armorpaint.org/cloud.html">ArmorPaint cloud</a>. 🖌🎨<br><br></div></div>';

// writeHtml('gallery.html', cloud_grid);
5 changes: 1 addition & 4 deletions community.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,15 @@ <h1 class="uk-heading-divider ro-text-header"><a href="https://discord.gg/xqrKhG
<div class="uk-child-width-expand" uk-grid>
<div class="uk-text-left">
<br><a style="color: #666" href="https://github.com/armory3d/armortools">GitHub</a>
<br><a style="color: #666" href="https://github.com/armory3d/armortools/issues">Tracker</a>
<br><a style="color: #666" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4PLPYSRW3QXLW">Donate</a>
<br><a style="color: #666" href="https://armorlab.org/community">Contact</a>
</div>
<div class="uk-text-center">
<br><a style="color: #666" href="https://armorlab.org/community">Contact</a>
<br><a style="color: #666" href="https://www.youtube.com/c/armory3d">Youtube</a>
<br><a style="color: #666" href="https://www.artstation.com/armory">ArtStation</a>
</div>
<div class="uk-text-right">
<br><a style="color: #666" href="https://twitter.com/armory3d">Twitter</a>
<br><a style="color: #666" href="https://instagram.com/armory3d">Instagram</a>
<br><a style="color: #666" href="https://fb.me/armorytools">Facebook</a>
</div>
</div>
</div>
Expand Down
5 changes: 1 addition & 4 deletions download.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,18 +196,15 @@ <h2 class="uk-heading-divider ro-text-header">Latest Release</h2>
<div class="uk-child-width-expand" uk-grid>
<div class="uk-text-left">
<br><a style="color: #666" href="https://github.com/armory3d/armortools">GitHub</a>
<br><a style="color: #666" href="https://github.com/armory3d/armortools/issues">Tracker</a>
<br><a style="color: #666" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4PLPYSRW3QXLW">Donate</a>
<br><a style="color: #666" href="https://armorlab.org/community">Contact</a>
</div>
<div class="uk-text-center">
<br><a style="color: #666" href="https://armorlab.org/community">Contact</a>
<br><a style="color: #666" href="https://www.youtube.com/c/armory3d">Youtube</a>
<br><a style="color: #666" href="https://www.artstation.com/armory">ArtStation</a>
</div>
<div class="uk-text-right">
<br><a style="color: #666" href="https://twitter.com/armory3d">Twitter</a>
<br><a style="color: #666" href="https://instagram.com/armory3d">Instagram</a>
<br><a style="color: #666" href="https://fb.me/armorytools">Facebook</a>
</div>
</div>
</div>
Expand Down
5 changes: 1 addition & 4 deletions howto.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,15 @@ <h3>Learn ArmorLab by watching short clips.🎓</h3>
<div class="uk-child-width-expand" uk-grid>
<div class="uk-text-left">
<br><a style="color: #666" href="https://github.com/armory3d/armortools">GitHub</a>
<br><a style="color: #666" href="https://github.com/armory3d/armortools/issues">Tracker</a>
<br><a style="color: #666" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4PLPYSRW3QXLW">Donate</a>
<br><a style="color: #666" href="https://armorlab.org/community">Contact</a>
</div>
<div class="uk-text-center">
<br><a style="color: #666" href="https://armorlab.org/community">Contact</a>
<br><a style="color: #666" href="https://www.youtube.com/c/armory3d">Youtube</a>
<br><a style="color: #666" href="https://www.artstation.com/armory">ArtStation</a>
</div>
<div class="uk-text-right">
<br><a style="color: #666" href="https://twitter.com/armory3d">Twitter</a>
<br><a style="color: #666" href="https://instagram.com/armory3d">Instagram</a>
<br><a style="color: #666" href="https://fb.me/armorytools">Facebook</a>
</div>
</div>
</div>
Expand Down
5 changes: 1 addition & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -267,18 +267,15 @@ <h2 class="uk-heading-divider ro-text-header">Runs Everywhere</h2>
<div class="uk-child-width-expand" uk-grid>
<div class="uk-text-left">
<br><a style="color: #666" href="https://github.com/armory3d/armortools">GitHub</a>
<br><a style="color: #666" href="https://github.com/armory3d/armortools/issues">Tracker</a>
<br><a style="color: #666" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4PLPYSRW3QXLW">Donate</a>
<br><a style="color: #666" href="https://armorlab.org/community">Contact</a>
</div>
<div class="uk-text-center">
<br><a style="color: #666" href="https://armorlab.org/community">Contact</a>
<br><a style="color: #666" href="https://www.youtube.com/c/armory3d">Youtube</a>
<br><a style="color: #666" href="https://www.artstation.com/armory">ArtStation</a>
</div>
<div class="uk-text-right">
<br><a style="color: #666" href="https://twitter.com/armory3d">Twitter</a>
<br><a style="color: #666" href="https://instagram.com/armory3d">Instagram</a>
<br><a style="color: #666" href="https://fb.me/armorytools">Facebook</a>
</div>
</div>
</div>
Expand Down
5 changes: 1 addition & 4 deletions news.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,15 @@
<div class="uk-child-width-expand" uk-grid>
<div class="uk-text-left">
<br><a style="color: #666" href="https://github.com/armory3d/armortools">GitHub</a>
<br><a style="color: #666" href="https://github.com/armory3d/armortools/issues">Tracker</a>
<br><a style="color: #666" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4PLPYSRW3QXLW">Donate</a>
<br><a style="color: #666" href="https://armorlab.org/community">Contact</a>
</div>
<div class="uk-text-center">
<br><a style="color: #666" href="https://armorlab.org/community">Contact</a>
<br><a style="color: #666" href="https://www.youtube.com/c/armory3d">Youtube</a>
<br><a style="color: #666" href="https://www.artstation.com/armory">ArtStation</a>
</div>
<div class="uk-text-right">
<br><a style="color: #666" href="https://twitter.com/armory3d">Twitter</a>
<br><a style="color: #666" href="https://instagram.com/armory3d">Instagram</a>
<br><a style="color: #666" href="https://fb.me/armorytools">Facebook</a>
</div>
</div>
</div>
Expand Down
5 changes: 1 addition & 4 deletions notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,15 @@ <h2 class="uk-heading-divider ro-text-header">Release Notes</h2>
<div class="uk-child-width-expand" uk-grid>
<div class="uk-text-left">
<br><a style="color: #666" href="https://github.com/armory3d/armortools">GitHub</a>
<br><a style="color: #666" href="https://github.com/armory3d/armortools/issues">Tracker</a>
<br><a style="color: #666" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4PLPYSRW3QXLW">Donate</a>
<br><a style="color: #666" href="https://armorlab.org/community">Contact</a>
</div>
<div class="uk-text-center">
<br><a style="color: #666" href="https://armorlab.org/community">Contact</a>
<br><a style="color: #666" href="https://www.youtube.com/c/armory3d">Youtube</a>
<br><a style="color: #666" href="https://www.artstation.com/armory">ArtStation</a>
</div>
<div class="uk-text-right">
<br><a style="color: #666" href="https://twitter.com/armory3d">Twitter</a>
<br><a style="color: #666" href="https://instagram.com/armory3d">Instagram</a>
<br><a style="color: #666" href="https://fb.me/armorytools">Facebook</a>
</div>
</div>
</div>
Expand Down
5 changes: 1 addition & 4 deletions privacy.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,15 @@ <h2 class="uk-heading-divider ro-text-header">Privacy Policy</h2>
<div class="uk-child-width-expand" uk-grid>
<div class="uk-text-left">
<br><a style="color: #666" href="https://github.com/armory3d/armortools">GitHub</a>
<br><a style="color: #666" href="https://github.com/armory3d/armortools/issues">Tracker</a>
<br><a style="color: #666" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4PLPYSRW3QXLW">Donate</a>
<br><a style="color: #666" href="https://armorlab.org/community">Contact</a>
</div>
<div class="uk-text-center">
<br><a style="color: #666" href="https://armorlab.org/community">Contact</a>
<br><a style="color: #666" href="https://www.youtube.com/c/armory3d">Youtube</a>
<br><a style="color: #666" href="https://www.artstation.com/armory">ArtStation</a>
</div>
<div class="uk-text-right">
<br><a style="color: #666" href="https://twitter.com/armory3d">Twitter</a>
<br><a style="color: #666" href="https://instagram.com/armory3d">Instagram</a>
<br><a style="color: #666" href="https://fb.me/armorytools">Facebook</a>
</div>
</div>
</div>
Expand Down

0 comments on commit c7cfeda

Please sign in to comment.