Browse Source

Add documentations

star7th 6 years ago
parent
commit
23bf084415

+ 1 - 1
README.md

@@ -61,7 +61,7 @@ ShowDoc is a tool greatly applicable for an IT team to share documents online. I
 ### Deploy It to Your Own Server
  - ShowDoc Deploy Manual
   
-     Please refer to:[https://www.showdoc.cc/help-en?page_id=16975](https://www.showdoc.cc/help-en?page_id=16975)
+     Please refer to:[documentation/en/DeployManual.md](documentation/en/DeployManual.md)
   
 
 ### Copyright 

+ 30 - 0
documentation/en/ByComposer.md

@@ -0,0 +1,30 @@
+Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.https://getcomposer.org/
+You can install ShowDoc by Composer automatically.
+
+- New installation
+
+ Change to web directory(e.g:/var/www/html/)and execute:
+
+ ```
+ composer create-project  showdoc/showdoc
+ ```
+There will be a folder name "showdoc".Open your browser and visit 
+http://your-domain.com/showdoc/install/ (change to your servser's address) to initialize ShowDoc.
+
+- Upgrade
+
+ Stop apache or nginx , and move showdoc folder to bakup
+ ```
+ mv showdoc  showdoc_backup 
+ ```
+Then flollow the "New installation" guide to install ShowDoc .After that ,move db file and pictures from old folder to new folder.
+```
+rm showdoc/Sqlite/showdoc.db.php
+cp showdoc_backup/Sqlite/showdoc.db.php  showdoc/Sqlite/showdoc.db.php
+rm showdoc/Public/Uploads/
+cp showdoc_backup/Public/Uploads/ showdoc/Public/
+```
+Open your browser and visit 
+http://your-domain.com/showdoc/index.php?s=/home/update/db (change to your servser's address) to update db.
+
+

+ 41 - 0
documentation/en/DeployManual.md

@@ -0,0 +1,41 @@
+### Introduction 
+
+ About ShowDoc , Please refer to [../../README.md](README.md)
+ 
+### Environment dependence
+
+ - Required environment
+  
+  `PHP5.3 or  above version ` ,`php-gd`,`php-pdo`
+ 
+### Install and configure
+
+- #### New installation
+ 
+ - If you are familiar with the command line, you can install ShowDoc [by Composer](ByComposer.md "by Composer").
+  Or manually download the code from https://github.com/star7th/showdoc/releases
+ 
+ - Make these writable
+  
+       `/install`, `/Application/Runtime ` ,`/Public/Uploads`,`/Sqlite`,`/Sqlite/showdoc.db.php`
+   
+ - Windows sever
+    
+   Please entable `extension=php_sqlite.dll` ,`extension=php_pdo_sqlite.dll`and `php_mbstring.dll` in `php.ini` . Ignore it if you are on Linux.
+ 
+ - Run installation
+ 
+     `http://your-domain.com/install/`
+   
+ -  Default user : showdoc(password:123456)
+   
+- #### Upgrade 
+
+ - If you are familiar with the command line, you can update ShowDoc [by Composer](http://www.showdoc.cc/help-en?page_id=32344 "by Composer").
+  Or manually download the code from https://github.com/star7th/showdoc/releases
+ - Backup your codes
+ - Dowload new codes and decompression it to a new directory.Copy `/Sqlite/*` and `/Public/Uploads/*` from old directory to new directory
+ 
+ - Open `http://your-domain.com/index.php?s=/home/update/db`  in your brown to update database 
+ 
+ 

+ 77 - 0
documentation/en/README.md

@@ -0,0 +1,77 @@
+## 中文版教程:https://www.showdoc.cc/help 
+
+### What is ShowDoc ?
+
+Whenever we take over a module or project which has been developed by other people, we always feel crazy watching at those codes without notes. Where is the document?! Where is the document?! **Show me the doc !!**
+
+A programmer often hopes the others to write technical documents, with the hope of not writing them on his/her own. Because writing a technical document needs a lot of time to handle the format and layout, and the person who writes it has to think of all kinds of non-technical details such as which catalog to put in the newly-established word document
+
+All kinds of the word documents are kept by different persons in a team dispersedly. The person who needs other documents gets the documents by shouting out. He/She gives a shout asking for the documents and then receives them from other people by IMs or the e-mail. This kind of communication is not bad, but the efficiency is not high.
+
+ShowDoc is a tool greatly applicable for an IT team to share documents online. It can promote communication efficiency among members of the team.
+
+### What can it be used for?
+
+- #### API Document ( [Demo](https://www.showdoc.cc/demo-en))
+ 
+ With the development of mobile Internet, BaaS (Backend as a Service) becomes more and more popular. The Server end provides API, and the APP end or Webpage frontend can invoke data conveniently. Using ShowDoc can compile exquisite API documents in a very fast and convenient way.
+
+- #### Data Dictionary ( [Demo](https://www.showdoc.cc/demo-en))
+ 
+ A good Data Dictionary can easily exhibit database structure to other people, such as definition of each field and the like.
+
+- #### Explanation Document ( [Demo](https://www.showdoc.cc/help-en))
+ 
+ You can absolutely use ShowDoc to compile the explanation documents for some tools, as well as to compile some technical specifications explanation documents for the team to look up.
+ 
+### What functions does it have?
+
+- #### Sharing and Exporting
+
+ Responsive webpage design can share the project documents to computer or mobile devices for reading. It can also export the project into word document for browsing offline.
+ 
+- #### Permission Management
+
+ - Public Project and Private Project
+ 
+   Projects on ShowDoc are divided into two categories including Public Project and Private Project. Public Project can be visited by any user no matter he/she logs in or not, while inputting password for verification is needed for visiting the Private Project. The password is set by project creator. 
+   
+  - Project Transfer
+  
+   The project creator can transfer the project to other users of the website freely.
+   
+  - Project Members
+  
+   You can easily add or delete project members in the project of ShowDoc. Members of the project can edit the project, but they can not transfer or delete the project (only creator of the project has the permission).
+   
+- #### Edit Function
+  - Markdown Edit
+  
+   ShowDoc adopts Markdown Editor, and it is excellent both in editing and reading experience. If you know nothing about Markdown, please search “Learning and Introduction of Markdown” on the search engine.
+   
+  - Template Insert
+  
+   On the editing page of ShowDoc, a click on the button which is on the top of the Editor can easily insert API interface template and data dictionary template. After inserting the template, altering data is the only thing that need to do and it reduces a lot of work in editing.
+   
+  - History Version
+  
+   ShowDoc provides a function of History Version on the page, and you can easily restore the page to the former version.
+   
+
+### Deploy It to Your Own Server
+ - ShowDoc Deploy Manual
+  
+     Please refer to:[DeployManual.md](DeployManual.md)
+  
+
+### Copyright 
+
+ ShowDoc is issued complying with Apache2 Open Source License, and it is for free use. 
+ 
+ Copyright ©  star7th 
+ 
+ 
+ E-mail: xing7th#gmail.com (change # into @) 
+ 
+ All rights reserved. 
+ 

+ 70 - 0
documentation/zh-CN/README.md

@@ -0,0 +1,70 @@
+#### ShowDoc是什么
+
+- 每当接手一个他人开发好的模块或者项目,看着那些没有写注释的代码,我们都无比抓狂。文档呢?!文档呢?!**Show me the doc  !!**   
+ 
+- 程序员都很希望别人能写技术文档,而自己却很不希望要写文档。因为写文档需要花大量的时间去处理格式排版,想着新建的word文档放在哪个目录等各种非技术细节。
+
+- word文档零零散散地放在团队不同人那里,需要文档的人基本靠吼,吼一声然后上qq或者邮箱接收对方丢过来的文档。这种沟通方式当然可以,只是效率不高。   
+ 
+- ShowDoc就是一个非常适合IT团队的在线文档分享工具,它可以加快团队之间沟通的效率。   
+
+#### 它可以用来做什么
+
+- ##### API文档( [查看Demo](http://www.showdoc.cc/2))  
+
+ - 随着移动互联网的发展,BaaS(后端即服务)越来越流行。服务端提供API,APP端或者网页前端便可方便调用数据。用ShowDoc可以非常方便快速地编写出美观的API文档。
+
+- ##### 数据字典( [查看Demo](http://www.showdoc.cc/1))  
+
+ - 一份好的数据字典可以很方便地向别人说明你的数据库结构,如各个字段的释义等。  
+- ##### 说明文档 ( [查看Demo](http://www.showdoc.cc/3))  
+
+ - 你完全可以使用showdoc来编写一些工具的说明书,也可以编写一些技术规范说明文档以供团队查阅
+
+#### 它都有些什么功能
+  
+- ##### 分享与导出
+  - 响应式网页设计,可将项目文档分享到电脑或移动设备查看。同时也可以将项目导出成word文件,以便离线浏览。
+
+- ##### 权限管理
+  - 公开项目与私密项目 
+   - ShowDoc上的项目有公开项目和私密项目两种。公开项目可供任何登录与非登录的用户访问,而私密项目则需要输入密码验证访问。密码由项目创建者设置。
+  - 项目转让  
+       - 项目创建者可以自由地把项目转让给网站的其他用户。 
+  - 项目成员    
+     - 你可以很方便地为ShowDoc的项目添加、删除项目成员。项目成员可以对项目进行编辑,但不可转让或删除项目(只有项目创建者才有权限)
+  - 团队管理
+   - 利用showdoc的团队功能你可以更好地进行团队协作
+   
+- ##### 编辑功能
+  - markdown编辑     
+     - ShowDoc采用markdown编辑器,无论是编辑还是阅读体验都极佳很棒。如果你不了解Markdown,请在搜索引擎搜索"认识与入门 Markdown"
+  
+  - 模板插入   
+     - 在ShowDoc的编辑页面,点击编辑器上方的按钮可方便地插入API接口模板和数据字典模板。插入模板后,剩下的就是改动数据了,省去了很多编辑的力气。 
+  - 历史版本   
+     - ShowDoc为页面提供历史版本功能,你可以方便地把页面恢复到之前的版本。
+
+
+#### 使用在线的ShowDoc
+
+- 如果你没有自己的服务器,但又想使用ShowDoc作为分档分享工具,你可以使用在线的ShowDoc   [http://www.showdoc.cc](http://www.showdoc.cc)
+- 在线showdoc作为在线服务会长期维护,请放心托管数据
+
+
+#### 部署到自己的服务器
+
+- ShowDoc部署手册请参考:[https://www.showdoc.cc/help?page_id=13732](https://www.showdoc.cc/help?page_id=13732)
+
+- 开源地址:https://github.com/star7th/showdoc 。若觉得showdoc好用,不妨点个star。良好的关注度和参与度有助于开源项目的长远发展。
+
+- 二次开发指引
+
+ https://www.showdoc.cc/help?page_id=1385576954326448
+ 
+#### ShowDoc交流群
+
+- ShowDoc使用交流qq群
+ 交流群①:564671853(已满)
+ 交流群②:174709989(已满)
+ 交流群③:667194478