From 83c382d3619a89cf8793c78e542f65e94f42b429 Mon Sep 17 00:00:00 2001 From: Araozu Date: Thu, 21 Nov 2024 21:21:09 -0500 Subject: [PATCH] refactor: move learn files to versioned folder --- src/components/Sidebar.astro | 6 +- src/layouts/NewDocsLayout.astro | 15 +- src/pages/en/latest/learn/_wrapper.astro | 7 +- .../en/latest/learn/classes/abstract.mdx | 9 + .../latest}/learn/classes/anonymous.mdx | 4 +- .../latest}/learn/classes/constructor.mdx | 4 +- .../latest}/learn/classes/definition.mdx | 4 +- .../latest}/learn/classes/inheritance.mdx | 4 +- .../latest}/learn/classes/interfaces.mdx | 4 +- .../{ => en/latest}/learn/classes/magic.mdx | 4 +- .../en/latest/learn/classes/readonly.mdx | 15 + .../{ => en/latest}/learn/classes/static.mdx | 4 +- .../en/latest/learn/classes/visibility.mdx | 7 + .../latest}/learn/data-structures/arrays.mdx | 4 +- .../latest}/learn/data-structures/enums.mdx | 4 +- .../latest}/learn/data-structures/maps.mdx | 4 +- .../latest}/learn/data-structures/tuples.mdx | 4 +- .../latest}/learn/data-structures/unions.mdx | 4 +- .../latest}/learn/error-handling/null.mdx | 4 +- .../latest}/learn/error-handling/try.mdx | 6 +- .../latest}/learn/flow-control/blocks.mdx | 4 +- .../learn/flow-control/conditionals.mdx | 4 +- .../latest}/learn/flow-control/loops.mdx | 4 +- .../latest}/learn/flow-control/match.mdx | 4 +- .../latest}/learn/functions/declaration.mdx | 4 +- .../latest}/learn/functions/higher-order.mdx | 4 +- .../latest}/learn/functions/lambdas.mdx | 4 +- .../latest}/learn/functions/parameters.mdx | 4 +- .../latest}/learn/templating/components.mdx | 6 +- .../latest}/learn/templating/control-flow.mdx | 6 +- .../latest}/learn/templating/intro.mdx | 6 +- .../latest}/learn/templating/props.mdx | 6 +- src/pages/learn/basics/comments.mdx | 61 ---- src/pages/learn/basics/datatypes.mdx | 86 ----- src/pages/learn/basics/hello-world.mdx | 45 --- src/pages/learn/basics/operators.mdx | 120 ------- src/pages/learn/basics/variables.mdx | 98 ------ src/pages/learn/cheatsheet.mdx | 230 ------------- src/pages/learn/classes/abstract.mdx | 9 - src/pages/learn/classes/readonly.mdx | 15 - src/pages/learn/classes/visibility.mdx | 7 - src/pages/learn/ideas/idea_1.md | 251 -------------- src/pages/learn/index.mdx | 305 ------------------ src/pages/learn/install.md | 28 -- 44 files changed, 100 insertions(+), 1328 deletions(-) create mode 100644 src/pages/en/latest/learn/classes/abstract.mdx rename src/pages/{ => en/latest}/learn/classes/anonymous.mdx (83%) rename src/pages/{ => en/latest}/learn/classes/constructor.mdx (96%) rename src/pages/{ => en/latest}/learn/classes/definition.mdx (97%) rename src/pages/{ => en/latest}/learn/classes/inheritance.mdx (88%) rename src/pages/{ => en/latest}/learn/classes/interfaces.mdx (76%) rename src/pages/{ => en/latest}/learn/classes/magic.mdx (77%) create mode 100644 src/pages/en/latest/learn/classes/readonly.mdx rename src/pages/{ => en/latest}/learn/classes/static.mdx (86%) create mode 100644 src/pages/en/latest/learn/classes/visibility.mdx rename src/pages/{ => en/latest}/learn/data-structures/arrays.mdx (87%) rename src/pages/{ => en/latest}/learn/data-structures/enums.mdx (89%) rename src/pages/{ => en/latest}/learn/data-structures/maps.mdx (96%) rename src/pages/{ => en/latest}/learn/data-structures/tuples.mdx (75%) rename src/pages/{ => en/latest}/learn/data-structures/unions.mdx (91%) rename src/pages/{ => en/latest}/learn/error-handling/null.mdx (96%) rename src/pages/{ => en/latest}/learn/error-handling/try.mdx (96%) rename src/pages/{ => en/latest}/learn/flow-control/blocks.mdx (78%) rename src/pages/{ => en/latest}/learn/flow-control/conditionals.mdx (89%) rename src/pages/{ => en/latest}/learn/flow-control/loops.mdx (92%) rename src/pages/{ => en/latest}/learn/flow-control/match.mdx (86%) rename src/pages/{ => en/latest}/learn/functions/declaration.mdx (96%) rename src/pages/{ => en/latest}/learn/functions/higher-order.mdx (83%) rename src/pages/{ => en/latest}/learn/functions/lambdas.mdx (94%) rename src/pages/{ => en/latest}/learn/functions/parameters.mdx (94%) rename src/pages/{ => en/latest}/learn/templating/components.mdx (95%) rename src/pages/{ => en/latest}/learn/templating/control-flow.mdx (86%) rename src/pages/{ => en/latest}/learn/templating/intro.mdx (96%) rename src/pages/{ => en/latest}/learn/templating/props.mdx (93%) delete mode 100644 src/pages/learn/basics/comments.mdx delete mode 100644 src/pages/learn/basics/datatypes.mdx delete mode 100644 src/pages/learn/basics/hello-world.mdx delete mode 100644 src/pages/learn/basics/operators.mdx delete mode 100644 src/pages/learn/basics/variables.mdx delete mode 100644 src/pages/learn/cheatsheet.mdx delete mode 100644 src/pages/learn/classes/abstract.mdx delete mode 100644 src/pages/learn/classes/readonly.mdx delete mode 100644 src/pages/learn/classes/visibility.mdx delete mode 100644 src/pages/learn/ideas/idea_1.md delete mode 100644 src/pages/learn/index.mdx delete mode 100644 src/pages/learn/install.md diff --git a/src/components/Sidebar.astro b/src/components/Sidebar.astro index 94de770..c9ac403 100644 --- a/src/components/Sidebar.astro +++ b/src/components/Sidebar.astro @@ -7,10 +7,6 @@ const basePath: string = Astro.props.basePath; const entryPath = is_index_file(entry.path)? "": entry.path; const entryUrl = basePath + entryPath + (entryPath.endsWith("/")? "" : "/"); -console.table({ - basePath, - entryPath, -}) function is_index_file(p) { return p.endsWith("index") @@ -35,7 +31,7 @@ function is_index_file(p) { entry.children && ( <>
- {entry.title} + {entry.title.replaceAll("-", " ")}