Skip to content

Commit 656b518

Browse files
committed
Document designs and packages
1 parent ba3b0ac commit 656b518

File tree

9 files changed

+102
-18
lines changed

9 files changed

+102
-18
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ htmlcov
3434
*.egg-info
3535
dist
3636
.venv
37+
38+
# mkdocs documentation
39+
docs/site

docs/index.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1 @@
1-
# Welcome to MkDocs
2-
3-
For full documentation visit [mkdocs.org](https://www.mkdocs.org).
4-
5-
## Commands
6-
7-
* `mkdocs new [dir-name]` - Create a new project.
8-
* `mkdocs serve` - Start the live-reloading docs server.
9-
* `mkdocs build` - Build the documentation site.
10-
* `mkdocs -h` - Print help message and exit.
11-
12-
## Project layout
13-
14-
mkdocs.yml # The configuration file.
15-
docs/
16-
index.md # The documentation homepage.
17-
... # Other markdown pages, images and other files.
1+
--8<-- "README.md"

docs/packages/aws-sdk-signers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: aws_sdk_signers

docs/packages/smithy-aws-core.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: smithy_aws_core
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: smithy_aws_event_stream

docs/packages/smithy-core.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: smithy_core

docs/packages/smithy-http.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: smithy_http

docs/packages/smithy-json.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: smithy_json

mkdocs.yml

Lines changed: 92 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,92 @@
1-
site_name: My Docs
1+
# Project Information
2+
site_name: Smithy Python
3+
watch: [README.md]
4+
5+
# Copyright
6+
copyright: Copyright &copy; 2025, Amazon Web Services, Inc
7+
8+
# Repository
9+
repo_name: smithy-lang/smithy-python
10+
repo_url: https://github.com/smithy-lang/smithy-python
11+
12+
# Theme
13+
theme:
14+
name: material
15+
logo: assets/smithy-anvil.svg
16+
palette:
17+
# Palette toggle for automatic mode
18+
- media: "(prefers-color-scheme)"
19+
toggle:
20+
icon: material/brightness-auto
21+
name: Switch to light mode
22+
23+
# Palette toggle for light mode
24+
- media: "(prefers-color-scheme: light)"
25+
scheme: default
26+
toggle:
27+
icon: material/brightness-7
28+
name: Switch to dark mode
29+
primary: black
30+
31+
# Palette toggle for dark mode
32+
- media: "(prefers-color-scheme: dark)"
33+
scheme: slate
34+
toggle:
35+
icon: material/brightness-4
36+
name: Switch to system preference
37+
primary: black
38+
features:
39+
- navigation.path
40+
- navigation.top
41+
- navigation.footer
42+
- content.code.copy
43+
44+
# Plugins
45+
plugins:
46+
- mkdocstrings:
47+
handlers:
48+
python:
49+
paths: [packages/*/src]
50+
options:
51+
show_submodules: true
52+
show_symbol_type_heading: true
53+
show_symbol_type_toc: true
54+
55+
# Navigation
56+
nav:
57+
- index.md
58+
- Packages:
59+
- smithy-core: packages/smithy-core.md
60+
- smithy-http: packages/smithy-http.md
61+
- smithy-json: packages/smithy-json.md
62+
- smithy-aws-core: packages/smithy-aws-core.md
63+
- smithy-aws-event-stream: packages/smithy-aws-event-stream.md
64+
- aws-sdk-signers: packages/aws-sdk-signers.md
65+
- Designs:
66+
- Auth: designs/auth.md
67+
- Documents: designs/documents.md
68+
- "Event Streams": designs/event-streams.md
69+
- Exceptions: designs/exceptions.md
70+
- "HTTP Interfaces": designs/http-interfaces.md
71+
- Retries: designs/retries.md
72+
- Serialization: designs/serialization.md
73+
- Shapes: designs/shapes.md
74+
75+
# Extensions
76+
markdown_extensions:
77+
- admonition
78+
- pymdownx.highlight:
79+
anchor_linenums: true
80+
line_spans: __span
81+
pygments_lang_class: true
82+
- pymdownx.inlinehilite
83+
- pymdownx.snippets
84+
- pymdownx.superfences
85+
- toc:
86+
permalink: true
87+
88+
# Extras
89+
extra:
90+
social:
91+
- icon: fontawesome/brands/github
92+
link: https://github.com/smithy-lang/smithy-python

0 commit comments

Comments
 (0)