From e8c6d9b615a66c2a402d1c3fb0d28f078d7cafa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Ciszczo=C5=84?= Date: Tue, 22 Oct 2024 15:52:32 +0200 Subject: [PATCH] Create sensible content structure --- .editorconfig | 11 +++++++++++ package.json | 2 +- src/content/docs/index.mdx | 3 +++ .../docs/school/01-learning-hive/hive-coding.md | 7 +++++++ src/content/docs/school/01-learning-hive/index.md | 6 ++++++ .../docs/school/01-learning-hive/introduction.md | 7 +++++++ src/content/docs/school/01-learning-hive/l2.md | 7 +++++++ .../school/01-learning-hive/lets-code-something.md | 7 +++++++ src/content/docs/school/01-learning-hive/wax.md | 7 +++++++ .../docs/school/02-history-witness-app/3speak.md | 6 ++++++ .../docs/school/02-history-witness-app/auth.md | 7 +++++++ .../school/02-history-witness-app/bootstrapping.md | 7 +++++++ .../docs/school/02-history-witness-app/exhibitions.md | 6 ++++++ .../docs/school/02-history-witness-app/index.md | 6 ++++++ .../02-history-witness-app/publishing-on-hive.md | 6 ++++++ .../docs/school/02-history-witness-app/tech-stack.md | 7 +++++++ .../docs/school/02-history-witness-app/wrap-up.md | 6 ++++++ src/content/docs/school/index.md | 6 ------ src/styles/home.css | 9 +++++++-- src/styles/theme.css | 1 + 20 files changed, 115 insertions(+), 9 deletions(-) create mode 100644 .editorconfig create mode 100644 src/content/docs/school/01-learning-hive/hive-coding.md create mode 100644 src/content/docs/school/01-learning-hive/index.md create mode 100644 src/content/docs/school/01-learning-hive/introduction.md create mode 100644 src/content/docs/school/01-learning-hive/l2.md create mode 100644 src/content/docs/school/01-learning-hive/lets-code-something.md create mode 100644 src/content/docs/school/01-learning-hive/wax.md create mode 100644 src/content/docs/school/02-history-witness-app/3speak.md create mode 100644 src/content/docs/school/02-history-witness-app/auth.md create mode 100644 src/content/docs/school/02-history-witness-app/bootstrapping.md create mode 100644 src/content/docs/school/02-history-witness-app/exhibitions.md create mode 100644 src/content/docs/school/02-history-witness-app/index.md create mode 100644 src/content/docs/school/02-history-witness-app/publishing-on-hive.md create mode 100644 src/content/docs/school/02-history-witness-app/tech-stack.md create mode 100644 src/content/docs/school/02-history-witness-app/wrap-up.md delete mode 100644 src/content/docs/school/index.md diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f69c1ae --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +# Generated by editorconfig.timseverien.com +# https://editor.timseverien.com/#config +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_style = space +insert_final_newline = true +tab_width = 2 +trim_trailing_whitespace = true diff --git a/package.json b/package.json index a456dda..50ff4f9 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,6 @@ "prettier-plugin-astro": "^0.14.1" }, "lint-staged": { - "*.{js,ts,astro,css,md,mdx}": "prettier --write" + "*.{js,ts,astro,css,md,mdx,mjs,cjs}": "prettier --write" } } diff --git a/src/content/docs/index.mdx b/src/content/docs/index.mdx index 9074aae..d506e0b 100644 --- a/src/content/docs/index.mdx +++ b/src/content/docs/index.mdx @@ -2,6 +2,7 @@ title: Homepage description: Get started with the OnHive.io website. tableOfContents: false +published: false hero: tagline: Welcome to OnHive.io, a documentation and tutorial site for building apps on the Hive blockchain. image: @@ -16,3 +17,5 @@ hero: icon: external variant: minimal --- + +import "../../styles/home.css"; diff --git a/src/content/docs/school/01-learning-hive/hive-coding.md b/src/content/docs/school/01-learning-hive/hive-coding.md new file mode 100644 index 0000000..a187195 --- /dev/null +++ b/src/content/docs/school/01-learning-hive/hive-coding.md @@ -0,0 +1,7 @@ +--- +title: Coding on Hive +description: How to write software that will run on the Hive blockchain, and what can you do with it? +sidebar: + order: 30 + label: Coding on Hive +--- diff --git a/src/content/docs/school/01-learning-hive/index.md b/src/content/docs/school/01-learning-hive/index.md new file mode 100644 index 0000000..f5a742c --- /dev/null +++ b/src/content/docs/school/01-learning-hive/index.md @@ -0,0 +1,6 @@ +--- +title: Learning Hive +sidebar: + order: 0 + label: 01 Learning Hive +--- diff --git a/src/content/docs/school/01-learning-hive/introduction.md b/src/content/docs/school/01-learning-hive/introduction.md new file mode 100644 index 0000000..5af2119 --- /dev/null +++ b/src/content/docs/school/01-learning-hive/introduction.md @@ -0,0 +1,7 @@ +--- +title: Introduction to Blockchain & Hive +description: Introduction to the Hive Coding School, as well as the idea of blockchain and Hive blockchain in particular. +sidebar: + order: 10 + label: Blockchain & Hive +--- diff --git a/src/content/docs/school/01-learning-hive/l2.md b/src/content/docs/school/01-learning-hive/l2.md new file mode 100644 index 0000000..b3caa7b --- /dev/null +++ b/src/content/docs/school/01-learning-hive/l2.md @@ -0,0 +1,7 @@ +--- +title: Layer 2 +description: What is a layer 2 blockchain? What are L2 chains on Hive? +sidebar: + order: 20 + label: Layer 2 +--- diff --git a/src/content/docs/school/01-learning-hive/lets-code-something.md b/src/content/docs/school/01-learning-hive/lets-code-something.md new file mode 100644 index 0000000..dfc2f95 --- /dev/null +++ b/src/content/docs/school/01-learning-hive/lets-code-something.md @@ -0,0 +1,7 @@ +--- +title: Let's Code Something! +description: Let's write something useful on the Hive blockchain using a few different approaches. +sidebar: + order: 40 + label: Let's Code! +--- diff --git a/src/content/docs/school/01-learning-hive/wax.md b/src/content/docs/school/01-learning-hive/wax.md new file mode 100644 index 0000000..1ff0672 --- /dev/null +++ b/src/content/docs/school/01-learning-hive/wax.md @@ -0,0 +1,7 @@ +--- +title: Introducing Wax +description: Learn Wax, a polyglot development toolkit for building apps on Hive blockchain. +sidebar: + order: 50 + label: Introducing Wax +--- diff --git a/src/content/docs/school/02-history-witness-app/3speak.md b/src/content/docs/school/02-history-witness-app/3speak.md new file mode 100644 index 0000000..c0f6d64 --- /dev/null +++ b/src/content/docs/school/02-history-witness-app/3speak.md @@ -0,0 +1,6 @@ +--- +title: 3Speak Integration +sidebar: + order: 40 + label: 3Speak Integration +--- diff --git a/src/content/docs/school/02-history-witness-app/auth.md b/src/content/docs/school/02-history-witness-app/auth.md new file mode 100644 index 0000000..265ab16 --- /dev/null +++ b/src/content/docs/school/02-history-witness-app/auth.md @@ -0,0 +1,7 @@ +--- +title: Authenticating and Managing Users +description: Learn how to create and authenticate users on Hive blockchain. +sidebar: + order: 20 + label: User Auth & Management +--- diff --git a/src/content/docs/school/02-history-witness-app/bootstrapping.md b/src/content/docs/school/02-history-witness-app/bootstrapping.md new file mode 100644 index 0000000..1b77b88 --- /dev/null +++ b/src/content/docs/school/02-history-witness-app/bootstrapping.md @@ -0,0 +1,7 @@ +--- +title: Bootstrapping the History Witness App +description: Let's start a new Hive app from scratch! +sidebar: + order: 10 + label: Bootstrapping the App +--- diff --git a/src/content/docs/school/02-history-witness-app/exhibitions.md b/src/content/docs/school/02-history-witness-app/exhibitions.md new file mode 100644 index 0000000..c1c4468 --- /dev/null +++ b/src/content/docs/school/02-history-witness-app/exhibitions.md @@ -0,0 +1,6 @@ +--- +title: Creating Exhibitions +sidebar: + order: 50 + label: Creating Exhibitions +--- diff --git a/src/content/docs/school/02-history-witness-app/index.md b/src/content/docs/school/02-history-witness-app/index.md new file mode 100644 index 0000000..76fdf83 --- /dev/null +++ b/src/content/docs/school/02-history-witness-app/index.md @@ -0,0 +1,6 @@ +--- +title: History Witnesses — Building an App +sidebar: + order: 0 + label: 02 Building an App +--- diff --git a/src/content/docs/school/02-history-witness-app/publishing-on-hive.md b/src/content/docs/school/02-history-witness-app/publishing-on-hive.md new file mode 100644 index 0000000..6f11919 --- /dev/null +++ b/src/content/docs/school/02-history-witness-app/publishing-on-hive.md @@ -0,0 +1,6 @@ +--- +title: Posting on Hive +sidebar: + order: 30 + label: Posting on Hive +--- diff --git a/src/content/docs/school/02-history-witness-app/tech-stack.md b/src/content/docs/school/02-history-witness-app/tech-stack.md new file mode 100644 index 0000000..72e8d9c --- /dev/null +++ b/src/content/docs/school/02-history-witness-app/tech-stack.md @@ -0,0 +1,7 @@ +--- +title: Full App Tech Stack +description: "Learn how to build a full-stack web app on Hive: what tools can you use and how to integrate them." +sidebar: + order: 5 + label: Tech Stack +--- diff --git a/src/content/docs/school/02-history-witness-app/wrap-up.md b/src/content/docs/school/02-history-witness-app/wrap-up.md new file mode 100644 index 0000000..40728e8 --- /dev/null +++ b/src/content/docs/school/02-history-witness-app/wrap-up.md @@ -0,0 +1,6 @@ +--- +title: Wrapping up & Next Steps +sidebar: + order: 60 + label: Next Steps +--- diff --git a/src/content/docs/school/index.md b/src/content/docs/school/index.md deleted file mode 100644 index 2ab11e4..0000000 --- a/src/content/docs/school/index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: What is Hive Coding School? -description: Test ---- - -Test diff --git a/src/styles/home.css b/src/styles/home.css index 63b43f5..3d50c24 100644 --- a/src/styles/home.css +++ b/src/styles/home.css @@ -1,5 +1,10 @@ /* Adjust padding for stylistic purposes */ .sl-markdown-content { - padding-bottom: 1rem !important; - margin-top: 0; + /*padding-bottom: 1rem !important;*/ + /*margin-top: 0;*/ + display: none; +} + +.meta { + display: none; } diff --git a/src/styles/theme.css b/src/styles/theme.css index d9ff5c0..10d3887 100644 --- a/src/styles/theme.css +++ b/src/styles/theme.css @@ -112,6 +112,7 @@ header.header { /* Add padding to meta */ .meta { padding-inline-end: var(--sl-content-pad-x); + padding: 1.5rem var(--sl-content-pad-x); } /* Adjust padding on pages with hero component */