Added a 'pdf-exclude' property to master-doc.txt, allowing a page not to be included in the PDF version of the manual (e.g. Lua Bindings)

This commit is contained in:
Ed Ward 2019-08-28 16:27:01 +02:00
parent 5b9b7ee275
commit c4f67cf6c2
2 changed files with 6 additions and 1 deletions

View File

@ -21,6 +21,7 @@ import datetime
global_bootstrap_path = '/bootstrap-3.3.7'
global_page_title = 'The Ardour Manual'
global_site_dir = './website/'
global_manual_url = 'http://manual.ardour.org'
global_githuburl = 'https://github.com/Ardour/manual/edit/master/include/'
global_screen_template = 'page-template.html'
global_onepage_template = 'onepage-template.html'
@ -619,7 +620,10 @@ for header in fileStruct:
# Set up the actual page from the template
onepage = onepage.replace('{{ content }}', oph + '\n' + opcontent + '\n{{ content }}')
if not nopdf:
pdfpage = pdfpage.replace('{{ content }}', oph + '\n' + opcontent + '\n{{ content }}')
if not 'pdf-exclude' in header:
pdfpage = pdfpage.replace('{{ content }}', oph + '\n' + opcontent + '\n{{ content }}')
else:
pdfpage = pdfpage.replace('{{ content }}', oph + '\n' + 'Please refer to the <a href="' + global_manual_url + '/' + header['filename'] + '/">online manual</a>.\n{{ content }}')
# ----- Normal version -----

View File

@ -1995,6 +1995,7 @@ title: Lua Bindings Class Reference
style: luadoc
include: class-reference.html
exclude: yes
pdf-exclude: yes
link: class-reference
uri: lua-scripting/class_reference
part: chapter