From 1c017c649224958ad3983859fc0a3b45702cee9d Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Tue, 17 Dec 2013 15:06:20 +0100 Subject: [PATCH] More doc generation fixes. --- autoddoc.cfg | 8 ++++---- autoddoc.py | 4 ++-- docsrc/Makefile | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/autoddoc.cfg b/autoddoc.cfg index 3e61855..ddc1c51 100644 --- a/autoddoc.cfg +++ b/autoddoc.cfg @@ -7,12 +7,12 @@ version = 0.4 copyright = Ferdinand Majerech 2011. Based on PyYAML by Kirill Simonov. # File name of the logo of the project, if any. # Should be a PNG image. E.g. "logo.png". -logo = docsrc/logo128.png +logo = ../docsrc/logo128.png [OUTPUT] # Directory to write the documentation to. # If none specified, "autoddoc" is used. -directory = doc/html/api +directory = ../doc/html/api # CSS style to use. If empty, default will be generated. # You can create a custom style by generating default style # with "autoddoc.py -s" and modyfing it. @@ -20,7 +20,7 @@ style = # Documentation index file to use. If empty, default will be generated. # You can create a custom index by generating default index # with "autoddoc.py -i" and modyfing it. -index = docsrc/autoddoc_index.dd +index = ../docsrc/autoddoc_index.dd # Any extra links to add to the sidebar of the documentation. # Should be in the format "LINK DESCRIPTION", separated by commas. # E.g; To add links to Google and the D language site, you would use: @@ -34,4 +34,4 @@ ignore = test/*, examples/*, docsrc/*, autoddoc/*, yaml.d, unittest.d, cdc.d, dy [DDOC] # Command to use to generate the documentation. # Can be modified e.g. to use GDC or LDC. -ddoc_command = dmd -d -c -o- -Isource +ddoc_command = dmd -d -c -o- diff --git a/autoddoc.py b/autoddoc.py index 26f685b..480ba23 100755 --- a/autoddoc.py +++ b/autoddoc.py @@ -499,7 +499,7 @@ def add_index(index, output_dir): return shutil.copy(index, index_path) -def generate_ddoc(sources, output_dir, ddoc_template, ddoc_command): +def generate_ddoc(sources, output_dir, ddoc_command): """Generate documentation from sources, writing it to output_dir.""" #Generate index html with ddoc. @@ -647,7 +647,7 @@ def main(): add_css(css, output_dir) add_index(index, output_dir) - generate_ddoc(sources, output_dir, ddoc_template, ddoc_line + " " + ddoc_template); + generate_ddoc(sources, output_dir, ddoc_line + " " + ddoc_template) os.remove(ddoc_template) except Exception as error: print("Error during documentation generation:", error) diff --git a/docsrc/Makefile b/docsrc/Makefile index 0d810db..ee86f28 100644 --- a/docsrc/Makefile +++ b/docsrc/Makefile @@ -40,7 +40,7 @@ clean: # DDOC GENERATION CODE ################################################################################ ddoc_html : - cd ../ && ./autoddoc.py + cd ../source && ../autoddoc.py ../autoddoc.cfg ################################################################################ # DDOC GENERATION CODE END ################################################################################