Invention Grant
- Patent Title: Managing code samples in documentation
- Patent Title (中): 管理文档中的代码示例
-
Application No.: US13070434Application Date: 2011-03-23
-
Publication No.: US08694964B1Publication Date: 2014-04-08
- Inventor: Antoine Picard
- Applicant: Antoine Picard
- Applicant Address: US CA Mountain View
- Assignee: Google Inc.
- Current Assignee: Google Inc.
- Current Assignee Address: US CA Mountain View
- Agency: Fenwick & West LLP
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F17/00

Abstract:
Documentation having code samples is managed. Documentation describing programming code for a software product is received. The documentation references a code sample having an associated test module for determining whether the code sample is valid. The code sample is tested by executing the associated test module to produce a test result indicating whether the code sample is valid. The documentation, code sample, and test result are stored. The documentation, code sample, and test result may be provided to a client adapted to display the code sample and test result to a user of the client. Invalid code samples in the documentation may be identified using the test modules and the invalid code samples may be replaced to make the code samples valid.
Information query