Skip to content

Commit

Permalink
removed markdown library for something newer
Browse files Browse the repository at this point in the history
  • Loading branch information
brendena committed Dec 13, 2023
1 parent 8878853 commit 9906675
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ endif

docs:
@echo ================================== Generating Board docs
$(Q)python2.7 scripts/build_docs.py $(WRAPPERSOURCES) $(DEFINES) -B$(BOARD)
$(Q)python scripts/build_docs.py $(WRAPPERSOURCES) $(DEFINES) -B$(BOARD)
@echo functions.html created

$(WRAPPERFILE): scripts/build_jswrapper.py $(WRAPPERSOURCES)
Expand Down
7 changes: 3 additions & 4 deletions scripts/build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
# ----------------------------------------------------------------------------------------

# Needs:
# pip install markdown
# pip install markdown-urlize
# pip install markdown2
#
# See common.py -> get_jsondata for command line options

Expand All @@ -26,7 +25,7 @@
import os;
import common
import urllib3
import markdown
import markdown2
import html.entities as htmlentitydefs

sys.path.append(".");
Expand Down Expand Up @@ -79,7 +78,7 @@ def html(s):
htmlFile.write(s +"\n");

def htmlify(d,current):
d = markdown.markdown(d, extensions=['mdx_urlize'], tab_length=2)
d = markdown2.markdown(d)
# replace <code> with newlines with pre
idx = d.find("<code>")
end = d.find("</code>", idx)
Expand Down

0 comments on commit 9906675

Please sign in to comment.