Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ echo "Generating reference docs toctree under ${refs_index}..."
cat ${refs_index}.template > ${refs_index}
ls -1 ${refdocsdir} | grep '.rst$' | sed -e 's/\.rst//' | sort | xargs -I{} echo " ${refdocs}/{}" >> ${refs_index}

export CDK_VERSION=$(cdk-version || echo "0.0.0.0")
export CDK_VERSION=$(../tools/pkgtools/bin/cdk-version)
echo "Set CDK_VERSION=${CDK_VERSION} (consumed by conf.py)..."

sphinx-build -b html $staging $output
2 changes: 1 addition & 1 deletion docs/src/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ Configure the bucket to use KMS managed encryption:

new Bucket(this, "MyFirstBucket", BucketProps.builder()
.withVersioned(true)
.withEncryption("MANAGED")
.withEncryption(BucketEncryption.KmsManaged)
.build());

Compile the program:
Expand Down
4 changes: 2 additions & 2 deletions tools/pkgtools/bin/cdk-version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
cat ../../lerna.json | grep "version" | xargs | cut -d" " -f2
#!/usr/bin/env node
console.log(require('../../../lerna.json').version);