mirror of
https://github.com/ONLYOFFICE/build_tools.git
synced 2026-04-07 14:06:31 +08:00
[develop] Fix markdown errors
This commit is contained in:
@ -81,7 +81,7 @@ and takes 20 minutes with `server`
|
|||||||
|
|
||||||
**Note**: Run command from work dir with development modules
|
**Note**: Run command from work dir with development modules
|
||||||
|
|
||||||
**Windows (PowerShell)**
|
### Windows (PowerShell)
|
||||||
|
|
||||||
**Note**: Run PowerShell as administrator to fix EACCES error when installing
|
**Note**: Run PowerShell as administrator to fix EACCES error when installing
|
||||||
node_modules
|
node_modules
|
||||||
@ -98,7 +98,7 @@ or run with `sdkjs`, `web-apps` and `server`
|
|||||||
docker run -i -t -p 80:80 --restart=always -e ALLOW_PRIVATE_IP_ADDRESS=true -v $pwd/sdkjs:/var/www/onlyoffice/documentserver/sdkjs -v $pwd/web-apps:/var/www/onlyoffice/documentserver/web-apps -v $pwd/server:/var/www/onlyoffice/documentserver/server documentserver-develop
|
docker run -i -t -p 80:80 --restart=always -e ALLOW_PRIVATE_IP_ADDRESS=true -v $pwd/sdkjs:/var/www/onlyoffice/documentserver/sdkjs -v $pwd/web-apps:/var/www/onlyoffice/documentserver/web-apps -v $pwd/server:/var/www/onlyoffice/documentserver/server documentserver-develop
|
||||||
```
|
```
|
||||||
|
|
||||||
**Linux or macOS**
|
### Linux or macOS
|
||||||
|
|
||||||
run with `sdkjs` and `web-apps`
|
run with `sdkjs` and `web-apps`
|
||||||
|
|
||||||
@ -131,20 +131,20 @@ It may block some scripts (like Analytics.js)
|
|||||||
### To change something in `sdkjs` do the following steps
|
### To change something in `sdkjs` do the following steps
|
||||||
|
|
||||||
1)Edit source file. Let's insert an image url into each open document.
|
1)Edit source file. Let's insert an image url into each open document.
|
||||||
Following command inserts (in case of problems, you can replace URL)
|
Following command inserts (in case of problems, you can replace URL)
|
||||||
`this.AddImageUrl(['http://localhost/example/images/logo.png']);`
|
`this.AddImageUrl(['http://localhost/example/images/logo.png']);`
|
||||||
after event
|
after event
|
||||||
`this.sendEvent('asc_onDocumentContentReady');`
|
`this.sendEvent('asc_onDocumentContentReady');`
|
||||||
in file
|
in file
|
||||||
`sdkjs/common/apiBase.js`
|
`sdkjs/common/apiBase.js`
|
||||||
|
|
||||||
**Windows (PowerShell)**
|
### Windows (PowerShell)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
(Get-Content sdkjs/common/apiBase.js) -replace "this\.sendEvent\('asc_onDocumentContentReady'\);", "this.sendEvent('asc_onDocumentContentReady');this.AddImageUrl(['http://localhost/example/images/logo.png']);" | Set-Content sdkjs/common/apiBase.js
|
(Get-Content sdkjs/common/apiBase.js) -replace "this\.sendEvent\('asc_onDocumentContentReady'\);", "this.sendEvent('asc_onDocumentContentReady');this.AddImageUrl(['http://localhost/example/images/logo.png']);" | Set-Content sdkjs/common/apiBase.js
|
||||||
```
|
```
|
||||||
|
|
||||||
**Linux or macOS**
|
### Linux or macOS
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sed -i "s,this.sendEvent('asc_onDocumentContentReady');,this.sendEvent('asc_onDocumentContentReady');this.AddImageUrl(['http://localhost/example/images/logo.png']);," sdkjs/common/apiBase.js
|
sed -i "s,this.sendEvent('asc_onDocumentContentReady');,this.sendEvent('asc_onDocumentContentReady');this.AddImageUrl(['http://localhost/example/images/logo.png']);," sdkjs/common/apiBase.js
|
||||||
@ -165,13 +165,13 @@ in function
|
|||||||
in file
|
in file
|
||||||
`server/DocService/sources/DocsCoServer.js`
|
`server/DocService/sources/DocsCoServer.js`
|
||||||
|
|
||||||
**Windows (PowerShell)**
|
### Windows (PowerShell)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
(Get-Content server/DocService/sources/DocsCoServer.js) -replace 'opt_hasForgotten, opt_openedAt\) \{', 'opt_hasForgotten, opt_openedAt) {yield* onMessage(ctx, conn, {"message": "Hello World!"});' | Set-Content server/DocService/sources/DocsCoServer.js
|
(Get-Content server/DocService/sources/DocsCoServer.js) -replace 'opt_hasForgotten, opt_openedAt\) \{', 'opt_hasForgotten, opt_openedAt) {yield* onMessage(ctx, conn, {"message": "Hello World!"});' | Set-Content server/DocService/sources/DocsCoServer.js
|
||||||
```
|
```
|
||||||
|
|
||||||
**Linux or macOS**
|
### Linux or macOS
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sed -i 's#opt_hasForgotten, opt_openedAt) {#opt_hasForgotten, opt_openedAt) {yield* onMessage(ctx, conn, {"message": "Hello World!"});#' server/DocService/sources/DocsCoServer.js
|
sed -i 's#opt_hasForgotten, opt_openedAt) {#opt_hasForgotten, opt_openedAt) {yield* onMessage(ctx, conn, {"message": "Hello World!"});#' server/DocService/sources/DocsCoServer.js
|
||||||
|
|||||||
Reference in New Issue
Block a user