You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the PreTeXt docs, what about using a table to illustrate the new project manifest format for project.ptx? I don't love the styling here in Github, but hoping that in PreTeXt we can make the rows less obvious?
Project manifest contents
Explanation
<?xml version="1.0" encoding="utf-8"?>
All project manifest files must begins with this XML prolog.
<project
Next, the project tag specifies values which apply to the entire project, as detailed below.
ptx-version="2"
The ptx-version="2" attribute denotes this as the current version of the project manifest; without this, the CLI will assume the legacy format.
output-dir="build/here"
The output-dir provides a path, relative to the project directory, which is prepended to any target's output_dir. The same pattern applies to several of the next attributes.
publication="dont-touch"
Likewise, the publication provides a path, relative to the project directory, prepended to any target's publication.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the PreTeXt docs, what about using a table to illustrate the new project manifest format for
project.ptx
? I don't love the styling here in Github, but hoping that in PreTeXt we can make the rows less obvious?<?xml version="1.0" encoding="utf-8"?>
<project
project
tag specifies values which apply to the entire project, as detailed below.ptx-version="2"
ptx-version="2"
attribute denotes this as the current version of the project manifest; without this, the CLI will assume the legacy format.output-dir="build/here"
output-dir
provides a path, relative to the project directory, which is prepended to any target'soutput_dir
. The same pattern applies to several of the next attributes.publication="dont-touch"
publication
provides a path, relative to the project directory, prepended to any target's publication.site="build/staging"
source="my_ptx_source"
xsl="customizations"
>
<server name="sage" url="http://example2.com"/>
<targets>
<target
name="web"
format="html"
output-dir="web"
output-filename="xxx"
publication="foo.ptx"
source="book.ptx"
site=""
xsl="silly.xsl"
>
<stringparams foo="bar" baz="goo" />
</targets>
</project>
Done.
Beta Was this translation helpful? Give feedback.
All reactions