Skip to content

Commit b72b243

Browse files
authored
Fix 52 add mkdocs (#73)
* fix #52 add mkdocs * add mkdocs ci scripts * add document link
1 parent 7f582a8 commit b72b243

File tree

9 files changed

+470
-9
lines changed

9 files changed

+470
-9
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ jobs:
6262
token: ${{ secrets.CODECOV_TOKEN }} # required
6363
verbose: true # optional (default = false)
6464

65-
# # Build Mkdocs
66-
# - name: Build Mkdocs
67-
# run: poetry run mkdocs build
65+
# Build Mkdocs
66+
- name: Build Mkdocs
67+
run: poetry run mkdocs build

.github/workflows/python-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ jobs:
4141
user: __token__
4242
password: ${{ secrets.PYPI_API_TOKEN }}
4343
- run: poetry install --with dev
44-
# - run: poetry run mkdocs gh-deploy --force
44+
- run: poetry run mkdocs gh-deploy --force

README.ipynb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
"[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)\n",
1818
"[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n",
1919
"[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)\n",
20+
"\n",
21+
"\n",
22+
"\n",
23+
"### Table of Contents\n",
24+
"\n",
25+
"- [Documentation](https://livingbio.github.io/typed-ffmpeg/)\n",
2026
"\n"
2127
]
2228
},

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414

1515

1616

17+
### Table of Contents
18+
19+
- [Documentation](https://livingbio.github.io/typed-ffmpeg/)
20+
21+
22+
1723

1824
## Installation
1925

docs/ffmpeg_media_type.md

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

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--8<-- "README.md"

mkdocs.yml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
site_name: ffmpeg-media-type
2+
site_description: Data validation using Python type hints
3+
strict: true
4+
site_url: https://livingbio.github.io/ffmpeg-media-type/
5+
6+
theme:
7+
name: "material"
8+
palette:
9+
- media: "(prefers-color-scheme: light)"
10+
scheme: default
11+
primary: pink
12+
accent: pink
13+
toggle:
14+
icon: material/lightbulb-outline
15+
name: "Switch to dark mode"
16+
- media: "(prefers-color-scheme: dark)"
17+
scheme: slate
18+
primary: pink
19+
accent: pink
20+
toggle:
21+
icon: material/lightbulb
22+
name: "Switch to light mode"
23+
features:
24+
- content.tabs.link
25+
- content.code.annotate
26+
- content.code.copy
27+
- announce.dismiss
28+
- navigation.tabs
29+
30+
repo_name: livingbio/ffmpeg-media-type
31+
repo_url: https://github.com/livingbio/ffmpeg-media-type
32+
edit_uri: edit/main/docs/
33+
34+
# https://www.mkdocs.org/user-guide/configuration/#validation
35+
# validation:
36+
# omitted_files: warn
37+
# absolute_links: warn
38+
# unrecognized_links: warn
39+
40+
nav:
41+
- Get Started:
42+
- Overview: index.md
43+
- API Documentation:
44+
- ffmpeg_media_type: ffmpeg_media_type.md
45+
46+
watch:
47+
- "src"
48+
- "docs"
49+
- "README.md"
50+
51+
# https://www.mkdocs.org/user-guide/configuration/#validation
52+
# validation:
53+
# omitted_files: warn
54+
# absolute_links: warn
55+
# unrecognized_links: warn
56+
57+
markdown_extensions:
58+
- attr_list
59+
- admonition
60+
- callouts
61+
- footnotes
62+
- pymdownx.details
63+
- pymdownx.magiclink
64+
- pymdownx.snippets:
65+
check_paths: true
66+
- pymdownx.superfences
67+
- pymdownx.tabbed:
68+
alternate_style: true
69+
- pymdownx.tasklist:
70+
custom_checkbox: true
71+
- pymdownx.highlight:
72+
pygments_lang_class: true
73+
- pymdownx.extra
74+
- pymdownx.tilde
75+
- tables
76+
- toc:
77+
permalink: true
78+
title: Page contents
79+
80+
plugins:
81+
- search
82+
- mknotebooks:
83+
execute: false
84+
timeout: 100
85+
# preamble: "<path/to/your/script>"
86+
allow_errors: true
87+
- mkdocstrings:
88+
handlers:
89+
python:
90+
options:
91+
docstring_options:
92+
ignore_init_summary: true
93+
filters: ["!^_"]
94+
heading_level: 1
95+
inherited_members: true
96+
merge_init_into_class: true
97+
separate_signature: true
98+
show_root_heading: true
99+
show_root_full_path: false
100+
show_signature_annotations: true
101+
show_symbol_type_heading: true
102+
show_symbol_type_toc: true
103+
signature_crossrefs: true
104+
summary: true
105+
docstring_section_style: table
106+
order: source
107+
docstring_style: google
108+
extensions:
109+
- griffe_inherited_docstrings

0 commit comments

Comments
 (0)