@@ -35,6 +35,37 @@ including `bower` publishing, for you - automatically.
35
35
_ Initial idea is got from ` React-Bootstrap ` release tools ` ./tools/release ` ,
36
36
that have been written by [ Matt Smith @mtscout6 ] ( https://github.com/mtscout6 ) _
37
37
38
+ #### Publishing of built documents static pages
39
+
40
+ If your project compiles static documentation pages (as e.g. ` React-Boostrap ` does)
41
+ and needs to publish them to standalone repo / hosting (via ` git push ` ),
42
+ you can do it the same way the ` bower ` package releasing done.
43
+
44
+ Just create additional github repo for your static documents site.
45
+
46
+ E.g. [ react-bootstrap.github.io.git] ( https://github.com/react-bootstrap/react-bootstrap.github.io )
47
+
48
+ Add it as ` 'release-script'.docsRepo ` into your ` package.json ` :
49
+ ``` js
50
+ " release-script" : {
51
+ " docsRepo" : " [email protected] :<author>/original-project-name-github.io.git"
52
+ }
53
+ ```
54
+ Default folders for documents are:
55
+ - ` "docsRoot": "docs-built" ` folder where the documents files will be built (by your custom building scripts)
56
+ - ` "tmpDocsRepo": "tmp-docs-repo" ` temporary folder.
57
+
58
+ It is advised to add them both into ` .gitignore ` .
59
+
60
+ You can customize them as you need:
61
+ ``` js
62
+ " release-script" : {
63
+ " docsRepo" : " [email protected] :<author>/original-project-name-github.io.git"
64
+ " docsRoot" : " docs-built" ,
65
+ " tmpDocsRepo" : " tmp-docs-repo"
66
+ }
67
+ ```
68
+
38
69
#### Pre-release versions publishing
39
70
40
71
Say you need to publish pre-release ` v0.25.100-pre.0 ` version
@@ -136,6 +167,8 @@ You can set a custom message for release via `--notes` CLI option:
136
167
- then by ` git add -A . ` adds all bower distr files to the temporary git repo
137
168
- commits, tags and pushes the same as for the ` npm ` package.
138
169
- then deletes the ` tmpBowerRepo ` folder
170
+ - id ` docsRepo ` field is present in the ` package.json ` , then it pushes builded documents to their repo.
171
+ It is done the same way as ` bower ` repo.
139
172
140
173
## Installation
141
174
0 commit comments