Skip to content

Commit b743362

Browse files
cfedkElad Ben-Israel
authored and
Elad Ben-Israel
committed
fix(docs): use ..code to display file structure in "writing constructs" (#935)
Previously used backticks to indicate pre, but that doesn't work in rst, either viewing in Github file viewer or in the docs at https://awslabs.github.io/aws-cdk/writing-constructs.html. Switched to notation used in other files.
1 parent 27b26b1 commit b743362

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

docs/src/writing-constructs.rst

+13-14
Original file line numberDiff line numberDiff line change
@@ -162,20 +162,19 @@ Code Organization
162162

163163
Your package will roughly look like this:
164164

165-
```
166-
your-package
167-
├── package.json
168-
├── README.md
169-
├── lib
170-
│   ├── index.ts
171-
│   ├── some-resource.ts
172-
│   └── some-other-resource.ts
173-
└── test
174-
   ├── integ.everything.lit.ts
175-
   ├── test.some-resource.ts
176-
   └── test.some-other-resource.ts
177-
178-
```
165+
.. code::
166+
167+
your-package
168+
├── package.json
169+
├── README.md
170+
├── lib
171+
│   ├── index.ts
172+
│   ├── some-resource.ts
173+
│   └── some-other-resource.ts
174+
└── test
175+
  ├── integ.everything.lit.ts
176+
   ├── test.some-resource.ts
177+
   └── test.some-other-resource.ts
179178
180179
* Your package is named ``@aws-cdk/aws-xxx`` if it represents the canonical AWS
181180
Construct Library for this service; otherwise we recommend starting with

0 commit comments

Comments
 (0)