From 9c3c4fb774ecfc7621cdec2e29ac683c90afb074 Mon Sep 17 00:00:00 2001 From: Francis Gulotta Date: Sat, 15 Sep 2018 02:21:32 -0400 Subject: [PATCH] docs: new issue templates (#1663) Borrow from some of Docusaurus's excellent issue templates and some of our own. --- .github/ISSUE_TEMPLATE.md | 10 +--------- .github/ISSUE_TEMPLATE/docs.md | 12 ++++++++++++ .github/ISSUE_TEMPLATE/proposal.md | 26 ++++++++++++++++++++++++++ .github/ISSUE_TEMPLATE/support.md | 29 +++++++++++++++++++++++++++++ CONTRIBUTING.md | 17 ++++++++++++++--- 5 files changed, 82 insertions(+), 12 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/docs.md create mode 100644 .github/ISSUE_TEMPLATE/proposal.md create mode 100644 .github/ISSUE_TEMPLATE/support.md diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index cd6a6d8..f5e2c1b 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,9 +1 @@ -### Summary of Problem - -### Steps and Code to Reproduce the Issue - -### Package name(s) and version(s) - -### Node version, Operating System and hardware - - +## πŸ‘‰ [Please follow one of these issue templates](https://github.com/node-serialport/node-serialport/issues/new/choose) πŸ‘ˆ diff --git a/.github/ISSUE_TEMPLATE/docs.md b/.github/ISSUE_TEMPLATE/docs.md new file mode 100644 index 0000000..4a169ee --- /dev/null +++ b/.github/ISSUE_TEMPLATE/docs.md @@ -0,0 +1,12 @@ +--- +name: πŸ“š Documentation +about: Report an issue related to documentation +--- + +## πŸ“š Documentation + +(A clear and concise description of how the docs could be better, with links if possible) + +### Have you read the [Contributing Guidelines on docs](https://github.com/node-serialport/node-serialport/blob/master/CONTRIBUTING.md#writing-documentation)? + +(Write your answer here.) diff --git a/.github/ISSUE_TEMPLATE/proposal.md b/.github/ISSUE_TEMPLATE/proposal.md new file mode 100644 index 0000000..32cce47 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/proposal.md @@ -0,0 +1,26 @@ +--- +name: πŸ’₯ Proposal / Feature +about: Propose a non-trivial change or new feature for SerialPort +--- + +## πŸ’₯ Proposal + +### What feature you'd like to see +(A clear and concise description of what the proposal is.) + +## Motivation +(Please outline the motivation for the proposal. It's interesting knowing what people are working on and also could help community members make suggestions for work-arounds until the feature is built) + +## Pitch + +(Please explain why this feature should be implemented and how it would be used.) + + diff --git a/.github/ISSUE_TEMPLATE/support.md b/.github/ISSUE_TEMPLATE/support.md new file mode 100644 index 0000000..84068e4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/support.md @@ -0,0 +1,29 @@ +--- +name: ❓ Questions/Help +about: As a support question +--- + + + +### Summary of Problem + +(Please answer all 3) + +- What are you trying to do? +- What happens? +- What should have happened? + +### Code to Reproduce the Issue + +```js +const serialport = new SerialPort(path) + +// Code +``` + +### Versions, Operating System and Hardware + +- SerialPort@? +- Node.js v? +- Windows? Linux? Mac? +- Hardware and chipset? (Prolific/FTDI/Other) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 808be44..86d13b0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -23,8 +23,11 @@ If the issue has been reported before but you have new information to help troub ## Requesting Features To request a new feature be added take a look at the [current roadmap](https://github.com/node-serialport/node-serialport/issues/746) and create a [github issue](https://github.com/node-serialport/node-serialport/issues) and include: -**What feature you'd like to see:** -**Why this is important to you:** (this is here because it's interesting knowing what cool things people are working on and also could help community members make suggestions for work-arounds until the feature is built) +### What feature you'd like to see + +### Why this is important to you + +This is here because it's interesting knowing what cool things people are working on and also could help community members make suggestions for work-arounds until the feature is built. ## Submitting Pull Requests @@ -48,7 +51,15 @@ Tests are written using [mocha](https://mochajs.org/), [chai](http://chaijs.com/ We are always looking to improve our docs. If you find that any are lacking information or have wrong information, fix and submit a PR. If you're looking for areas to start writing docs for, see the [docs](https://github.com/node-serialport/node-serialport/labels/docs) label in issues. -We use [jsdoc](http://usejsdoc.org/) to generate our docs. Make your changes to `.docs/README.hbs` or the documentation blocks in the JavaScript files and run `npm run docs` to update `README.md`. +We use [Docusaurus](https://docusaurus.io/) to generate our docs. Make your changes to `/docs/` or in the `/packages/website/` folder. + +You can preview the docs by running + +```bash +npm run docs:dev +``` + +Or clicking the netlify link in your PR. Docs should have tested and working sample code. Many people using SerialPort are learning how to work with hardware for the first time, so write for a beginner audience.