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:
@@ -0,0 +1,10 @@
|
||||
rsts = $(wildcard *.rst)
|
||||
mds = $(patsubst %.rst,%.md,$(rsts))
|
||||
|
||||
all: $(mds)
|
||||
|
||||
clean:
|
||||
$(RM) -v $(mds)
|
||||
|
||||
$(mds): %.md : %.rst
|
||||
pandoc $< -o $@
|
||||
Reference in New Issue
Block a user