From 5b1b4d496ac59558d8b2b3391c9f3f00bce090d2 Mon Sep 17 00:00:00 2001 From: Atul R Date: Sat, 3 Aug 2019 00:29:11 +0200 Subject: [PATCH] Added dev docs --- docs/README.md | 4 +- docs/development/README.md | 22 +++++ .../{setting_up.md => getting-started.md} | 80 +------------------ docs/development/setting-up.md | 68 ++++++++++++++++ docs/development/signal_and_event_handling.md | 5 +- 5 files changed, 97 insertions(+), 82 deletions(-) rename docs/development/{setting_up.md => getting-started.md} (78%) create mode 100644 docs/development/setting-up.md diff --git a/docs/README.md b/docs/README.md index 3eaf75b02..f40680995 100644 --- a/docs/README.md +++ b/docs/README.md @@ -57,6 +57,6 @@ - [Events usage](todo) - [Yoga properties using stylesheet usage](todo) -## Development +## Development/Contributor's Guide -See [development/README.md](development/README.md) +See [development](development/README.md) diff --git a/docs/development/README.md b/docs/development/README.md index e69de29bb..9a74fd96a 100644 --- a/docs/development/README.md +++ b/docs/development/README.md @@ -0,0 +1,22 @@ +# Contributor's guide + +This guide is for everyone who want's to contribute to the development of NodeGui. + +Please make sure you have read the [User's guides](/) before reading this guide. + +- [Setting up the NodeGui Contributor's Environment](development/setting-up.md) + - [Setting up macOS](development/setting-up.md#macosx) + - [Setting up Windows](development/setting-up.md#windows) + - [Setting up Linux](development/setting-up.md#linux) +- [Getting started](development/getting-started.md) + - [Code Structure](development/getting-started.md#Code-Structure) + - [Wrapping a widget: TLDR version](development/getting-started.md#Wrapping-a-widget) + - [Learning Materials](development/getting-started.md#Learning-Materials) +- [Styling](development/styling.md) + - [Painting](development/styling.md#painting) + - [Layout](development/styling.md#layout) +- [Signal and Event Handling](development/signal_and_event_handling.md) +- [Debugging](development/debugging.md) +- [Common Errors](development/common_errors.md) +- [Wrapping a Widget: Detailed](development/wrapping_widgets.md) +- [Getting Support](tutorial/support.md) diff --git a/docs/development/setting_up.md b/docs/development/getting-started.md similarity index 78% rename from docs/development/setting_up.md rename to docs/development/getting-started.md index 26ddb2647..fbe60e723 100644 --- a/docs/development/setting_up.md +++ b/docs/development/getting-started.md @@ -1,78 +1,4 @@ -# Setup project for development - -## Development setup and getting started - -This guide is for setting up `nodegui` for contributors of nodegui. -The actual getting started guide for users will be added once we reach a bit of stable level. - -Make sure you have setup `qode` and installed it globally. - -### MacOSX: - -**Requirements** - -1. Node version: > 9 -2. Python and gcc -3. Make sure you dont have spaces inside your home path. NodeGYP has issues with spaces in the path. https://github.com/nodejs/node-gyp/issues/209 - -**Setting up** - -1. Install latest version of Qt (5.12) via homebrew only. - -``` -brew install qt5 -``` - -### Windows: - -**Requirements** - -1. Node version: > 9 -2. Python and MSVC++ - -**Setting up** --- Instructions will be added soon -- - -### Linux: - -**Requirements** - -1. Node version: > 9 -2. Python, Make, GCC, pkg-config and Qt5
- -On Ubuntu: `$ sudo apt-get install pkg-config build-essentials` should install everything except Qt5. - -**Setting up** - -1. Make sure you have downloaded and installed Qt5 sdk. -2. Before running `yard build`, do - `export PKG_CONFIG_PATH="/5.11.0/gcc_64/lib/pkgconfig"` - -### Common: - -1. Once you have setup the platform specific stuff as mentioned above, follow these: - -2. `git clone` this repo. - -3. Keep note of the install directory of qt. You should probably find it at `/usr/local/Cellar/qt/5.12.1`. Copy this path and - edit the file `config/common.gypi`.
- Change the field - - ``` - 'qt_home_dir': ' 9 +2. Python and gcc +3. Make sure you dont have spaces inside your home path. NodeGYP has issues with spaces in the path. https://github.com/nodejs/node-gyp/issues/209 + +**Setting up** + +1. Install latest version of Qt (5.12) via homebrew only. + +``` +brew install qt5 +``` + +### Windows: + +**Requirements** + +1. Node version: > 9 +2. Python and MSVC++ + +**Setting up** +-- Instructions will be added soon -- + +### Linux: + +**Requirements** + +1. Node version: > 9 +2. Python, Make, GCC, pkg-config and Qt5
+ +On Ubuntu: `$ sudo apt-get install pkg-config build-essentials` should install everything except Qt5. + +**Setting up** + +1. Make sure you have downloaded and installed Qt5 sdk. +2. Before running `yard build`, do + `export PKG_CONFIG_PATH="/5.11.0/gcc_64/lib/pkgconfig"` + +### Common: + +1. Once you have setup the platform specific stuff as mentioned above, follow these: + +2. `git clone` this repo. + +3. Keep note of the install directory of qt. You should probably find it at `/usr/local/Cellar/qt/5.12.1`. Copy this path and + edit the file `config/common.gypi`.
+ Change the field + + ``` + 'qt_home_dir': '