Skip to content

Commit 3a381c7

Browse files
committed
work on docs
Signed-off-by: Grant Ramsay <[email protected]>
1 parent 646ed1b commit 3a381c7

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

docs/usage.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Installation
44

5-
Clone the repository and install the dependencies. This project uses
6-
[Poetry][poetry]{:target="_blank"} for dependency management which should be
7-
installed on your system first.
5+
Clone the repository from [here][repo]{:target="_blank"} and install the
6+
dependencies. This project uses [Poetry][poetry]{:target="_blank"} for
7+
dependency management which should be installed on your system first.
88

99
```console
1010
poetry install
@@ -30,7 +30,8 @@ uvicorn main:app --reload
3030
> python main.py
3131
> ```
3232
33-
Then open your browser at [http://localhost:8000](http://localhost:8000).
33+
Then open your browser at
34+
[http://localhost:8000](http://localhost:8000){:target="_blank"}.
3435
3536
There is only one endpoint available: `/users`. It returns a list of all users
3637
for a `GET` request and creates a new user for a `POST` request.
@@ -83,3 +84,4 @@ DATABASE_URL = "sqlite+aiosqlite:///./test.db"
8384
[postgres]:https://www.postgresql.org/
8485
[docker]:https://www.docker.com/
8586
[sqlite]:https://www.sqlite.org/
87+
[repo]:https://github.com/seapagan/fastapi_async_sqlalchemy2_example

mkdocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ site_name: Async SQLAlchemy 2 with FastAPI
33
repo_url: https://github.com/seapagan/fastapi_async_sqlalchemy2_example
44
repo_name: fastapi_async_sqlalchemy2
55

6+
dev_addr: "127.0.0.1:9000"
7+
68
theme:
79
name: material
810
features:
@@ -18,6 +20,8 @@ extra:
1820
- icon: fontawesome/brands/twitter
1921
link: https://twitter.com/gnramsay-dev
2022

23+
copyright: © 2023-2024 Grant Ramsay (Seapagan)
24+
2125
plugins:
2226
- search
2327
- minify:

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ ruff.cmd = "ruff check ."
5757
markdown.cmd = "pymarkdown --strict-config scan -r docs/**/*.md"
5858
markdown.help = "Run markdown checks"
5959

60+
# documentation tasks
61+
"docs:publish".cmd = "mkdocs gh-deploy"
62+
"docs:publish".help = "Publish documentation to GitHub Pages"
63+
"docs:build".cmd = "mkdocs build"
64+
"docs:build".help = "Build documentation locally to './site' folder"
65+
"docs:serve".cmd = "mkdocs serve"
66+
"docs:serve".help = "Serve documentation locally"
67+
"docs:serve:all".cmd = "mkdocs serve"
68+
"docs:serve:all".help = "Serve documentation locally on all interfaces"
69+
6070
[tool.pymarkdown]
6171
plugins.md014.enabled = false
6272
plugins.md046.enabled = false

0 commit comments

Comments
 (0)