Skip to content

Commit

Permalink
Minor bugfixes for Figure generation and aphaindex links.
Browse files Browse the repository at this point in the history
  • Loading branch information
revarbat committed Aug 16, 2023
1 parent 463205a commit 2f7278b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion openscad_docsgen/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,8 @@ def generate_image(self, target):
return
show_img = (
any(x in self.meta for x in ("2D", "3D", "Spin", "Anim")) or
self.parent.title in ("File", "LibFile", "Module", "Function&Module")
self.title.startswith("Figure") or
self.parent.title in ("File", "LibFile", "Section", "Subsection", "Module", "Function&Module")
)
if show_img:
outfile = os.path.join(target.docs_dir, self.image_url)
Expand Down
2 changes: 1 addition & 1 deletion openscad_docsgen/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ def write_index_file(self):
]))
out.extend(target.markdown_block([
" ".join(
target.get_link(ltr, anchor=ltr, literalize=False)
target.get_link(ltr, anchor=ltr.lower(), literalize=False)
for ltr in ltrs_found
)
]))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from setuptools import setup

VERSION = "2.0.40"
VERSION = "2.0.41"


with open('README.rst') as f:
Expand Down

0 comments on commit 2f7278b

Please sign in to comment.