From a8cb907b71a7015271d9d96b1b2d4bbae1ec2864 Mon Sep 17 00:00:00 2001 From: Sergey Konovalov Date: Thu, 17 Aug 2023 10:42:08 +0300 Subject: [PATCH] [develop] Fix markdown errors --- develop/README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/develop/README.md b/develop/README.md index 670c8ed..4d2b7eb 100644 --- a/develop/README.md +++ b/develop/README.md @@ -81,7 +81,7 @@ and takes 20 minutes with `server` **Note**: Run command from work dir with development modules -**Windows (PowerShell)** +### Windows (PowerShell) **Note**: Run PowerShell as administrator to fix EACCES error when installing 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 ``` -**Linux or macOS** +### Linux or macOS 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 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']);` after event `this.sendEvent('asc_onDocumentContentReady');` in file `sdkjs/common/apiBase.js` -**Windows (PowerShell)** +### Windows (PowerShell) ```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 ``` -**Linux or macOS** +### Linux or macOS ```bash 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 `server/DocService/sources/DocsCoServer.js` -**Windows (PowerShell)** +### Windows (PowerShell) ```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 ``` -**Linux or macOS** +### Linux or macOS ```bash sed -i 's#opt_hasForgotten, opt_openedAt) {#opt_hasForgotten, opt_openedAt) {yield* onMessage(ctx, conn, {"message": "Hello World!"});#' server/DocService/sources/DocsCoServer.js