File tree 7 files changed +64
-53
lines changed
7 files changed +64
-53
lines changed Original file line number Diff line number Diff line change 1
1
# Changes here will be overwritten by Copier.
2
- _commit : 1.7.1
2
+ _commit : 1.8.2
3
3
_src_path : gh:pawamoy/copier-uv
4
4
author_email : dev@pawamoy.fr
5
5
author_fullname : Timothée Mazzucotelli
Original file line number Diff line number Diff line change @@ -24,4 +24,49 @@ a.autorefs-external::after {
24
24
a .external : hover ::after ,
25
25
a .autorefs-external : hover ::after {
26
26
background-color : var (--md-accent-fg-color );
27
- }
27
+ }
28
+
29
+ /* Tree-like output for backlinks. */
30
+ .doc-backlink-list {
31
+ --tree-clr : var (--md-default-fg-color );
32
+ --tree-font-size : 1rem ;
33
+ --tree-item-height : 1 ;
34
+ --tree-offset : 1rem ;
35
+ --tree-thickness : 1px ;
36
+ --tree-style : solid;
37
+ display : grid;
38
+ list-style : none !important ;
39
+ }
40
+
41
+ .doc-backlink-list li > span : first-child {
42
+ text-indent : .3rem ;
43
+ }
44
+ .doc-backlink-list li {
45
+ padding-inline-start : var (--tree-offset );
46
+ border-left : var (--tree-thickness ) var (--tree-style ) var (--tree-clr );
47
+ position : relative;
48
+ margin-left : 0 !important ;
49
+
50
+ & : last-child {
51
+ border-color : transparent;
52
+ }
53
+ & ::before {
54
+ content : '' ;
55
+ position : absolute;
56
+ top : calc (var (--tree-item-height ) / 2 * -1 * var (--tree-font-size ) + var (--tree-thickness ));
57
+ left : calc (var (--tree-thickness ) * -1 );
58
+ width : calc (var (--tree-offset ) + var (--tree-thickness ) * 2 );
59
+ height : calc (var (--tree-item-height ) * var (--tree-font-size ));
60
+ border-left : var (--tree-thickness ) var (--tree-style ) var (--tree-clr );
61
+ border-bottom : var (--tree-thickness ) var (--tree-style ) var (--tree-clr );
62
+ }
63
+ & ::after {
64
+ content : '' ;
65
+ position : absolute;
66
+ border-radius : 50% ;
67
+ background-color : var (--tree-clr );
68
+ top : calc (var (--tree-item-height ) / 2 * 1rem );
69
+ left : var (--tree-offset ) ;
70
+ translate : calc (var (--tree-thickness ) * -1 ) calc (var (--tree-thickness ) * -1 );
71
+ }
72
+ }
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : API reference
3
+ hide :
4
+ - navigation
5
+ ---
6
+
7
+ # ::: mkdocs_llmstxt
Original file line number Diff line number Diff line change 19
19
- Changelog : changelog.md
20
20
- Credits : credits.md
21
21
- License : license.md
22
- # defer to gen-files + literate-nav
23
- - API reference : reference/
22
+ - API reference : reference/api.md
24
23
- Development :
25
24
- Contributing : contributing.md
26
25
- Code of Conduct : code_of_conduct.md
@@ -107,11 +106,6 @@ plugins:
107
106
- autorefs
108
107
- markdown-exec
109
108
- section-index
110
- - gen-files :
111
- scripts :
112
- - scripts/gen_api_ref.py
113
- - literate-nav :
114
- nav_file : SUMMARY.txt
115
109
- coverage
116
110
- mkdocstrings :
117
111
handlers :
@@ -121,6 +115,7 @@ plugins:
121
115
- https://www.crummy.com/software/BeautifulSoup/bs4/doc/objects.inv
122
116
paths : [src]
123
117
options :
118
+ backlinks : tree
124
119
docstring_options :
125
120
ignore_init_summary : true
126
121
docstring_section_style : list
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ getter = "scripts.get_version:get_version"
54
54
55
55
[tool .pdm .build ]
56
56
# Include as much as possible in the source distribution, to help redistributors.
57
- excludes = [" **/.pytest_cache" ]
57
+ excludes = [" **/.pytest_cache" , " **/.mypy_cache " ]
58
58
source-includes = [
59
59
" config" ,
60
60
" docs" ,
@@ -98,14 +98,12 @@ ci = [
98
98
" markdown-exec>=1.8" ,
99
99
" mkdocs>=1.6" ,
100
100
" mkdocs-coverage>=1.0" ,
101
- " mkdocs-gen-files>=0.5" ,
102
101
" mkdocs-git-revision-date-localized-plugin>=1.2" ,
103
- " mkdocs-literate-nav>=0.6" ,
104
102
" mkdocs-llmstxt>=0.1" ,
105
103
" mkdocs-material>=9.5" ,
106
104
" mkdocs-minify-plugin>=0.8" ,
107
105
" mkdocs-section-index>=0.3" ,
108
- " mkdocstrings[python]>=0.25 " ,
106
+ " mkdocstrings[python]>=0.29 " ,
109
107
# YORE: EOL 3.10: Remove line.
110
108
" tomli>=2.0; python_version < '3.11'" ,
111
109
]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
9
9
import griffe
10
10
import pytest
11
- from mkdocstrings . inventory import Inventory
11
+ from mkdocstrings import Inventory
12
12
13
13
import mkdocs_llmstxt
14
14
@@ -153,7 +153,11 @@ def test_inventory_matches_api(
153
153
public_api_paths = {obj .path for obj in public_objects }
154
154
public_api_paths .add ("mkdocs_llmstxt" )
155
155
for item in inventory .values ():
156
- if item .domain == "py" and "(" not in item .name :
156
+ if (
157
+ item .domain == "py"
158
+ and "(" not in item .name
159
+ and (item .name == "mkdocs_llmstxt" or item .name .startswith ("mkdocs_llmstxt." ))
160
+ ):
157
161
obj = loader .modules_collection [item .name ]
158
162
if obj .path not in public_api_paths and not any (path in public_api_paths for path in obj .aliases ):
159
163
not_in_api .append (item .name )
You can’t perform that action at this time.
0 commit comments