Skip to content

Commit 2abf17f

Browse files
committed
Update docs
1 parent 3a2c494 commit 2abf17f

6 files changed

Lines changed: 77 additions & 46 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy Docs to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: "3.x"
18+
19+
- name: Install dependencies
20+
run: |
21+
pip install .[docs]
22+
23+
- name: Build site
24+
run: mkdocs build
25+
26+
- name: Deploy to GitHub Pages
27+
uses: peaceiris/actions-gh-pages@v6
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: ./site

.readthedocs.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,24 @@
66
[![GitHub Actions](https://github.com/rnag/py-secrets-cache/actions/workflows/release.yml/badge.svg)](https://github.com/rnag/py-secrets-cache/actions/workflows/release.yml)
77
[![Documentation Status](https://readthedocs.org/projects/secrets-cache/badge/?version=latest)](https://secrets-cache.readthedocs.io/en/latest/?version=latest)
88

9-
> [!TIP]
10-
> Want a full AWS Lambda + CDK deployment example?
11-
> Check out [secrets-cache-cdk-example](https://github.com/rnag/secrets-cache-cdk-example)
12-
> for a ready-to-deploy Python CDK project that demonstrates `secrets-cache` usage
13-
> with Secrets Manager and SSM parameters, including caching timings.
9+
!!! tip
10+
Check out [secrets-cache-cdk-example](https://github.com/rnag/secrets-cache-cdk-example)
11+
for a ready-to-deploy AWS Lambda + CDK project demonstrating `secrets-cache` usage
12+
with Secrets Manager and SSM parameters, including caching timings.
1413

1514
Cache secrets locally from AWS Secrets Manager and other secret stores, with optional local caching for development or Lambda-friendly usage.
1615

1716
* PyPI package: https://pypi.org/project/secrets-cache/
1817
* Free software: MIT License
19-
* Documentation: https://secrets-cache.readthedocs.io.
18+
* Documentation: https://secrets-cache.readthedocs.io
2019

2120
## Installation
2221

2322
Install the base package (minimal, Lambda-friendly):
2423

2524
```bash
2625
pip install secrets-cache[lambda]
27-
````
26+
```
2827

2928
For local development or testing (with local TOML caching, AWS SDK):
3029

@@ -84,7 +83,7 @@ When running in AWS Lambda, you usually don’t want file-based caching. Use the
8483

8584
```bash
8685
pip install secrets-cache[lambda]
87-
````
86+
```
8887

8988
### Example Lambda handler
9089

docs/index.md

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
1-
# Welcome to Secrets Cache's documentation!
2-
3-
## Contents
4-
5-
- [Readme](readme.md)
6-
- [Installation](installation.md)
7-
- [Usage](usage.md)
8-
- [Modules](modules.md)
9-
- [Contributing](contributing.md)
10-
- [History](history.md)
11-
12-
## Indices and tables
13-
14-
- [Index](genindex)
15-
- [Module Index](modindex)
16-
- [Search](search)
1+
<!-- include README.md content -->
2+
{%
3+
include-markdown "../README.md"
4+
start="<!--intro-start-->"
5+
end="<!--intro-end-->"
6+
%}

mkdocs.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
site_name: "Secrets Cache"
2+
site_url: "https://rnag.github.io/py-secrets-cache/"
3+
theme:
4+
name: material
5+
features:
6+
- navigation.tabs
7+
- navigation.instant
8+
markdown_extensions:
9+
- admonition # enables [!TIP], [!NOTE], etc.
10+
- codehilite
11+
- toc:
12+
permalink: true
13+
14+
nav:
15+
- Home: index.md
16+
- Installation: installation.md
17+
- Usage: usage.md
18+
# - Lambda Example: lambda_example.md
19+
# - Features: features.md
20+
# - Credits: credits.md
21+
22+
docs_dir: docs
23+
24+
plugins:
25+
- search
26+
- include-markdown
27+

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ local = [
4242
'tomli-w>=1.0', # TOML writer for Python <3.11
4343
'tomli>=2.0; python_version<"3.11"', # TOML reader for Python <3.11
4444
]
45+
docs = [
46+
'mkdocs',
47+
'mkdocs-material',
48+
'mkdocs-markdownextradata-plugin',
49+
'mkdocs-macros-plugin',
50+
'mkdocs-include-markdown-plugin',
51+
]
4552
lambda = [] # Lambda-friendly, skips boto3
4653
test = [
4754
"coverage", # testing

0 commit comments

Comments
 (0)