documentation insight技术架构与开发历程

33
Documenta*on Insight 技术架构与开发历程 左保权

Upload: jeffz

Post on 10-May-2015

1.210 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Documentation Insight技术架构与开发历程

Documenta*on  Insight

技术架构与开发历程    

左保权

Page 2: Documentation Insight技术架构与开发历程

左保权

•  Spring  Framework  for  Delphi  创始人  •  DevJET.net  创始人  •  盛大创新院 麦库项目组  

Page 3: Documentation Insight技术架构与开发历程

Spring  Framework  for  Delphi

Page 4: Documentation Insight技术架构与开发历程

背景介绍

Page 5: Documentation Insight技术架构与开发历程
Page 6: Documentation Insight技术架构与开发历程

Technical  Writers

•  Help  Authoring  – Overview  – GeCng  started  – How  to  – …  

•  API  Documenta*on  –  JavaDoc  – XMLDoc  

Page 7: Documentation Insight技术架构与开发历程

XMLDoc ///  <summary>Provides  access  to  informa*on  on  a  drive.</summary>  

///  <remarks>  

///      Use  the  sta*c  <see  cref=“Spring.U*ls|TDriveInfo.GetDrives“  />  

///      method  to  retrieve  all  drives  of  the  computer.  

///      <note  type="caller">  

///      Caller  must  use  the  <see  cref="Spring.U*ls|TDriveInfo.IsReady">IsReady</see>  

///      property  to  check  whether  the  drive  is  ready  before  accessing  other  members.  Otherwise,  

///      an  <see  cref="Spring|EIOExcep*on“  />  excep*on  will  be  raised  if  

///      it  is  not  ready.  

///      </note>  

///  </remarks>  TDriveInfo  =  record  //…  end;  

Page 8: Documentation Insight技术架构与开发历程

Help  Insight

Page 9: Documentation Insight技术架构与开发历程

优点  •  XML,  XPath,  XSLT  •  Inline  Documenta*on  –  IDE支持  

•  语法提示  •  重构支持  

缺点  •  为机器而设计  •  不便于阅读  •  不易编辑和维护  

Page 10: Documentation Insight技术架构与开发历程

产品演示

•  Documenta*on  Insight  Demo

Page 11: Documentation Insight技术架构与开发历程

技术架构

Documenta*on  Insight

Page 12: Documentation Insight技术架构与开发历程

Add-­‐in

Transforma*ons  (XML  <-­‐>  HTML)

Code  Model

Page 13: Documentation Insight技术架构与开发历程

Code  Model

Page 14: Documentation Insight技术架构与开发历程

构造Code  Model

•  Lexer  – 词法定义  –  Input:  Stream  – Output:  Tokens  

•  Parser  – 语法定义  – 抽象语法树(Abstract  Syntax  Tree)  – 符号表(Symbols)  – 语义分析

Page 15: Documentation Insight技术架构与开发历程

Transforma*ons

•  XML  to  XHTML  •  XHTML  to  XML  

Page 16: Documentation Insight技术架构与开发历程

XSLT

•  Extensible  Stylesheet  Language  Transforma*ons  

•  Data  Presenta*on  (Style)  •  Data  Transforma*on  (Exchange)  

•  Rule-­‐Based  Programming  Language  

Page 17: Documentation Insight技术架构与开发历程

<?xml  version="1.0"  encoding="UTF-­‐8"  ?>  <xsl:stylesheet  version="1.0"  xmlns:xsl="hbp://www.w3.org/1999/XSL/Transform">  

<xsl:template  match="/">          <html  xmlns="hbp://www.w3.org/TR/xhtml1">                  <head>                          <*tle>Documenta*on</*tle>                  </head>                  <body>                          <div  id="mainSec*on">                                  <div  id="mainBody">                                          <xsl:call-­‐template  name="insertSec*ons"  />                                  </div>                          </div>                  </body>          </html>  </xsl:template>  

</xsl:stylesheet>

Page 18: Documentation Insight技术架构与开发历程

Add-­‐in

•  Extending  Delphi  IDE  – Splash  Screen  – Menus  – Hotkeys  – No*fica*ons  –  Installa*on/Uninstalla*on  – Dockable  Form  

Page 19: Documentation Insight技术架构与开发历程

WebBrowser  Customiza*on

•  designMode  vs  contentEditable  •  Execute  Script  •  External

Page 20: Documentation Insight技术架构与开发历程

产品与市场

Page 21: Documentation Insight技术架构与开发历程

缘起

•  为Spring4d项目写API  Documenta*on  •  商业尝试  

Page 22: Documentation Insight技术架构与开发历程

定位

•  需求  – 同步浏览文档和代码  – 编写API文档更简单  

•  用户  – 国外Delphi开发者社区  – Code  Library或组件作者  – 公司内部开发团队  

Page 23: Documentation Insight技术架构与开发历程

战略

•  Standard  – Delphi  Documenta*on  Guidelines  

•  Documenta*on  Insight  •  Documenta*on  Generator  •  Incorpora*ons    – H&M  – Embarcadero  

Page 24: Documentation Insight技术架构与开发历程

定价

•  $10-­‐15  •  $49-­‐69  •  $89-­‐99  •  >$100  

Page 25: Documentation Insight技术架构与开发历程

销售

•  Hos*ng  – Hostmonster  

• WordPress  

•  Sales  Plamorm  – Share  It!  

•  Gross  Price/Net  Price  (VAT)  •  Margin:  4.9%  +  1  USD/EUR  per  license  •  Payment  cycle  •  Promo*ons  •  Refund  

Page 26: Documentation Insight技术架构与开发历程

推广与合作

•  与CnPack结成战略合作伙伴  •  赞助Open  Source  Projects  •  邀请知名开发者试用  •  交换Licenses  

•  后续:  •  Google  Ads  &SEO  •  推出Express版本,争取和下一代Delphi  IDE捆绑销售  •  和其他厂商合作,Help  &  Manual,  Doc-­‐O-­‐Ma*c等等  

Page 27: Documentation Insight技术架构与开发历程

未来尝试

•  稳固和扩大Delphi市场,加强第三方合作  •  尝试进入Visual  Studio市场  

Page 28: Documentation Insight技术架构与开发历程

思考与建议

Page 29: Documentation Insight技术架构与开发历程

•  选择一个好方向  •  最终用户的反馈  •  V1.0  •  注重用户体验和软件质量

Page 30: Documentation Insight技术架构与开发历程
Page 31: Documentation Insight技术架构与开发历程
Page 32: Documentation Insight技术架构与开发历程

Q  &  A

Email/MSN:  [email protected]  Follow  Me:      weibo.com/zuobaoquan  

Page 33: Documentation Insight技术架构与开发历程

谢谢大家!

Email/MSN:  [email protected]  Follow  Me:      weibo.com/zuobaoquan