This repository is archived and the content on this branch is out of date. You can find up-to-date AWS technical documentation on the AWS Documentation website, where you can also submit feedback and suggestions for improvement.
This repository will be archived and marked read-only next month (June 2023). For more information, read the announcement on the AWS News Blog.
You can find the corresponding content for this repo on the AWS Documentation website. If you'd like to continue contributing to the quality of AWS documentation, you can submit feedback and suggestions for improvement there.
This repository provides common content and links that are shared between the public AWS documentation repositories.
To build any of these documentation sets, download one of these repositories and run the
build_docs.py
script that's provided in the repository. The script will automatically merge this
shared content into the build directory before building with Sphinx.
The shared content is organized into three major categories:
Common text roles and substitution are provided in the following files:
- common_includes.txt
Defines a number of roles and substitutions specific to AWS documentation, such as AWS service and SDK names, example values used for illustrative purposes, and roles used to style code and AWS-specific concepts.
The substitutions follow a similar pattern:
- AWS service names use the service's acronym. For example,
|EC2|
for Amazon EC2,|S3|
for Amazon S3,|LAM|
for AWS Lambda, and so on. - The full version of a service's name uses the service's acronym + 'long'. For example,
|EC2long|
renders as "Amazon Elastic Compute Cloud". - Service guide names use the service's acronym combined with the guide type. For example,
|S3-dg|
becomes "Amazon S3 Developer Guide", and|S3-api|
becomes "Amazon S3 API Reference".
- AWS service names use the service's acronym. For example,
- service_links.txt
Links to AWS service and SDK landing pages, the AWS console, and other frequently-referenced AWS URLs.
These follow the same pattern as service names. To create a link to the EC2 landing page, use
|EC2|_
. Similarly,|EC2long|_
should provide the same link, but will use the service's full name instead.- guide_links.txt
Links to AWS documentation. In addition to using these as stand-alone links to the documentation, the contents of this file are used to generate extlinks for deep-linking into these guides, within default_extlinks.py.
Guide links follow the same pattern as for service guide names: Use
|S3-dg|_
to create a named link to the Amazon S3 Developer Guide.- region_includes.txt
Substitutions used when referring to AWS regions.
For example, to refer to the us-west-2 region, use
|us-west-2-region|
, which will be replaced by "US West (Oregon)" in the text.
Located in the common directory, these files provide common descriptions and procedures used in the documentation. They're used like this:
.. include:: common/sdk-shared-credentials.txt
Which inserts the contents of sdk-shared-credentials.txt within the topic.
In the _conf directory, the default_extlinks.py file defines a number of extlinks for deep-linking into AWS documentation, linking to AWS forums, the AWS console and to the regions and endpoints topic in the AWS General Reference. It also pulls content from guide_links.txt to create extlinks for each guide listed in the file.
Extlinks follow the same pattern as substitutions, but you'll declare the page name in the extlink's body. These do not automatically pick up the page name, so you'll need to name the link yourself.
For example: :s3-dg:`Working with Amazon S3 Objects <UsingObjects>`
links to the Working with
Amazon S3 Objects topic in the
Amazon S3 Developer Guide.
You can do this with any of the AWS documentation defined in guide_links.txt
, along with any
further extlinks that are defined in default_extlinks.py
.
For any AWS documentation built using Sphinx (that is, open-source documentation hosted at
https://www.github.com/awsdocs/), You can use intersphinx to deep-link
within the documentation using the standard Sphinx :ref: and :doc: roles, providing the guide's intersphinx prefix as the first parameter of the
link, separated with a colon (:
) character.
The list of documentation available (along with the prefixes used to link to them) is contained within default_extlinks.py.
For example, to link to a topic within the AWS SDK for .NET Developer Guide (Version 3), you can use:
:doc:`netdg3:tutorials-examples`
Which will create a link to the topic Programming AWS Services with the AWS SDK for .NET.
You can use intersphinx to link to internal references within a topic, as well. This works with any named section in the documentation. For example, to link to the section Java Futures in the AWS SDK for Java Developer Guide, you'd write:
:ref:`javadg:basics-async-future`
The section title is automatically retrieved by intersphinx and inserted into a text along with a link to the section.
All content in this repository, unless otherwise stated, is Copyright © 2010-2016, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (the "License"). Use the preceding link for a human-readable summary of the license terms. The full license text is available at: http://creativecommons.org/licenses/by-nc-sa/4.0/legalcode and in the LICENSE file accompanying this repository.