From 038e88c9f64fc1e88fa8bde5bd4559f9e9aed23c Mon Sep 17 00:00:00 2001 From: weareoutman Date: Tue, 1 Aug 2023 18:46:36 +0800 Subject: [PATCH] Add README.md --- README.md | 48 +++++++++++++----------------------------------- 1 file changed, 13 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index aaba2fa1..7a27c34c 100644 --- a/README.md +++ b/README.md @@ -1,41 +1,19 @@ -# Website +# Bricks V3 Website -This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator. +https://bricks.js.org/ -### Installation +## Setup -``` -$ yarn -``` +Setup for bricks first, choose one: -### Local Development +- Have the `next-bricks` repository with in the same parent folder as this project. +- Or, create a `dev.config.js`: + ```js + module.exports = { + bricksDir: "/YOUR/ABSOLUTE/PATH/TO/next-bricks/bricks", + }; + ``` -``` -$ yarn start -``` +## Development -This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. - -### Build - -``` -$ yarn build -``` - -This command generates static content into the `build` directory and can be served using any static contents hosting service. - -### Deployment - -Using SSH: - -``` -$ USE_SSH=true yarn deploy -``` - -Not using SSH: - -``` -$ GIT_USER= yarn deploy -``` - -If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. +First run build script for your brick packages, then run `yarn start` of this project.