fix docs makefile to build html by default. fix the reference doc generator to strip TORRENT_FINAL macro

This commit is contained in:
arvidn 2015-12-27 22:37:44 -05:00
parent 448951af9c
commit a3526b4660
4 changed files with 5 additions and 4 deletions

View File

@ -270,7 +270,8 @@ def parse_class(lno, lines, filename):
state = 'private'
class_type = 'class'
name = decl.split(':')[0].replace('class ', '').replace('struct ', '').strip()
name = decl.split(':')[0].replace('class ', '').replace('struct ', '').replace('TORRENT_FINAL', '').strip()
while lno < len(lines):
l = lines[lno].strip()

View File

@ -55,15 +55,15 @@ FIGURES = \
disk_cache \
troubleshooting
rst: $(TARGETS:=.rst) todo.html
html: $(TARGETS:=.html) $(FIGURES:=.png) todo.html
rst: $(TARGETS:=.rst) todo.html
pdf: $(TARGETS:=.pdf) $(FIGURES:=.eps)
epub: $(TARGETS:=.epub) $(FIGURES:=.png)
all: html
all: html pdf
settings.rst: ../include/libtorrent/settings_pack.hpp
python gen_settings_doc.py

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB