Way overthinking this.

I want stub Markdown files for each (as yet undocumented) function.
The functions have docstrings but they are in ReST format.  Using the
`wrod.py` script I can fins all the functions that don't yet have doc
files and write their docstrings into a ReST template.  Then I use Make
and Pandoc to convert the ReST files to Markdown.
This commit is contained in:
Simon Forman
2022-03-23 10:33:02 -07:00
parent 6d9c4f14dc
commit dc76b4da2e
2 changed files with 104 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
rsts = $(wildcard *.rst)
mds = $(patsubst %.rst,%.md,$(rsts))
all: $(mds)
clean:
$(RM) -v $(mds)
$(mds): %.md : %.rst
pandoc $< -o $@