This project uses Zensical to build and serve the documentation site. Set up a dedicated Python virtual environment to keep things isolated:
python -m venv ~/.venvs/zensical
source ~/.venvs/zensical/bin/activate
pip install zensicalOnce installed, activate the venv and run Zensical from the repository root:
source ~/.venvs/zensical/bin/activate
# Live preview with hot-reload
zensical serve
# Production build
zensical build --cleanRun mdformat to auto-format Markdown files before committing:
# single file
mdformat docs/index.md
# all docs
mdformat docs/The copy is written in Markdown and rendered by Zensical. Please see the authoring-guide for samples on how to create code-blocks, examples, info boxes and other formatting features.
Edit documentation in the markdown files under docs/.
Embed code samples in documentation pages with the --8<-- snippet syntax with content tabs for multi-language support.
IMPORTANT: All code examples MUST include all three languages (Python, TypeScript, Java) and remain functionally equivalent across languages. The tab order must always be TypeScript → Python → Java.
- Create example files under
examples/following the page folder hierarchy - Use identical names with hyphens across all languages (e.g.,
retry-with-backoff.{py,ts,java}) - Organize by language:
examples/{language}/{section}/{subsection}/{example-name}.{ext} - Ensure all three language versions demonstrate the same functionality
- Reference the examples in your documentation using content tabs:
=== "TypeScript"
```typescript
--8<-- "examples/typescript/core/steps/basic-step.ts"
```
=== "Python"
```python
--8<-- "examples/python/core/steps/basic-step.py"
```
=== "Java"
```java
--8<-- "examples/java/core/steps/basic-step.java"
```examples/
├── typescript/
│ ├── getting-started/
│ │ └── minimal-example.ts
│ ├── core/
│ │ ├── steps/
│ │ │ └── basic-step.ts
│ │ └── parallel/
│ │ └── parallel-execution.ts
│ └── advanced/
│ └── error-handling/
│ └── retry-with-backoff.ts
├── python/
│ ├── getting-started/
│ │ └── minimal-example.py
│ ├── core/
│ │ ├── steps/
│ │ │ └── basic-step.py
│ │ └── parallel/
│ │ └── parallel-execution.py
│ └── advanced/
│ └── error-handling/
│ └── retry-with-backoff.py
└── java/
├── getting-started/
│ └── minimal-example.java
├── core/
│ ├── steps/
│ │ └── basic-step.java
│ └── parallel/
│ └── parallel-execution.java
└── advanced/
└── error-handling/
└── retry-with-backoff.java
This approach keeps code samples maintainable, testable, and consistent across all languages.
Use Conventional Commits format:
<type>(<scope>): <subject>
<body>
- type and scope are optional
- Subject line must be 50 characters or less
- Use lowercase for type and scope
- Use imperative mood in the subject ("add" not "added" or "adds")
- No period at the end of the subject line
- Wrap body text at 72 characters
- Use the body to explain what changed and why, with bullet points when helpful
Common types: feat, fix, docs, style, refactor, test, chore
Example:
add custom serdes examples
- Add TypeScript, Python, and Java examples for custom
serialization
- Include encryption-at-rest pattern for sensitive data
- Update serialization doc page with snippet references
- Create a feature branch and edit the Markdown files under
docs/(and corresponding code samples underexamples/). - Preview your changes locally by running
zensical serveand opening the local URL it prints. - Once you're happy with the result, commit your changes and open a pull request against the main branch.
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
- A reproducible test case or series of steps
- The version of our code being used
- Any modifications you've made relevant to the bug
- Anything unusual about your environment or deployment
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
- You are working against the latest source on the main branch.
- You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
- You open an issue to discuss any significant work - we would hate for your time to be wasted.
To send us a pull request, please:
- Fork the repository.
- Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
- Ensure local tests pass.
- Commit to your fork using clear commit messages.
- Send us a pull request, answering any default questions in the pull request interface.
- Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
GitHub provides additional document on forking a repository and creating a pull request.
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.
This project has adopted the Amazon Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opensource-codeofconduct@amazon.com with any additional questions or comments.
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our vulnerability reporting page. Please do not create a public github issue.
See the LICENSE file for our project's licensing. We will ask you to confirm the licensing of your contribution.