Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dchassin committed Oct 9, 2024
1 parent d58d4b4 commit fe55c42
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/qdox/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
* `protocol://url/`: protocol://url/ formatting with active link
Pro-tip:
Pro-tips:
The module you are documenting must be installed in the active Python
environment for `qdox` to read information about the module.
Expand Down Expand Up @@ -499,7 +499,7 @@ def write_function(name,value):
write_function(name,value)
set_mode(None)

# document metadata
# document constants
constant_header = False
for name in dir(module):
if name.startswith("__"):
Expand All @@ -509,8 +509,9 @@ def write_function(name,value):
if not constant_header:
write_html("""<h2 class="w3-container">Python Constants</h2>""")
constant_header = True
write_html(f"<p/>`{name} = {value}`")
write_html(f"<p/>`{name} = {repr(value)}`")

# document metadata
write_html("""\n<h1 id="package" class="w3-container">Package Metadata</h1>\n""")
write_html("""<p/><table class="w3-container">\n""")
for key,data in package.items():
Expand Down

0 comments on commit fe55c42

Please sign in to comment.