Skip to content

Commit 7e5a3da

Browse files
committed
Checking out griffe/tui/mkdocstrings
1 parent 493751e commit 7e5a3da

File tree

7 files changed

+549
-0
lines changed

7 files changed

+549
-0
lines changed

griffe-and-docs/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# griffe and docs
2+
3+
```shell
4+
# start mkdocs
5+
$ mkdocs serve
6+
7+
# tui doc browser
8+
$ griffe-tui
9+
10+
# json dump
11+
$ griffe dump src
12+
13+
```

griffe-and-docs/docs/index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Test
2+
3+
Some test here.
4+
5+
---
6+
7+
A function hello.
8+
9+
::: griffe_and_docs.hello
10+
11+
A module other.
12+
13+
::: griffe_and_docs.other
14+
15+
A class Foo.
16+
17+
::: griffe_and_docs.other.Foo

griffe-and-docs/mkdocs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
site_name: Test
2+
plugins:
3+
- mkdocstrings:
4+
handlers:
5+
python:
6+
paths: [src]

griffe-and-docs/pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[project]
2+
name = "griffe-and-docs"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.12"
7+
dependencies = [
8+
"griffe>=1.5.1",
9+
"griffe-tui>=1.0.0",
10+
"mkdocstrings-python>=1.12.2",
11+
"mkdocs>=1.6.1",
12+
]
13+
14+
[build-system]
15+
requires = ["hatchling"]
16+
build-backend = "hatchling.build"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def hello() -> str:
2+
return "Hello from griffe-and-docs!"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Foo:
2+
"""A Foo class for bar"""
3+
4+
def bar(self):
5+
"""A bar for foo"""
6+
pass

griffe-and-docs/uv.lock

Lines changed: 489 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)