Generate multiple code snippets from a single source file (#2146)

* Support generating multiple snippets from one source file

* Convert Python code snippets from one source file

* Add code snippets for C#, Go, Java, Rust and TS

* Make intro less Python-oriented

* Add client installation instructions for all languages

* Cleanup python code

---------

Co-authored-by: xzfc <xzfcpw@gmail.com>
This commit is contained in:
Abdon Pijpelink
2026-02-23 10:09:56 +01:00
committed by GitHub
co-authored by xzfc
parent db35eb3992
commit bcc3c7206b
87 changed files with 2501 additions and 204 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ class LanguagePython(Language):
return result
@classmethod
def shorten(cls, contents: str) -> str:
def shorten(cls, contents: str) -> dict[str, str]:
lines = [
line
for line in contents.splitlines(keepends=True)