Skip to content

Commit

Permalink
🔧 Add stripe dir, skip README in internal TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
williln committed Jun 13, 2024
1 parent 7b011ca commit 398dbc3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ build-internal-readmes:
python3 scripts/build_subdir_toc.py python
python3 scripts/build_subdir_toc.py r
python3 scripts/build_subdir_toc.py slack
python3 scripts/build_subdir_toc.py stripe
python3 scripts/build_subdir_toc.py wagtail
4 changes: 4 additions & 0 deletions scripts/build_subdir_toc.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ def generate_readme_links(directory):
if not title:
continue

# Skip the README file.
if file == "README.md":
continue

file_path = os.path.join(root, file)
relative_path = os.path.relpath(file_path, directory)
contents.append(f"- [{title}]({relative_path})")
Expand Down
5 changes: 5 additions & 0 deletions stripe/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# stripe

- [Creating a PaymentIntent, but not capturing it, and allowing more to be charged later](uncaptured_payment_intents_and_overcapture.md)
- [Generating a `PaymentIntent` and saving it to a Django model](payment_intents.md)
- [Using off-session payments and `setup_future_usage`](off_session_payments.md)

0 comments on commit 398dbc3

Please sign in to comment.