Closed mikucionisaau closed 5 years ago
You should use the Makefile, it has targets doc_html
, doc_devhelp
, and doc_qch
.
Ouch, my bad, I should have read the readme first, sorry.
I downloaded the html-book-20190110.zip and unpacked, creating reference
. Now make doc_devhelp
gives me:
$ make doc_devhelp
mkdir -p output
./preprocess.py --src reference --dst output/reference
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/shutil.py", line 563, in move
os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: 'output/reference/upload.cppreference.com/mwiki' -> 'output/reference/common'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./preprocess.py", line 83, in <module>
main()
File "./preprocess.py", line 45, in main
preprocess.rearrange_archive(root)
File "/Users/marius/cppreference-doc/commands/preprocess.py", line 58, in rearrange_archive
shutil.move(os.path.join(root, 'upload.cppreference.com/mwiki'), data_path)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/shutil.py", line 577, in move
copy_function(src, real_dst)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/shutil.py", line 263, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'output/reference/upload.cppreference.com/mwiki'
make: *** [output/reference] Error 1
You downloaded the compiled HTML book. To compile the reference yourself you need cppreference-doc-20190110.tar.xz
instead, this should contain all the scripts and source HTML necessary for building (there's no need to check out this repository at all, unless you want to make changes yourself).
I am trying to compile a devhelp book for Mac, found devhelp2qch.py script, but it gives me issues:
What am I missing?