File tree 3 files changed +65
-32
lines changed
3 files changed +65
-32
lines changed Original file line number Diff line number Diff line change
1
+ # CONTRIBUTING
2
+
3
+ Contributions are always welcome, no matter how large or small. Before contributing,
4
+ please read the [ code of conduct] ( CODE_OF_CONDUCT.md ) .
5
+
6
+ ## Setup
7
+
8
+ > Install yarn on your system: https://yarnpkg.com/en/docs/install
9
+
10
+ ``` sh
11
+ $ git clone https://github.com/netlify/netlify-identity-widget
12
+ $ cd netlify-identity-widget
13
+ $ yarn
14
+ ```
15
+
16
+ ## Building
17
+
18
+ ``` sh
19
+ $ yarn build
20
+ ```
21
+
22
+
23
+ ## Running the server
24
+
25
+ ``` sh
26
+ $ yarn dev
27
+ ```
28
+
29
+ ## Pull Requests
30
+
31
+ We actively welcome your pull requests.
32
+
33
+ 1 . Fork the repo and create your branch from ` master ` .
34
+ 2 . If you've added code that should be tested, add tests.
35
+ 3 . If you've changed APIs, update the documentation.
36
+ 4 . Ensure the test suite passes.
37
+ 5 . Make sure your code lints.
38
+
39
+ ## License
40
+
41
+ By contributing to Netlify Identity Widget, you agree that your contributions will be licensed
42
+ under its [ MIT license] ( LICENSE ) .
Original file line number Diff line number Diff line change @@ -4,36 +4,24 @@ A Netlify CMS widget to select directory parent for an entry
4
4
5
5
## Usage
6
6
7
- ## Development
8
-
9
- ``` bash
10
- yarn
11
- yarn develop
12
- ```
13
-
14
- ## Build
15
-
16
- ``` bash
17
- yarn
18
- yarn build
19
- ```
20
-
21
- ## Release
22
-
23
- Make sure you have npm + git credentials set up.
24
-
25
- - [ ] Make changes and/or merge PRs.
26
- - [ ] ` git checkout master `
27
- - [ ] ` git pull `
28
- - [ ] ` yarn `
29
- - [ ] Set up semantic release environment variables:
30
-
31
- ``` bash
32
- export GIT_AUTHOR_NAME=< your-github-login>
33
- export GIT_AUTHOR_EMAIL=< your-github-email>
34
- export GIT_COMMITTER_NAME=< your-github-login>
35
- export GIT_COMMITTER_EMAIL=< your-github-email>
36
- export GITHUB_TOKEN=< github-token-with-public_repo-permissions>
7
+ Example for using in an HTML file
8
+
9
+ ``` html
10
+ <!DOCTYPE html>
11
+ <html lang =" en" >
12
+ <head >
13
+ <meta charset =" utf-8" />
14
+ <meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
15
+ <title >Content Manager</title >
16
+ </head >
17
+ <body >
18
+ <script src =" https://identity.netlify.com/v1/netlify-identity-widget.js" ></script >
19
+ <script src =" https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js" ></script >
20
+ <script src =" https://unpkg.com/@netlify/netlify-cms-widget-parent@^1.0.0/dist/netlify-cms-widget-parent.js" ></script >
21
+ <script >
22
+ const parentWidget = window .NetlifyCmsWidgetParent ;
23
+ CMS .registerWidget (' parent' , parentWidget .control , parentWidget .preview );
24
+ </script >
25
+ </body >
26
+ </html >
37
27
```
38
-
39
- - [ ] ` npm run release `
Original file line number Diff line number Diff line change 12
12
"semantic-release" : " cross-env CI=true HUSKY_SKIP_HOOKS=1 semantic-release" ,
13
13
"release" : " run-s build semantic-release publish"
14
14
},
15
+ "files" : [
16
+ " dist/"
17
+ ],
15
18
"repository" : {
16
19
"type" : " git" ,
17
20
"url" : " git+https://github.com/netlify-labs/netlify-cms-widget-parent.git"
You can’t perform that action at this time.
0 commit comments