Skip to content

Commit 7363d7d

Browse files
committed
add remark to lint markdown and a circle ci config
1 parent 54f59f2 commit 7363d7d

File tree

7 files changed

+1741
-2
lines changed

7 files changed

+1741
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.remarkrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"plugins": [
3+
"remark-preset-lint-recommended",
4+
["remark-lint-list-item-indent", "space"],
5+
"validate-links"
6+
]
7+
}

CONTRIBUTING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
:tada: Thanks for contributing to this docs project! :tada:
2+
3+
This document needs lots of help, please update and improve it!
4+
5+
### Setup
6+
7+
To get started you'll need to install the dependencies required using [yarn](https://yarnpkg.com/).
8+
9+
```bash
10+
yarn install
11+
```
12+
13+
### Test
14+
15+
We use `remark` to validate the markdown files for consistency and bad links.
16+
17+
```bash
18+
yarn test
19+
```

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The repositories in `devtools-html` are more straightforward if you're used to *
2020

2121
Since we have code in two different places, issues and bugs are to be found in two different places:
2222

23-
* For code in `m-c`: http://firefox-dev.tools/ which also lets you filter by good bugs for beginners.
23+
* For code in `m-c`: [http://firefox-dev.tools/](http://firefox-dev.tools/) which also lets you filter by good bugs for beginners.
2424
* For code in `devtools-html`: [this page](https://github.com/search?l=&q=org%3Adevtools-html+state%3Aopen&type=Issues) lists all the issues across the organisation.
2525
<!--TODO: ^^ add label:"help wanted" or similar to the query to get easy issues-->
2626

@@ -47,7 +47,7 @@ This is just a brief overview. For more detailed documentation:
4747

4848
The tools are broadly divided into panels. Each panel has one or more owners, who mostly work(s) on that panel and are the best people to ask if you have specific questions about the code.
4949

50-
<!-- TODO: from https://wiki.mozilla.org/DevTools/GetInvolved#Communication but update it -->
50+
<!-- TODO: from https://wiki.mozilla.org/DevTools/GetInvolved#Communication but update it -->
5151
<!-- TODO: * show organisations in github (doesn't work if people don't make their membership public) -->
5252

5353
## News and demos

circle.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
machine:
2+
environment:
3+
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
4+
5+
dependencies:
6+
override:
7+
- yarn
8+
cache_directories:
9+
- ~/.cache/yarn
10+
11+
test:
12+
override:
13+
- yarn test

package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "devtools-html.github.com",
3+
"version": "1.0.0",
4+
"description": "https://devtools-html.github.io/",
5+
"repository": "[email protected]:devtools-html/devtools-html.github.com.git",
6+
"author": "DevTools.html",
7+
"license": "CC0-1.0",
8+
"scripts": {
9+
"lint": "remark .",
10+
"test": "yarn run lint"
11+
},
12+
"devDependencies": {
13+
"remark-cli": "^3.0.0",
14+
"remark-lint": "^6.0.0",
15+
"remark-preset-lint-recommended": "^2.0.0",
16+
"remark-validate-links": "^6.0.0"
17+
}
18+
}

0 commit comments

Comments
 (0)