Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
afae52c
Create an in-memory representation
criccomini Feb 21, 2025
99dbcb3
Update test to dump results
criccomini Feb 21, 2025
c195d25
Cleanup
criccomini Feb 22, 2025
c521dd9
Add signatures
criccomini Feb 22, 2025
701f687
Add examples and class attributes
criccomini Feb 22, 2025
7147066
Remove attributes
criccomini Feb 22, 2025
27b5b56
Fix render markdown stuff
criccomini Feb 22, 2025
d4a2a60
Re-add attributes
criccomini Feb 22, 2025
9f0f018
Change to include_private
criccomini Feb 22, 2025
c24b886
Make it stylish
criccomini Feb 22, 2025
c4721a0
Get rid of renderer abstract class
criccomini Feb 23, 2025
1ee4eb5
Make render_toc independent
criccomini Feb 23, 2025
3a4f65b
Separate toc from package and module rendering
criccomini Feb 23, 2025
62d0995
Style
criccomini Feb 23, 2025
8457259
Add render_files
criccomini Feb 23, 2025
0b78f84
Add support for render_files
criccomini Feb 23, 2025
e698bac
Update crawler to parser subpackages
criccomini Feb 23, 2025
f3f6371
Revert "Update crawler to parser subpackages"
criccomini Feb 23, 2025
6854579
Single file is working
criccomini Feb 24, 2025
3d3bd30
Remove submodules section from modules
criccomini Feb 24, 2025
bafae31
Multi-file working
criccomini Feb 24, 2025
1dd9570
Fix dupe modules in ToC
criccomini Feb 24, 2025
41f40b9
Style
criccomini Feb 24, 2025
cde0a44
Reorganize
criccomini Feb 24, 2025
5d1d20e
Add emojis
criccomini Feb 24, 2025
90bb75c
Flatten nested classes
criccomini Feb 24, 2025
60aab87
Fix constant anchors
criccomini Feb 24, 2025
129bbcd
Fix func signatures
criccomini Feb 24, 2025
dc40bda
Fix spacing
criccomini Feb 24, 2025
13b5807
Add basic markdown cleaning
criccomini Feb 24, 2025
10dbaa5
Tests pass
criccomini Feb 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove attributes
  • Loading branch information
criccomini committed Feb 22, 2025
commit 71470666088b00107fab0f155902ac64fdc1b73e
14 changes: 0 additions & 14 deletions src/python_docstring_markdown/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,20 +368,6 @@ def reformat_docstring(doc: docstring_parser.Docstring | None, signature: str |
lines.append("```python")
lines.append(signature)
lines.append("```")
if doc.attrs:
lines.append("**Attributes:**")
lines.append("")
for attr in doc.attrs:
attr_line = f"- `{attr.arg_name}`"
if attr.type_name:
attr_line += f" (**{attr.type_name}**)"
attr_line += f": {attr.description}"
if attr.default:
attr_line += f" (default: `{attr.default}`)"
if attr.is_optional:
attr_line += " (optional)"
lines.append(attr_line)
lines.append("")
if doc.params:
lines.append("**Parameters:**")
lines.append("")
Expand Down