Skip to content

Commit

Permalink
Fixes in the documentation (#533)
Browse files Browse the repository at this point in the history
* Ensure correct Java example is provided in getting started (Fixes #531)
* Ensure correct version information is produced in the documentation
  • Loading branch information
RomainMuller authored Aug 9, 2018
1 parent 0842c3d commit c40afb5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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);

0 comments on commit c40afb5

Please sign in to comment.