Skip to content

Commit e37b500

Browse files
authored
Add table of contents to README (#209)
1 parent b04813c commit e37b500

File tree

2 files changed

+74
-1
lines changed

2 files changed

+74
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ jobs:
6767
- name: Deploy prod API docs
6868
if: ${{ github.ref == 'refs/heads/main' && matrix.docsTarget }}
6969
run: npx vercel deploy build/apidocs -t ${{ secrets.VERCEL_TOKEN }} --name python --scope temporal --prod --yes
70+
71+
# Confirm README ToC is generated properly
72+
- uses: actions/setup-node@v3
73+
- name: Check generated README ToC
74+
if: ${{ matrix.docsTarget }}
75+
run: |
76+
npx doctoc README.md
77+
[[ -z $(git status --porcelain README.md) ]] || (git diff README.md; echo "README changed"; exit 1)
7078
7179
# Runs the sdk features repo tests with this repo's current SDK code
7280
sdk-features-tests:

README.md

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![MIT](https://img.shields.io/pypi/l/temporalio.svg?style=for-the-badge)](LICENSE)
66

77
[Temporal](https://temporal.io/) is a distributed, scalable, durable, and highly available orchestration engine used to
8-
execute asynchronous long-running business logic in a scalable and resilient way.
8+
execute asynchronous, long-running business logic in a scalable and resilient way.
99

1010
"Temporal Python SDK" is the framework for authoring workflows and activities using the Python programming language.
1111

@@ -38,6 +38,71 @@ event loop. This means task management, sleep, cancellation, etc have all been d
3838

3939
The Python SDK is under development. There are no compatibility guarantees at this time.
4040

41+
---
42+
43+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
44+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
45+
**Contents**
46+
47+
- [Quick Start](#quick-start)
48+
- [Installation](#installation)
49+
- [Implementing a Workflow](#implementing-a-workflow)
50+
- [Running a Workflow](#running-a-workflow)
51+
- [Usage](#usage)
52+
- [Client](#client)
53+
- [Data Conversion](#data-conversion)
54+
- [Workers](#workers)
55+
- [Workflows](#workflows)
56+
- [Definition](#definition)
57+
- [Running](#running)
58+
- [Invoking Activities](#invoking-activities)
59+
- [Invoking Child Workflows](#invoking-child-workflows)
60+
- [Timers](#timers)
61+
- [Conditions](#conditions)
62+
- [Asyncio and Cancellation](#asyncio-and-cancellation)
63+
- [Workflow Utilities](#workflow-utilities)
64+
- [Exceptions](#exceptions)
65+
- [External Workflows](#external-workflows)
66+
- [Testing](#testing)
67+
- [Automatic Time Skipping](#automatic-time-skipping)
68+
- [Manual Time Skipping](#manual-time-skipping)
69+
- [Mocking Activities](#mocking-activities)
70+
- [Workflow Sandbox](#workflow-sandbox)
71+
- [How the Sandbox Works](#how-the-sandbox-works)
72+
- [Avoiding the Sandbox](#avoiding-the-sandbox)
73+
- [Customizing the Sandbox](#customizing-the-sandbox)
74+
- [Passthrough Modules](#passthrough-modules)
75+
- [Invalid Module Members](#invalid-module-members)
76+
- [Known Sandbox Issues](#known-sandbox-issues)
77+
- [Global Import/Builtins](#global-importbuiltins)
78+
- [Sandbox is not Secure](#sandbox-is-not-secure)
79+
- [Sandbox Performance](#sandbox-performance)
80+
- [Extending Restricted Classes](#extending-restricted-classes)
81+
- [is_subclass of ABC-based Restricted Classes](#is_subclass-of-abc-based-restricted-classes)
82+
- [Activities](#activities)
83+
- [Definition](#definition-1)
84+
- [Types of Activities](#types-of-activities)
85+
- [Asynchronous Activities](#asynchronous-activities)
86+
- [Synchronous Activities](#synchronous-activities)
87+
- [Synchronous Multithreaded Activities](#synchronous-multithreaded-activities)
88+
- [Synchronous Multiprocess/Other Activities](#synchronous-multiprocessother-activities)
89+
- [Activity Context](#activity-context)
90+
- [Heartbeating and Cancellation](#heartbeating-and-cancellation)
91+
- [Worker Shutdown](#worker-shutdown)
92+
- [Testing](#testing-1)
93+
- [Workflow Replay](#workflow-replay)
94+
- [OpenTelemetry Support](#opentelemetry-support)
95+
- [Development](#development)
96+
- [Building](#building)
97+
- [Prepare](#prepare)
98+
- [Build](#build)
99+
- [Use](#use)
100+
- [Local SDK development environment](#local-sdk-development-environment)
101+
- [Testing](#testing-2)
102+
- [Style](#style)
103+
104+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
105+
41106
## Quick Start
42107

43108
### Installation

0 commit comments

Comments
 (0)