Skip to content

Conversation

@damithc
Copy link
Contributor

@damithc damithc commented Jun 13, 2020

What is the purpose of this pull request? (put "X" next to an item, remove the rest)

• [x] Documentation update

What is the rationale for this request?, What changes did you make? (Give an overview)

See the proposed commit message.

Testing instructions:

Read the DG via the Netlify preview of the PR.

Proposed commit message: (wrap lines at 72 characters)

Refactor developer docs

Let's refactor the dev docs in the following ways to improve the
overall organization:
* Split up into separate pages such as setting up, design, workflow etc.
* Refer to se-education.org/guides when possible
* Improve phrasing, layout, formatting

This reorganization also aims to increase the consistency with other
sister projects such as RepoSense

Let's refactor the dev docs in the following ways to improve the
overall organization:
* Split up into separate pages such as setting up, design, workflow etc.
* Refer to se-education.org/guides when possible
* Improve phrasing, layout, formatting

This reorganization also aim to increase consistency with other
sister projects such as RepoSense
@damithc damithc marked this pull request as ready for review June 13, 2020 17:46
@damithc
Copy link
Contributor Author

damithc commented Jun 13, 2020

Ready for review

Copy link
Contributor

@ang-zeyu ang-zeyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks a lot cleaner now 👍

I gave the parts on build / release process a quick glance only, as it will be substantially changed soon.
The page on project structure as well, since the merge from /vue-strap is coming in

Install developer dependencies (ESLint, related plugins) in your cloned markbind and markbind-cli repositories.

```{.no-line-numbers}
$ npm install --only=dev
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't be neccessary anymore, assuming they did a npm install/link

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

Before making a commit or pull request, you should lint your code by running the following commands from the root of your project:

* To lint a specific file: `./node_modules/.bin/eslint path/to/specificfile.js`
* To lint all files: `./node_modules/.bin/eslint .`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's update this (all files) to use npm run lint

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated


It is also possible to auto-fix some (not all) style errors:
* Add the `--fix` flag to correct any fixable style errors<br>
e.g., `./node_modules/.bin/eslint . --fix`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npm run lintfix (without the need for --fix as well)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

1. **Install dependencies** by running `npm install` in the root folder of your cloned repo.
1. **To bind your cloned version of MarkBind to your console** (instead of the released version of MarkBind), run `npm link` in the root folder of the cloned repo.

<box type="tip" seamless>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we align the boxes? looks a little strange:

Untitled

Copy link
Contributor Author

@damithc damithc Jun 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The boxes are nested at the same level as their logical level in the hierarchy. The first one is outside of the list while the second one applies to the 3rd item in the list only.

In addition, if we don't indent the 2nd box, it will break list numbering. i.e., 4th item will become 1.

@damithc
Copy link
Contributor Author

damithc commented Jun 14, 2020

Thx for the review @ang-zeyu. I've updated the linting instructions as suggested. Please check in case I misunderstood your comment.

Copy link
Contributor

@ang-zeyu ang-zeyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm otherwise 👍 Let's squash the commits as well!


* You can start by looking through [these issues](https://github.com/MarkBind/markbind/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22+sort%3Acomments-desc) marked <span href="" class="badge" style="color:white; background-color: #7057FF;">good first issue</span>. Don't do more than one of them though.
* As we squash the commits when merging a PR, there is ==no need to follow a strict commit organization or write elaborate commit messages for each commit==.
* You can refer to the [_Design_](design.html) page to learn about the design and implementation of RepoSense.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MarkBind 🤣

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opps. Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants