diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 9e1760b..065f842 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -1,7 +1,10 @@
-type(scope): description
+# type(scope): description
@@ -16,5 +19,6 @@ Tag a reviewer: @
Tasks:
- [ ] I have ran the tests to make sure nothing is broken (see CONTRIBUTING.md)
- [ ] I have ran the the linter to make sure code is clean (see CONTRIBUTING.md)
+- [ ] I have reviewed my own code to remove changes that are not needed
\ No newline at end of file
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
index f00227c..a099951 100644
--- a/CODE_OF_CONDUCT.md
+++ b/CODE_OF_CONDUCT.md
@@ -61,6 +61,7 @@ representative at an online or offline event.
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
ayo@ayco.io.
+
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index b2d6e1f..0ffc468 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -26,11 +26,16 @@ This project aims to be a library that developers will use to create reactive UI
Currently, it is made up of [NPM workspaces](https://docs.npmjs.com/cli/v7/using-npm/workspaces), which are node projects that share a singular root package. It is good to understand the basics of this, but basically, the project will have multiple packages (under the `packages` directory) that share a common root package information.
Packages:
-1. [demo](https://github.com/ayoayco/astro-reactive-library/tree/main/demo#readme) - found in the directory `demo`
- - the demo Astro app that we use to test and demonstrate the library features
-2. [form](https://github.com/ayoayco/astro-reactive-library/tree/main/packages/form#readme) - found in the directory `packages/form`
- - allows developers to programatically build a Form for Astro
-3. [astro-reactive-validator](https://github.com/ayoayco/astro-reactive-library/tree/main/packages/astro-reactive-validator) - found in the directory `packages/astro-reactive-validator`
+1. [demo](https://github.com/ayoayco/astro-reactive-library/tree/main/apps/demo) in the directory `apps/demo`
+ - Astro web application that we use to test and demonstrate the library components
+1. [form](https://github.com/ayoayco/astro-reactive-library/tree/main/packages/form) in the directory `packages/form`
+ - component that allows developers to programmatically build a form
+1. [validator](https://github.com/ayoayco/astro-reactive-library/tree/main/packages/validator) in the directory `packages/astro-reactive-validator`
+ - component that allows developers to set up validators for their forms easily
+1. [docs](https://github.com/ayoayco/astro-reactive-library/tree/main/apps/docs) - in the directory `apps/docs`
+ - Astro website for the library's extensive documentation
+1. [landing-page](https://github.com/ayoayco/astro-reactive-library/tree/main/apps/landing-page) - in the directory `apps/landing-page`
+ - Astro website for the library's introductory landing page
# Running locally
@@ -67,15 +72,21 @@ https://localhost:3000
```
-# The Documentation website
+# Applications
-Want to update the documentation? We also maintain the documentation website in this repository. The source for this is found in the `docs` directory. You can also start the dev server for the docs website with the following command:
+We also maintain the documentation website and the project landing page in this repository. The source for these applications is found in the `apps` directory.
+
+You can start the dev server for the docs and landing-page websites with the following commands:
```
npm run docs
```
+```
+npm run landing-page
+```
+
# Running the linter and tests
Please run the linter and tests before creating a PR to avoid delays in PR reviews. Fix all linting errors or failing tests whey you run the following commands.
@@ -88,7 +99,7 @@ npm run lint
npm test
```
-β¨ _HINT: Some linting errors could automatically fixed with a command_
+β¨ _HINT: Some linting errors could be automatically fixed with a command_
```
npm run lint:fix
@@ -96,7 +107,7 @@ npm run lint:fix
# Hacking with the packages
-As mentioned above, this project involves packages that are intened to be used in Astro applications. The demo app is our way to test and play with the packages.
+As mentioned above, this project involves packages that are intended to be used in Astro applications. The demo app is our way to test and play with the packages.
If you plan to add features or fix bugs that are found in the packages, such as `@astro-reactive/form`, you can find the source code for this inside the `packages` directory.
diff --git a/README.md b/README.md
index f3edefe..e298c9f 100644
--- a/README.md
+++ b/README.md
@@ -17,9 +17,9 @@
| Packages | Version | Description |
| --- | --- | --- |
-| [@astro-reactive/form](https://github.com/ayoayco/astro-reactive-library/blob/main/packages/form/README.md) | [](https://www.npmjs.com/package/@astro-reactive/form) | generate a dynamic form which can be modified programatically |
+| [@astro-reactive/form](https://github.com/ayoayco/astro-reactive-library/blob/main/packages/form/README.md) | [](https://www.npmjs.com/package/@astro-reactive/form) | generate a dynamic form which can be modified programmatically |
| [@astro-reactive/validator](https://github.com/ayoayco/astro-reactive-library/blob/main/packages/validator/README.md)| [](https://www.npmjs.com/package/@astro-reactive/validator) | set up validators for your form easily |
-| astro-reactive-datagrid | π | generate a dynamic datagrid or table of values |
+| @astro-reactive/data-grid | π | generate a dynamic data grid of values |
# HACKTOBERFEST 2022
@@ -75,10 +75,22 @@ https://localhost:3000
npm test
```
-_[Please report issues and suggestions](https://github.com/ayoayco/astro-reactive-library/issues)_
+## Other apps
+
+We also maintain the docs website and the project landing page in this repository. Run the following to start the dev servers:
+
+```
+npm run docs
+```
+
+```
+npm run landing-page
+```
# Contributors
+This project is only possible because of the support and contribution of our community β€οΈ
+
diff --git a/apps/demo/README.md b/apps/demo/README.md
index 39d1d49..ead0266 100644
--- a/apps/demo/README.md
+++ b/apps/demo/README.md
@@ -1,6 +1,7 @@
-# Demo App for Astro Reactive Form π₯
+
-To start the app:
+# Demo App for Astro Reactive Library
-1. `npm i`
-1. `npm start`
+Start the dev server by running: `npm start`
+
+π _[Join our contributors!](https://github.com/ayoayco/astro-reactive-library/blob/main/CONTRIBUTING.md)_
diff --git a/apps/docs/README.md b/apps/docs/README.md
index 68bed03..d29425a 100644
--- a/apps/docs/README.md
+++ b/apps/docs/README.md
@@ -1,173 +1,7 @@
-# Astro Starter Kit: Docs Site
+
-```bash
-npm create astro@latest -- --template docs
-```
+# Documentation Website
-[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/docs)
+Start the dev server by running: `npm run docs`
-
-
-
-## Features
-
-- β
**Full Markdown support**
-- β
**Responsive mobile-friendly design**
-- β
**Sidebar navigation**
-- β
**Search (powered by Algolia)**
-- β
**Multi-language i18n**
-- β
**Automatic table of contents**
-- β
**Automatic list of contributors**
-- β
(and, best of all) **dark mode**
-
-## Commands Cheatsheet
-
-All commands are run from the root of the project, from a terminal:
-
-| Command | Action |
-| :--------------------- | :----------------------------------------------- |
-| `npm install` | Installs dependencies |
-| `npm run dev` | Starts local dev server at `localhost:3000` |
-| `npm run build` | Build your production site to `./dist/` |
-| `npm run preview` | Preview your build locally, before deploying |
-| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
-| `npm run astro --help` | Get help using the Astro CLI |
-
-To deploy your site to production, check out our [Deploy an Astro Website](https://docs.astro.build/guides/deploy) guide.
-
-## New to Astro?
-
-Welcome! Check out [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
-
-## Customize This Theme
-
-### Site metadata
-
-`src/config.ts` contains several data objects that describe metadata about your site like title, description, default language, and Open Graph details. You can customize these to match your project.
-
-### CSS styling
-
-The theme's look and feel is controlled by a few key variables that you can customize yourself. You'll find them in the `src/styles/theme.css` CSS file.
-
-If you've never worked with CSS variables before, give [MDN's guide on CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) a quick read.
-
-This theme uses a "cool blue" accent color by default. To customize this for your project, change the `--theme-accent` variable to whatever color you'd like:
-
-```diff
-/* src/styles/theme.css */
-:root {
- color-scheme: light;
-- --theme-accent: hsla(var(--color-blue), 1);
-+ --theme-accent: hsla(var(--color-red), 1); /* or: hsla(#FF0000, 1); */
-```
-
-## Page metadata
-
-Astro uses frontmatter in Markdown pages to choose layouts and pass properties to those layouts. If you are using the default layout, you can customize the page in many different ways to optimize SEO and other things. For example, you can use the `title` and `description` properties to set the document title, meta title, meta description, and Open Graph description.
-
-```markdown
----
-title: Example title
-description: Really cool docs example that uses Astro
-layout: ../../layouts/MainLayout.astro
----
-
-# Page content...
-```
-
-For more SEO related properties, look at `src/components/HeadSEO.astro`
-
-### Sidebar navigation
-
-The sidebar navigation is controlled by the `SIDEBAR` variable in your `src/config.ts` file. You can customize the sidebar by modifying this object. A default, starter navigation has already been created for you.
-
-```ts
-export const SIDEBAR = {
- en: [
- { text: "Section Header", header: true },
- { text: "Introduction", link: "en/introduction" },
- { text: "Page 2", link: "en/page-2" },
- { text: "Page 3", link: "en/page-3" },
-
- { text: "Another Section", header: true },
- { text: "Page 4", link: "en/page-4" },
- ],
-};
-```
-
-Note the top-level `en` key: This is needed for multi-language support. You can change it to whatever language you'd like, or add new languages as you go. More details on this below.
-
-### Multiple Languages support
-
-The Astro docs template supports multiple langauges out of the box. The default theme only shows `en` documentation, but you can enable multi-language support features by adding a second language to your project.
-
-To add a new language to your project, you'll want to extend the current `src/pages/[lang]/...` layout:
-
-```diff
- π src/pages
- β£ π en
- β β£ π page-1.md
- β β£ π page-2.md
- β β£ π page-3.astro
-+ β£ π es
-+ β β£ π page-1.md
-+ β β£ π page-2.md
-+ β β£ π page-3.astro
-```
-
-You'll also need to add the new language name to the `KNOWN_LANGUAGES` map in your `src/config.ts` file. This will enable your new language switcher in the site header.
-
-```diff
-// src/config.ts
-export const KNOWN_LANGUAGES = {
- English: 'en',
-+ Spanish: 'es',
-};
-```
-
-Last step: you'll need to add a new entry to your sidebar, to create the table of contents for that language. While duplicating every page might not sound ideal to everyone, this extra control allows you to create entirely custom content for every language.
-
-> Make sure the sidebar `link` value points to the correct language!
-
-```diff
-// src/config.ts
-export const SIDEBAR = {
- en: [
- { text: 'Section Header', header: true, },
- { text: 'Introduction', link: 'en/introduction' },
- // ...
- ],
-+ es: [
-+ { text: 'Encabezado de secciΓ³n', header: true, },
-+ { text: 'IntroducciΓ³n', link: 'es/introduction' },
-+ // ...
-+ ],
-};
-
-// ...
-```
-
-If you plan to use Spanish as the the default language, you just need to modify the redirect path in `src/pages/index.astro`:
-
-```diff
-
-```
-
-You can also remove the above script and write a landing page in Spanish instead.
-
-### What if I don't plan to support multiple languages?
-
-That's totally fine! Not all projects need (or can support) multiple languages. You can continue to use this theme without ever adding a second language.
-
-If that single language is not English, you can just replace `en` in directory layouts and configurations with the preferred language.
-
-### Search (Powered by Algolia)
-
-[Algolia](https://www.algolia.com/) offers a free service to qualified open source projects called [DocSearch](https://docsearch.algolia.com/). If you are accepted to the DocSearch program, provide your API Key & index name in `src/config.ts` and a search box will automatically appear in your site header.
-
-Note that Aglolia and Astro are not affiliated. We have no say over acceptance to the DocSearch program.
-
-If you'd prefer to remove Algolia's search and replace it with your own, check out the `src/components/Header.astro` component to see where the component is added.
+π _[Join our contributors!](https://github.com/ayoayco/astro-reactive-library/blob/main/CONTRIBUTING.md)_
diff --git a/apps/docs/package.json b/apps/docs/package.json
index 6cca086..a4c4b30 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -6,6 +6,7 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
+ "docs": "astro dev",
"check": "astro check && tsc",
"build": "astro build",
"preview": "astro preview",
diff --git a/apps/landing-page/README.md b/apps/landing-page/README.md
index bea6349..0317c4b 100644
--- a/apps/landing-page/README.md
+++ b/apps/landing-page/README.md
@@ -1,49 +1,7 @@
-# Welcome to [Astro](https://astro.build)
+
-[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
+# Landing Page
-> π§βπ **Seasoned astronaut?** Delete this file. Have fun!
+Start the dev server by running: `npm run landing-page`
-
-
-
-## π Project Structure
-
-Inside of your Astro project, you'll see the following folders and files:
-
-```
-/
-βββ public/
-β βββ favicon.svg
-βββ src/
-β βββ components/
-β β βββ Card.astro
-β βββ layouts/
-β β βββ Layout.astro
-β βββ pages/
-β βββ index.astro
-βββ package.json
-```
-
-Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
-
-There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
-
-Any static assets, like images, can be placed in the `public/` directory.
-
-## π§ Commands
-
-All commands are run from the root of the project, from a terminal:
-
-| Command | Action |
-| :--------------------- | :------------------------------------------------- |
-| `npm install` | Installs dependencies |
-| `npm run dev` | Starts local dev server at `localhost:3000` |
-| `npm run build` | Build your production site to `./dist/` |
-| `npm run preview` | Preview your build locally, before deploying |
-| `npm run astro ...` | Run CLI commands like `astro add`, `astro preview` |
-| `npm run astro --help` | Get help using the Astro CLI |
-
-## π Want to learn more?
-
-Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
+π _[Join our contributors!](https://github.com/ayoayco/astro-reactive-library/blob/main/CONTRIBUTING.md)_
\ No newline at end of file
diff --git a/apps/landing-page/package.json b/apps/landing-page/package.json
index b3c239b..036c7a1 100644
--- a/apps/landing-page/package.json
+++ b/apps/landing-page/package.json
@@ -5,6 +5,7 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
+ "landing-page": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
diff --git a/packages/form/README.md b/packages/form/README.md
index 2af9bed..9c3e386 100644
--- a/packages/form/README.md
+++ b/packages/form/README.md
@@ -2,13 +2,21 @@
Astro Reactive Form
- Generate a dynamic form based on your data, and modify programatically.
+ Generate a dynamic form based on your data, and modify programmatically.
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+