This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update docs related to designkit (#750)
- Loading branch information
Showing
6 changed files
with
40 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ See the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md) for more info | |
## Setup for contributors | ||
|
||
To add a contribution to Alva (improve its features, fix issues), | ||
get the source of the application itself, and if you don't already have a Alva compatible styleguide, the kickstart styleguide (designkit): | ||
get the source of the application itself, and if you don't already have a Alva compatible styleguide, the kickstart styleguide (alva-design): | ||
|
||
1. Clone the [alva](https://github.com/meetalva/alva) repository: | ||
|
||
|
@@ -55,19 +55,19 @@ npm i && npm start | |
|
||
If you don't have a compatible styleguide, follow the next steps: | ||
|
||
1. Clone the [designkit](https://github.com/meetalva/designkit) repository: | ||
1. Clone the [Alva Design](https://github.com/meetalva/alva-design) repository: | ||
|
||
```shell | ||
git clone [email protected]:meetalva/designkit.git | ||
git clone [email protected]:meetalva/alva-design.git | ||
``` | ||
|
||
2. Run this command to build the designkit for Alva: | ||
2. Run this command to build the Alva Design Library for Alva: | ||
|
||
```shell | ||
npm i && npm build | ||
``` | ||
|
||
3. Now you should be able to open the designkit inside Alva | ||
3. Now you should be able to open the Alva Design Library inside Alva | ||
|
||
## Typedoc | ||
|
||
|
@@ -141,7 +141,7 @@ All the sources of Alva are located in `src`, divided into the following folders | |
|
||
* **components**: All React components for the project, page, page-element, and property panes, as well as the design preview in the middle of the page. Components may be smart (they may contain their own state), but only as long as the state is nothing global, related to multiple components, or fundamental enough. In this case, the state is maintained by the store (see below). | ||
* **electron**: The bootstrap code to start the Electron App, including the container HTML, and the main menu. | ||
* **lsg**: The styled components Alva uses, as a living styleguide. Do not mixup this styleguide with the designkit (which also is a styleguide). The LSG contains the styled, logic-less components which are used by the Alva UI. The designkit contains the patterns the designer uses to create a basic design (wireframes). | ||
* **lsg**: The styled components Alva uses, as a living styleguide. Do not mixup this styleguide with the designkit (which also is a styleguide). The LSG contains the styled, logic-less components which are used by the Alva UI. The Alva Design Library contains the patterns the designer uses to create a basic design (wireframes). | ||
* **resources**: Resources are files related to the build, like the icons. | ||
* **store**: The store is the data-center and business logic of Alva. It is a collection of MobX observables and does not contain any UI elements like React components. Instead, all components bind their props to this store by decorating with `@MobX.observer`. The store contains the Alva projects and pages the user edits, as well as the styleguide and styleguide analyzers, the logic to interpret your frontend pattern components. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,11 +24,11 @@ installed on your machine. | |
* :globe_with_meridians: Internet connection | ||
|
||
|
||
## 1. Setup up Alva Designkit | ||
## 1. Setup up Alva Design Library | ||
|
||
> ❔ | ||
> In this guide we'll skip the project setup | ||
> part by reusing the Alva Designkit. | ||
> part by reusing the Alva Design Library. | ||
> | ||
> If you want to start fresh, skip to our [Create a Library Guide](./create-library.md) | ||
|
@@ -39,7 +39,7 @@ continuing with step 2. | |
|
||
!(video:https://media.meetalva.io/video/add-hello-world.m4v) | ||
|
||
Open your favorite text editor in the Alva Designkit folder you just | ||
Open your favorite text editor in the Alva Design Library folder you just | ||
connected to Alva. We'll show [VSCode](https://code.visualstudio.com/) in screenshots and videos but any text editor will do. | ||
|
||
Let's create a new folder called "Hello World" with an `index.tsx` file in it: | ||
|
@@ -73,7 +73,7 @@ export * from './hello-world'; | |
## 3. Build your changes | ||
|
||
For Alva to understand your new code you need to build it with the [TypeScript](https://www.typescriptlang.org/) compiler. | ||
Let's do that real quick. Execute the following command in your Alva Designkit folder. | ||
Let's do that real quick. Execute the following command in your Alva Design Library folder. | ||
|
||
``` | ||
npm run build | ||
|
@@ -84,22 +84,22 @@ When TypeScript is done translating your code the terminal window should resembl | |
``` | ||
λ npm run build | ||
> [email protected] build /Users/marneb/Documents/alva/designkit | ||
> [email protected] build /Users/marneb/Documents/alva/alva-design | ||
> tsc | ||
~/alva/designkit | ||
~/alva/alva-design | ||
λ | ||
``` | ||
|
||
We are all set, let's switch back to Alva. | ||
|
||
## 4. Update Designkit in your Alva project | ||
## 4. Update Alva Design Library in your Alva project | ||
|
||
!(video:https://media.meetalva.io/video/update-library.m4v) | ||
|
||
Start Alva and open the project you created while working through the [Connect a Library Guide](./library). | ||
|
||
On the `meetalva-designkit` card hit the "Update" button. Wait for the card to switch back from "Connecting" to "Connected". | ||
Open the "Libraries" Tab. On the `Alva Website UI` card hit the "Update" button. Wait for the card to switch back from "Connecting" to "Connected". | ||
|
||
|
||
## 5. Use the Hello World component | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0b13c7d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deployed at: https://alva-commits-0b13c.surge.sh