Contributing to the RAKwireless documentation site requires basic knowledge of GitHub and general Git workflow. Also, there is a need to set up a working development environment.
Prerequisites:
- Install code editor (preferably VS Code )
- Install Node JS
- Install Yarn package manager
- Open terminal / command prompt
- Change directory to your desired location (where you want to put rakwireless-docs repository)
- Clone the repository:
git clone [email protected]:RAKWireless/rakwireless-docs.git
- Change directory:
cd rakwireless-docs
- Initialize modules:
yarn install
- Run the local dev server:
yarn docs:dev
- Change directory to where
rakwireless-docs
folder is located -
From the root of the folder, make sure that the current branch is master:
git branch
-
Make sure the master branch is updated:
git pull origin master
-
Branch out from master to commit some changes:
git checkout -b <branch_name>
- Make some changes and commit
-
Push your changes to remote repository:
git push origin <branch_name>
-
In GitHub, create a pull request and wait for your PR to be accepted and merged into the master
📝 NOTE:
Create a detailed description of your pull request. Your PR's description must match exactly what the PR contains. Consider your PR automatically rejected if its description is not that detailed and informative.
-
Basic file structure of the repository
Most of the contents, lie on
docs
, likeIntroduction
,Knowledge-Hub
,Product-Categories
, andRUI
. Be sure to use the same naming convention for folders and markdown files. -
All the images about devices are located and categorized in
docs > .vuepress > public > assets > images
. Make sure you put the images for the content here correctly. -
For cited images to be zoomable and adjustable, we don’t use the markdown style of inserting images (
![Image](link)
) but we use our custom component for that.
The component has four (4) properties:- src - the url/location of the image
- figure-number - optional (figure numbers for all images in a page are auto-generated) custom figure number
- width - custom width
- caption - figure caption
Refer to the example below.<<<<<<< HEAD The component has four (4) properties: src - the url/location of the image figure-number - optional (figure numbers for all images in a page are auto-generated) custom figure number width - custom width caption - figure caption
=======
a9887741d ([#984.1] - Minor updates on CONTRIBUTING.md)
-
All the overview pages of devices (e.g.
docs/Product-Categories/WisLink/RAK2245-Pi-HAT/Overview/README.md
) have 3 basic frontmatter properties:- rak_img - url/location of device image
- rak_desc - short description of the device, shown when the mouse is hovered over the card
- rak_grp - group of the device, string if it belongs to one group, array if it belongs to a group and subgroup