Coder Social home page Coder Social logo

aws-doc-shared-content's Introduction

aws-doc-shared-content

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.

What's included in the shared content

The shared content is organized into three major categories:

Shared roles and substitutions

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".
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.

Shared text blocks

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.

Shared extlinks and intersphinx links

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.

Using extlinks

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.

Using intersphinx

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.

Copyright and license

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.

aws-doc-shared-content's People

Contributors

eronhennessey avatar beckandros avatar soo-aws avatar dghale avatar jschwarzwalder avatar hyandell avatar gitgaby avatar pccornel avatar joshbean avatar carey-aws avatar shefulloflight avatar thomas-barton avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.