diff options
author | Laura Arjona Reina <larjona@debian.org> | 2023-03-14 19:08:46 +0100 |
---|---|---|
committer | Laura Arjona Reina <larjona@debian.org> | 2023-03-27 14:04:22 +0200 |
commit | 12361160cfce820d5cd0de4c1cfdb6feaa2bfb02 (patch) | |
tree | cc6a7b758573da6da9a9b527afcbfb5dd6e71849 /english/doc | |
parent | fe9a92240d10d17033412e7f2e357d1beff01eda (diff) |
Add logic to show developers reference manual in single page HTML (Closes: #1032440)
Diffstat (limited to 'english/doc')
-rw-r--r-- | english/doc/devel-manuals.defs | 2 | ||||
-rw-r--r-- | english/doc/manuals.defs | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/english/doc/devel-manuals.defs b/english/doc/devel-manuals.defs index 4a789a21abc..7e545bf6198 100644 --- a/english/doc/devel-manuals.defs +++ b/english/doc/devel-manuals.defs @@ -21,7 +21,7 @@ <inddpvcs name="developers-reference" naming="locale" langs="en de fr it ja ru" - formats="html pdf txt epub" + formats="html singlepagehtml pdf txt epub" srctype="restructuredText" vcstype="git" vcsweb="https://salsa.debian.org/debian/developers-reference" diff --git a/english/doc/manuals.defs b/english/doc/manuals.defs index bc26445b125..4c6fad930b1 100644 --- a/english/doc/manuals.defs +++ b/english/doc/manuals.defs @@ -114,8 +114,14 @@ <set-var baselink=<get-var basename /> /> /> <if <get-var add-lang-ext /> + <if <match <get-var format /> "^singlepagehtml$" action=report /> + <set-var loc="<get-var baselink />.<get-var extlang />.html" /> <set-var loc="<get-var baselink />.<get-var extlang />.<get-var format />" /> + /> + <if <match <get-var format /> "^singlepagehtml$" action=report /> + <set-var loc="<get-var baselink />.<get-var format />.html" /> <set-var loc="<get-var baselink />.<get-var format />" /> + /> /> <when <match <get-var add-lang-ext /> "^$" action=report />> <when <match <get-var index /> "^index$" action=report />> @@ -130,6 +136,9 @@ <when <match <get-var format /> "txt" action=report />> <set-var txt=<gettext domain="doc">plain text</gettext> /> </when> + <when <match <get-var format /> "singlepagehtml$" action=report />> + <set-var txt=<gettext domain="doc">HTML (single page)</gettext> /> + </when> [<a href="<get-var path />/<get-var loc />"><get-var txt /></a>] # <if <match <get-var format /> "(html|txt|pdf|ps)" action=report /> "" # <exit message="you must pass a valid format to the inddpvcs tag" /> |