About Setup Testing Deployment Contributing
The Adventure Site is a web app that provides Terasology’s various documentation resources to new contributors in a conversational form. This “Tutorial Journey” or “Adventure Site” supports new contributors to find suitable resources based on their contribution interests. A user can navigate by conversing with the Gooey and Gooey helps the user to learn more about the projects. Gooey helps the user to access the resources in a sequential order, which helps the user to study all possible resources related to that particular path.
The Paths behind this Adventure Site are defined by a JSON schema in the pathMap.
What is a Path inside AdventureSite -
- A path is nothing but a set of sequential steps that a user will follow.
- The path will be decided according to the users choice.
- Every Directory inside
/src/data
shows a group of similar paths andpathMap.jsx
is the root file which compiles everything in one code.
- PathMap is a JSX file which compiles JSON schema of every path on a high level.
- Every component inside
/data
directory contains path information for its respective Path. - The overall structure of the paths can be represented by a nested JSON.
- You can find the general structure of each component here.
- Open the project inside your favorite editor.
- Go to the pathMap file.
- Navigate to the point where you wish to edit the information.
- How?
- To navigate inside child paths, hold
ctrl
and click on the subPath. - This will take you to that particular path.
- To navigate inside child paths, hold
- How?
- Make the required edits inside that path ( according to the Path Structure ).
- Save and build the project.
- To add a new path we have to decide if it is a totally new path or a subPath?
- If it is a new path, then you can create a new directory under the
src/data/
and name it accordingly. Also, add an appropriate path by following the Path Structure. - If it is a sub path then create the path file inside the appropriate directory in
src/data/
and name it accordingly. - Make sure the path is added inside our existing flow.
- Path can be imported by using an import statement (similar to react components).
The following generator is built using the following software, you'll need them installed in your workspace to run properly.
-
Setting up workspace
-
node
- Download and setup NodeJs from https://nodejs.org/en/download/
-
yarn
- Download and setup yarn package manager from https://yarnpkg.com/en/docs/install
-
- Fork the repository
- Clone the repository
git clone forked-repository-link
- Navigate inside the repository
cd AdventureSite
- Install the dependencies ( yarn is recommended )
yarn
You can test the website locally using yarn start
.
You can the website to GitHub pages using npm run deploy
.
To add a new feature or fix a bug follow the steps -
-
Make sure your local workspace is up-to-date with the main repository.
-
Add the original repository as
upstream
in you local git remotegit remote add upstream https://github.com/MovingBlocks/AdventureSite.git
-
Fetch the latest code
git fetch upstream
-
Checkout to your local master branch
git checkout master
-
Merge changes from
upstream/master
to syncgit merge upstream/master
-
-
Create a new branch to work on the new feature or bug via the updated master branch
git checkout -b "branch_name"
-
Work on feature/bug and stage all the files to commit it on that branch
git add .
>git commit -m "Commit Message"
-
Push the branch to your fork
git push -u origin branch_name
-
Create a pull request.
A list of contributors can be found here.