Retired Document
Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
Introduction
Xcode, Apple’s integrated development environment, includes documentation access features that allows users to easily search and view Apple’s developer documentation. If your documentation is properly packaged, it can also take part in these features, and appear in Xcode's documentation and Quick Help windows.
This document explains how to package and build a documentation set for use with Xcode. If you have a developer-targeted software product, this document shows you how to integrate documentation for that product with the Xcode Documentation window. This document assumes that you have existing HTML or PDF documentation files; it does not describe how to write or generate these documentation files.
Before reading this document, you should be familiar with the documentation viewing and access features that are available in Xcode. For a complete description of these features and how to use them, see Documentation Access in Xcode Workspace Guide.
In this document the term documentation producer (or producer for short) identifies a person involved in creating documentation sets. The term documentation user (or user for short) refers to Xcode users who access documentation sets installed on their file systems using the Xcode Documentation window or Quick Help.
Organization of This Document
This document contains the following chapters:
Documentation Sets introduces the documentation set bundle and provides an overview of how to create a documentation set.
Creating Documentation Sets describes how to create and name the folder hierarchy for your documentation set bundle, as well as how to choose where to install that bundle.
Configuring Documentation Sets introduces the
Info.plist
andNodes.xml
files, which are required for any documentation set. This chapter shows how to use these files to describe the documentation set and its contents.Supporting API Lookup in Documentation Sets shows how to create a tokens file to support API search in your documentation set.
Indexing Documentation Sets describes the
docsetutil
indexing tool and shows how to use it to index your documentation set, so that Xcode can access and display its contents.Internationalizing Documentation Sets shows how to support multiple languages by localizing all or some of the contents of the documentation set bundle.
Acquiring Documentation Sets Through Web Feeds describes how to support automatic detection and downloading of documentation set updates, using an RSS or Atom feed.
Testing and Packaging Documentation Sets tells how to test documentation set indexes and whether Xcode can access and display your documentation. Also shows how to package your documentation set bundle as an XAR archive.
docsetutil Reference describes the command-line utility for creating, testing, and querying full-text and API indexes for a documentation set.
Documentation-Set Property List Key Reference describes the keys that Xcode recognizes.
Documentation-Set Nodes Schema Reference lists all of the elements supported in the nodes file format.
Documentation-Set Tokens Schema Reference lists all of the elements supported in the tokens file format.
See Also
In addition to the material in this document, you may find the following resource helpful:
The AtomEnabled website provides information about the Atom format, which you’ll find useful if you plan to provide Atom feeds for documentation sets.
Copyright © 2009 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2009-05-05