OLD | NEW |
---|---|
1 # Copyright 2015 The Crashpad Authors. All rights reserved. | 1 # Copyright 2015 The Crashpad Authors. All rights reserved. |
2 # | 2 # |
3 # Licensed under the Apache License, Version 2.0 (the "License"); | 3 # Licensed under the Apache License, Version 2.0 (the "License"); |
4 # you may not use this file except in compliance with the License. | 4 # you may not use this file except in compliance with the License. |
5 # You may obtain a copy of the License at | 5 # You may obtain a copy of the License at |
6 # | 6 # |
7 # http://www.apache.org/licenses/LICENSE-2.0 | 7 # http://www.apache.org/licenses/LICENSE-2.0 |
8 # | 8 # |
9 # Unless required by applicable law or agreed to in writing, software | 9 # Unless required by applicable law or agreed to in writing, software |
10 # distributed under the License is distributed on an "AS IS" BASIS, | 10 # distributed under the License is distributed on an "AS IS" BASIS, |
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 # See the License for the specific language governing permissions and | 12 # See the License for the specific language governing permissions and |
13 # limitations under the License. | 13 # limitations under the License. |
14 | 14 |
15 [miscellaneous] | 15 [miscellaneous] |
16 # AsciiDoc uses \r\n by default. | 16 # AsciiDoc uses \r\n by default. |
17 newline=\n | 17 newline=\n |
18 | 18 |
19 # The default AsciiDoc lang-en.conf uses docdate and doctime for the | 19 # The default AsciiDoc lang-en.conf uses docdate and doctime for the |
20 # last-updated line in footer-text. These attributes are taken from the file’s | 20 # last-updated line in footer-text. These attributes are taken from the file’s |
21 # mtime and cannot be overridden. For a git-based project, the date of the last | 21 # mtime and cannot be overridden. For a git-based project, the date of the last |
22 # revision is desirable, so change this to use revdate, an attribute that can be | 22 # revision is desirable, so change this to use git_date, an attribute that can |
23 # computed and passed in by the script that runs AsciiDoc. For man pages, use | 23 # be computed and passed in by the script that runs AsciiDoc. For man pages, use |
24 # the mansource and manversion attributes instead of the hard-coded “Version” | 24 # the mansource and manversion attributes instead of the hard-coded “Version” |
25 # string and revnumber attribute, so that the version will appear as “Crashpad | 25 # string and revnumber attribute, so that the version will appear as “Crashpad |
26 # 0.7.0” as it does in “man” output. | 26 # 0.7.0” as it does in “man” output. |
27 ifdef::basebackend-html[] | 27 ifdef::basebackend-html[] |
28 [footer-text] | 28 [footer-text] |
29 ifdef::doctype-manpage[] | |
29 {mansource=Version} {manversion={revnumber}}{basebackend-xhtml11?<br />}{basebac kend-xhtml11=<br>} | 30 {mansource=Version} {manversion={revnumber}}{basebackend-xhtml11?<br />}{basebac kend-xhtml11=<br>} |
30 Last updated {revdate} | 31 endif::doctype-manpage[] |
32 ifndef::doctype-manpage[] | |
33 Version {revnumber}{basebackend-xhtml11?<br />}{basebackend-xhtml11=<br>} | |
Robert Sesek
2015/04/01 15:25:58
If asciidoc supports it, HTML 5 > XHTML 1.1.
Mark Mentovai
2015/04/01 16:10:00
Robert Sesek wrote:
| |
34 endif::doctype-manpage[] | |
35 Last updated {git_date} | |
31 endif::basebackend-html[] | 36 endif::basebackend-html[] |
32 | 37 |
33 # The man_link macro was inspired by git’s linkgit macro. See | 38 # The man_link macro was inspired by git’s linkgit macro. See |
34 # https://github.com/git/git/blob/master/Documentation/asciidoc.conf. | 39 # https://github.com/git/git/blob/master/Documentation/asciidoc.conf. |
35 ifdef::doctype-manpage[] | 40 ifdef::doctype-manpage[] |
36 | 41 |
37 [macros] | 42 [macros] |
38 (?su)[\\]?(?P<name>man_link):(?P<target>\S*?)\[(?P<attrlist>.*?)\]= | 43 (?su)[\\]?(?P<name>man_link):(?P<target>\S*?)\[(?P<attrlist>.*?)\]= |
39 | 44 |
40 ifdef::backend-docbook[] | 45 ifdef::backend-docbook[] |
41 [man_link-inlinemacro] | 46 [man_link-inlinemacro] |
42 {0%{target}} | 47 {0%{target}} |
43 {0#<citerefentry>} | 48 {0#<citerefentry>} |
44 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>} | 49 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>} |
45 {0#</citerefentry>} | 50 {0#</citerefentry>} |
46 endif::backend-docbook[] | 51 endif::backend-docbook[] |
47 | 52 |
48 ifdef::basebackend-html[] | 53 ifdef::basebackend-html[] |
49 [man_link-inlinemacro] | 54 [man_link-inlinemacro] |
50 <a href="{target}.html">{target}{0?({0})}</a> | 55 <a href="{target}.html">{target}{0?({0})}</a> |
51 endif::basebackend-html[] | 56 endif::basebackend-html[] |
52 | 57 |
53 endif::doctype-manpage[] | 58 endif::doctype-manpage[] |
OLD | NEW |