Skip to content

Commit 516f551

Browse files
authored
Merge pull request #264 from 15r10nk/llms-txt
docs: added llms.txt
2 parents 0f7f2aa + 543f0ed commit 516f551

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Added
2+
3+
- added `llms.txt` to make the documentation for llms more accessible.

mkdocs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,29 @@ plugins:
101101
ansi: required
102102
- replace-url
103103
- autorefs
104+
- llmstxt:
105+
sections:
106+
Overview:
107+
- index.md
108+
- configuration.md
109+
- pytest.md
110+
- categories.md
111+
- code_generation.md
112+
- limitations.md
113+
Core Reference:
114+
- fix_assert.md
115+
- eq_snapshot.md
116+
- cmp_snapshot.md
117+
- in_snapshot.md
118+
- getitem_snapshot.md
119+
- outsource.md
120+
- customize_repr.md
121+
- types.md
122+
HowTo:
123+
- howto/*.md
124+
Extensions:
125+
- extra.md
126+
- third-party.md
104127

105128

106129
extra:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ dependencies = [
105105
"mike",
106106
"mkdocstrings[python]>=0.19.0",
107107
"mkdocs-autorefs",
108+
"mkdocs-llmstxt",
108109
"replace-url @ {root:uri}/docs/plugins",
109110
"black",
110111
"commitizen"

src/inline_snapshot/_find_external.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ def used_externals_in(source) -> Set[str]:
4040
return {
4141
u.args[0].value
4242
for u in usages
43-
if u.args and isinstance(u.args[0], ast.Constant)
43+
if u.args
44+
and isinstance(u.args[0], ast.Constant)
45+
and isinstance(u.args[0].value, str)
4446
}
4547

4648

0 commit comments

Comments
 (0)