-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Build docs after packaging (#520)
Use the standard "sphinx" jsii target to produce sphinx documentation during "package", so all .rst files will end up under "pack/sphinx". Then, convert the docs directory from "packages/aws-cdk-docs" to just "docs", and not it's not an npm module anymore. It will collect the reference .rst from pack/sphinx and produce the output to pack/docs. Docs are now built outside of the normal build process, which also allows us to perform builds in node.js-only systems like Travis.ci It also improves performance of bootstrapping a repo. Delete the publish-docs.sh and publish-npm.sh scripts - they are now part of our CI/CD repository. For non-jsii modules, modified cdk-package to delete the target before moving the tarball in there. * pkglint: allow expected JSON to be a non-primitive (always return string)
- Loading branch information
Elad Ben-Israel
authored
Aug 8, 2018
1 parent
436cc6f
commit ba759ba
Showing
134 changed files
with
2,446 additions
and
3,652 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# render docs to docs/dist | ||
(cd docs && ./build-docs.sh) | ||
|
||
# deploy output to 'pack/docs' | ||
rm -fr pack/docs | ||
mkdir pack/docs | ||
rsync -av docs/dist/ pack/docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
102 changes: 51 additions & 51 deletions
102
packages/aws-cdk-docs/src/_includes.txt → docs/src/_includes.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
.. project-specific includes for this project. | ||
.. |cdk| replace:: AWS CDK | ||
.. |cdk-long| replace:: AWS Cloud Development Kit | ||
.. |toolkit| replace:: |cdk| Toolkit | ||
.. |cx| replace:: cdk | ||
.. |cx-bold| replace:: **cdk** | ||
.. |cx-code| replace:: :code:`cdk` | ||
.. |cx-deploy-bold| replace:: **cdk deploy** | ||
.. |cx-synth-bold| replace:: **cdk synth** | ||
.. |cx-synth-code| replace:: :code:`cdk synth` | ||
.. |cx-json| replace:: *cdk.json* | ||
.. |at-aws-cdk| replace:: **@aws-cdk/** | ||
.. |xxxx| replace:: *xxxx* | ||
.. |xxxx-scope| replace:: |at-aws-cdk| |xxxx| | ||
.. |construct-class| replace:: :py:class:`Construct <@aws-cdk/cdk.Construct>` | ||
.. |app-construct| replace:: :py:class:`Stack <@aws-cdk/cdk.Stack>` | ||
.. |app-class| replace:: :py:class:`App <@aws-cdk/cdk.App>` | ||
.. |this| replace:: **this** | ||
.. |parent| replace:: **parent** | ||
.. |stack| replace:: :py:class:`Stack <@aws-cdk/cdk.Stack>` | ||
.. |stack-class| replace:: |stack| | ||
.. |stack-construct| replace:: |stack| | ||
.. |storagelayer| replace:: *StorageLayer* | ||
.. |storagelayer-construct| replace:: |storagelayer| | ||
.. |resource-construct| replace:: *Resource* | ||
.. |aws-home| replace:: https://aws.amazon.com | ||
.. Installation entities | ||
.. |npm-package| replace:: aws-cdk-tools | ||
.. |nuget-package| replace:: aws-cdk | ||
.. |maven-id| replace:: aws-cdk | ||
.. |git-repo| replace:: https://github.com/awslabs/aws-cdk | ||
.. |npm-cmd| replace:: npm | ||
.. Construct levels | ||
.. |l1| replace:: CloudFormation Resource | ||
.. |l2| replace:: AWS Construct Library | ||
.. |l3| replace:: Purpose-built Library | ||
.. So back-to-back entities have a space between them | ||
.. |space| unicode:: 0x20 | ||
.. project-specific includes for this project. | ||
|
||
.. |cdk| replace:: AWS CDK | ||
.. |cdk-long| replace:: AWS Cloud Development Kit | ||
.. |toolkit| replace:: |cdk| Toolkit | ||
|
||
.. |cx| replace:: cdk | ||
.. |cx-bold| replace:: **cdk** | ||
.. |cx-code| replace:: :code:`cdk` | ||
.. |cx-deploy-bold| replace:: **cdk deploy** | ||
.. |cx-synth-bold| replace:: **cdk synth** | ||
.. |cx-synth-code| replace:: :code:`cdk synth` | ||
|
||
.. |cx-json| replace:: *cdk.json* | ||
|
||
.. |at-aws-cdk| replace:: **@aws-cdk/** | ||
.. |xxxx| replace:: *xxxx* | ||
.. |xxxx-scope| replace:: |at-aws-cdk| |xxxx| | ||
|
||
.. |construct-class| replace:: :py:class:`Construct <@aws-cdk/cdk.Construct>` | ||
.. |app-construct| replace:: :py:class:`Stack <@aws-cdk/cdk.Stack>` | ||
.. |app-class| replace:: :py:class:`App <@aws-cdk/cdk.App>` | ||
.. |this| replace:: **this** | ||
.. |parent| replace:: **parent** | ||
.. |stack| replace:: :py:class:`Stack <@aws-cdk/cdk.Stack>` | ||
.. |stack-class| replace:: |stack| | ||
.. |stack-construct| replace:: |stack| | ||
.. |storagelayer| replace:: *StorageLayer* | ||
.. |storagelayer-construct| replace:: |storagelayer| | ||
|
||
.. |resource-construct| replace:: *Resource* | ||
|
||
.. |aws-home| replace:: https://aws.amazon.com | ||
|
||
.. Installation entities | ||
|
||
.. |npm-package| replace:: aws-cdk-tools | ||
.. |nuget-package| replace:: aws-cdk | ||
.. |maven-id| replace:: aws-cdk | ||
.. |git-repo| replace:: https://github.com/awslabs/aws-cdk | ||
.. |npm-cmd| replace:: npm | ||
|
||
.. Construct levels | ||
|
||
.. |l1| replace:: CloudFormation Resource | ||
.. |l2| replace:: AWS Construct Library | ||
.. |l3| replace:: Purpose-built Library | ||
|
||
.. So back-to-back entities have a space between them | ||
|
||
.. |space| unicode:: 0x20 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
96 changes: 48 additions & 48 deletions
96
packages/aws-cdk-docs/src/concepts.rst → docs/src/concepts.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
.. Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 | ||
International License (the "License"). You may not use this file except in compliance with the | ||
License. A copy of the License is located at http://creativecommons.org/licenses/by-nc-sa/4.0/. | ||
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
either express or implied. See the License for the specific language governing permissions and | ||
limitations under the License. | ||
.. _concepts: | ||
|
||
############## | ||
|cdk| Concepts | ||
############## | ||
|
||
This topic describes some of the concepts (the why and how) | ||
behind the |cdk|. | ||
It also discusses the advantages of a |l2| over a low-level |l1|. | ||
|
||
|cdk| apps are represented as a hierarchal structure we call the *construct | ||
tree*. Every node in the tree is a |construct-class| object. The | ||
root of an |cdk| app is typically an |app-class| construct. Apps | ||
contain one or more |stack-class| constructs, which are deployable | ||
units of your app. | ||
|
||
This composition of constructs gives you the flexibility to architect your app, such as | ||
having a stack deployed in multiple regions. Stacks represent a collection of AWS resources, either directly or | ||
indirectly through a child construct that itself represents an AWS resource, such as an |SQS| | ||
queue, an |SNS| topic, an |LAM| function, or an |DDB| table. | ||
|
||
This composition of constructs also means you can easily create sharable constructs, | ||
and make changes to any construct and have those changes available to consumers | ||
as shared class libraries. | ||
|
||
.. toctree:: | ||
:titlesonly: | ||
:caption: Topics | ||
:maxdepth: 1 | ||
|
||
constructs | ||
stacks | ||
logical-ids | ||
environments | ||
apps | ||
context | ||
assets | ||
applets | ||
.. Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 | ||
International License (the "License"). You may not use this file except in compliance with the | ||
License. A copy of the License is located at http://creativecommons.org/licenses/by-nc-sa/4.0/. | ||
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
either express or implied. See the License for the specific language governing permissions and | ||
limitations under the License. | ||
.. _concepts: | ||
|
||
############## | ||
|cdk| Concepts | ||
############## | ||
|
||
This topic describes some of the concepts (the why and how) | ||
behind the |cdk|. | ||
It also discusses the advantages of a |l2| over a low-level |l1|. | ||
|
||
|cdk| apps are represented as a hierarchal structure we call the *construct | ||
tree*. Every node in the tree is a |construct-class| object. The | ||
root of an |cdk| app is typically an |app-class| construct. Apps | ||
contain one or more |stack-class| constructs, which are deployable | ||
units of your app. | ||
|
||
This composition of constructs gives you the flexibility to architect your app, such as | ||
having a stack deployed in multiple regions. Stacks represent a collection of AWS resources, either directly or | ||
indirectly through a child construct that itself represents an AWS resource, such as an |SQS| | ||
queue, an |SNS| topic, an |LAM| function, or an |DDB| table. | ||
|
||
This composition of constructs also means you can easily create sharable constructs, | ||
and make changes to any construct and have those changes available to consumers | ||
as shared class libraries. | ||
|
||
.. toctree:: | ||
:titlesonly: | ||
:caption: Topics | ||
:maxdepth: 1 | ||
|
||
constructs | ||
stacks | ||
logical-ids | ||
environments | ||
apps | ||
context | ||
assets | ||
applets |
Oops, something went wrong.