Skip to content

Commit

Permalink
docs: rst -> md
Browse files Browse the repository at this point in the history
  • Loading branch information
phi-friday committed Oct 29, 2024
1 parent 78d2206 commit 4dcc3a3
Show file tree
Hide file tree
Showing 21 changed files with 122 additions and 238 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ build:
- asdf install uv latest
- asdf global uv latest
- uv sync --group docs
- uv run -m sphinx -T -b html -d docs/_build/doctrees -D language=en src/docs $READTHEDOCS_OUTPUT/html
- NO_COLOR=1 uv run mkdocs build --strict --site-dir $READTHEDOCS_OUTPUT/html
20 changes: 0 additions & 20 deletions Makefile

This file was deleted.

105 changes: 105 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
site_name: typed-diskcache
site_url: https://async-wrapper.readthedocs.io
repo_url: https://github.com/phi-friday/async-wrapper
repo_name: phi-friday/async-wrapper
docs_dir: src/docs
site_author: Choi Min-yeong
copyright: 2023-2024, Choi Min-yeong
watch:
- src/async_wrapper
nav:
- README: index.md
- LICENSE: license.md
- API:
- Convert: api/convert.md
- Pipe: api/pipe.md
- Queue: api/queue.md
- TaskGroup: api/task_group.md
- Wait: api/wait.md
- Exception: api/exception.md
theme:
name: material
icon:
repo: fontawesome/brands/github
palette:
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to system preference
features:
- navigation.instant
- navigation.tabs
- navigation.tabs.sticky
- navigation.top
- search.suggest
- search.highlight
- toc.follow
- content.code.copy
markdown_extensions:
- pymdownx.snippets
- pymdownx.tasklist
- pymdownx.highlight:
linenums: true
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences
plugins:
- search
- mkdocstrings:
handlers:
python:
paths:
- src
import:
- https://docs.python.org/3/objects.inv
- https://anyio.readthedocs.io/en/stable/objects.inv
options:
# general
allow_inspection: true
show_bases: true
show_source: true
# title
heading_level: 1
parameter_headings: true
show_root_toc_entry: true
show_root_heading: true
show_root_full_path: false
show_root_members_full_path: false
show_object_full_path: false
show_symbol_type_heading: true
show_symbol_type_toc: true
# members
members: null
inherited_members: true
members_order: source
summary: false
show_labels: true
filters:
- "!^_[^_]"
# docstring
docstring_style: google
docstring_options:
ignore_init_summary: true
trim_doctest_flags: true
docstring_section_style: table
merge_init_into_class: true
# signatures
annotations_path: "brief"
line_length: 60
show_signature: true
show_signature_annotations: true
separate_signature: true
signature_crossrefs: true
17 changes: 4 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,10 @@ dev = [
"async_wrapper[uvloop,sqlalchemy]",
]
docs = [
"linkify-it-py>=2.0.3; python_version < '3.10'",
"myst-parser>=3.0.1; python_version < '3.10'",
"sphinx-autodoc-typehints>=2.3.0; python_version < '3.10'",
"sphinx-immaterial>=0.12.4; python_version < '3.10'",
"sphinx>=7.4.7; python_version < '3.10'",
# 3.10
"linkify-it-py>=2.0.3; python_version >= '3.10'",
"myst-parser>=4.0.0; python_version >= '3.10'",
"sphinx>=8.1.3; python_version >= '3.10'",
"sphinx-autodoc-typehints>=2.5.0; python_version >= '3.10'",
"sphinx-immaterial>=0.12.4; python_version >= '3.10'",
#
"tomli>=2"
"mkdocs>=1.6.1",
"mkdocs-material>=9.5.42",
"mkdocstrings[python]>=0.26.2",
"black>=24.10.0",
]

[tool.uv]
Expand Down
1 change: 1 addition & 0 deletions src/docs/api/convert.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: async_wrapper.convert
1 change: 1 addition & 0 deletions src/docs/api/exception.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: async_wrapper.exception
1 change: 1 addition & 0 deletions src/docs/api/pipe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: async_wrapper.pipe
1 change: 1 addition & 0 deletions src/docs/api/queue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: async_wrapper.queue
1 change: 1 addition & 0 deletions src/docs/api/task_group.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: async_wrapper.task_group
1 change: 1 addition & 0 deletions src/docs/api/wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: async_wrapper.wait
7 changes: 0 additions & 7 deletions src/docs/async_wrapper/convert.rst

This file was deleted.

7 changes: 0 additions & 7 deletions src/docs/async_wrapper/exception.rst

This file was deleted.

12 changes: 0 additions & 12 deletions src/docs/async_wrapper/index.rst

This file was deleted.

7 changes: 0 additions & 7 deletions src/docs/async_wrapper/pipe.rst

This file was deleted.

13 changes: 0 additions & 13 deletions src/docs/async_wrapper/queue.rst

This file was deleted.

8 changes: 0 additions & 8 deletions src/docs/async_wrapper/task_group.rst

This file was deleted.

7 changes: 0 additions & 7 deletions src/docs/async_wrapper/wait.rst

This file was deleted.

129 changes: 0 additions & 129 deletions src/docs/conf.py

This file was deleted.

3 changes: 3 additions & 0 deletions src/docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--8<-----
README.md
--8<-----
14 changes: 0 additions & 14 deletions src/docs/index.rst

This file was deleted.

Loading

0 comments on commit 4dcc3a3

Please sign in to comment.