Skip to content

Commit 0b46974

Browse files
committed
rename docs to website
1 parent 0c7be6b commit 0b46974

2,530 files changed

Lines changed: 47 additions & 46 deletions

File tree

Some content is hidden

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

.dockerignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/.husky/*
22
/.github/*
3-
/docs/data/*
4-
/docs/images/*
3+
/website/data/*
4+
/website/images/*
55
/guides/*
6+
*.md

.prettierignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
*.js
2-
docs/data/*.json
3-
docs/fonts/
2+
website/data/*.json
3+
website/fonts/
44
modules/
55
result.md
66
modules_temp/

README.md

Lines changed: 2 additions & 2 deletions

container/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ LABEL maintainer="MagicMirrorOrg"
2121
COPY container/default.conf /etc/nginx/conf.d/
2222
COPY container/nginx.conf /etc/nginx/
2323

24-
COPY --from=builder /workspace/docs /usr/share/nginx/docs/
24+
COPY --from=builder /workspace/website /usr/share/nginx/website/
2525

2626
EXPOSE 8080

container/default.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ server {
55
access_log /var/log/nginx/access.log main;
66

77
location / {
8-
root /usr/share/nginx/docs;
8+
root /usr/share/nginx/website;
99
index index.html index.htm;
1010
# Do not cache HTML to allow quick refresh of UI changes
1111
add_header Cache-Control "no-cache, no-store, must-revalidate";
1212
add_header Pragma "no-cache";
1313
add_header Expires "0";
1414
}
1515

16-
# Cache-bust static assets aggressively; paths are stable under docs/
16+
# Cache-bust static assets aggressively; paths are stable under website/
1717
location ~* \.(?:css|js|svg|woff2?|ttf|eot|ico|png|jpg|jpeg|gif|webp)$ {
18-
root /usr/share/nginx/docs;
18+
root /usr/share/nginx/website;
1919
access_log off;
2020
expires 30d;
2121
add_header Cache-Control "public, max-age=2592000, immutable";

create_own_module_list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function createModuleList () {
3939
};
4040

4141
fs.writeFileSync(
42-
"./docs/data/modules.stage.1.json",
42+
"./website/data/modules.stage.1.json",
4343
JSON.stringify(data, null, 2),
4444
"utf8"
4545
);

cspell.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"node_modules/",
3434
"modules/",
3535
"modules_temp/",
36-
"docs/**",
36+
"website/**",
3737
"eslint-config-DEBUG.json",
3838
"container/"
3939
],

eslint.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ export default defineConfig([
1313
ignores: [
1414
"modules/*",
1515
"modules_temp/*",
16-
"docs/data/modules*.json",
17-
"docs/fonts/*",
18-
"docs/result.html",
19-
"docs/result.md"
16+
"website/data/modules*.json",
17+
"website/fonts/*",
18+
"website/result.html",
19+
"website/result.md"
2020
]
2121
},
2222
{

scripts/check_modules.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def check_modules():
273273
}
274274

275275
modules_json_file = open(
276-
"./docs/data/modules.stage.5.json", encoding="utf-8")
276+
"./website/data/modules.stage.5.json", encoding="utf-8")
277277
modules = json.load(modules_json_file)
278278
stats = {
279279
"moduleCounter": 0,
@@ -566,29 +566,29 @@ def check_modules():
566566
)
567567

568568
# Writing to markdown
569-
with open("./docs/result.md", "w", encoding="utf-8") as output_file:
569+
with open("./website/result.md", "w", encoding="utf-8") as output_file:
570570
output_file.write(markdown_output)
571571

572572
# Serializing json
573573
json_object = json.dumps(modules, indent=2)
574574

575575
# Writing to modules.json
576-
with open("./docs/data/modules.json", "w", encoding="utf-8") as outfile:
576+
with open("./website/data/modules.json", "w", encoding="utf-8") as outfile:
577577
outfile.write(json_object)
578578

579579
# Serializing and minifying json
580580
json_object = json.dumps(modules)
581581

582582
# Writing to modules.min.json
583-
with open("./docs/data/modules.min.json", "w", encoding="utf-8") as outfile:
583+
with open("./website/data/modules.min.json", "w", encoding="utf-8") as outfile:
584584
outfile.write(json_object)
585585

586586
# Statistics
587587
# Serializing json
588588
statistics_json_object = json.dumps(stats, indent=2)
589589

590590
# Writing to stats.json
591-
with open("./docs/data/stats.json", "w", encoding="utf-8") as outfile:
591+
with open("./website/data/stats.json", "w", encoding="utf-8") as outfile:
592592
outfile.write(statistics_json_object)
593593

594594

scripts/check_modules_js.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from "node:fs";
22
// Disabled: import {isMinified} from "./utils.js";
33

4-
fs.readFile("./docs/data/modules.stage.4.json", "utf8", (err, data) => {
4+
fs.readFile("./website/data/modules.stage.4.json", "utf8", (err, data) => {
55
if (err) {
66
console.error(err);
77
return;
@@ -27,5 +27,5 @@ fs.readFile("./docs/data/modules.stage.4.json", "utf8", (err, data) => {
2727
}
2828
});
2929

30-
fs.writeFileSync("./docs/data/modules.stage.5.json", JSON.stringify(modules, null, 2));
30+
fs.writeFileSync("./website/data/modules.stage.5.json", JSON.stringify(modules, null, 2));
3131
});

0 commit comments

Comments
 (0)