from code-server

This commit is contained in:
Andy Bunce 2021-03-23 22:38:58 +00:00
parent eda5c02fe9
commit 5ef8bdba47
2652 changed files with 528235 additions and 0 deletions

View file

@ -0,0 +1,14 @@
<?xml version='1.0' encoding='UTF-8'?>
<project>
<target name="dita2html5-custom-css"
depends="dita2html5-custom-css.init,
dita2html5"/>
<target name="dita2html5-custom-css.init">
<property name="args.cssroot"
location="${dita.plugin.com.example.html5-custom-css.dir}/css"/>
<property name="args.css" value="custom.css"/>
<property name="args.copycss" value="yes"/>
<property name="args.csspath" value="css"/>
</target>
</project>

View file

@ -0,0 +1,5 @@
/* These custom styles extend or override DITA Open Toolkit default styles. */
body {
color: red;
}

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://www.dita-ot.org/rng/plugin.rnc" type="application/relax-ng-compact-syntax"?>
<plugin id="com.example.html5-custom-css">
<require plugin="org.dita.html5"/>
<transtype name="html5-custom-css" extends="html5" desc="HTML5 with custom CSS"/>
<feature extension="ant.import" file="build_html5-custom-css.xml"/>
</plugin>

View file

@ -0,0 +1,11 @@
<?xml version='1.0' encoding='UTF-8'?>
<project>
<target name="dita2html5-javascript"
depends="dita2html5-javascript.init,
dita2html5"/>
<target name="dita2html5-javascript.init">
<property name="args.ftr"
location="${dita.plugin.com.example.html5-javascript.dir}/include/javascript.ftr.xml"/>
</target>
</project>

View file

@ -0,0 +1,15 @@
<div>
<!-- Google Analytics -->
<script>
console.log('Adding Google Analytics tracker');
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXX-Y', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
</div>

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://www.dita-ot.org/rng/plugin.rnc" type="application/relax-ng-compact-syntax"?>
<plugin id="com.example.html5-javascript">
<require plugin="org.dita.html5"/>
<transtype name="html5-javascript" extends="html5" desc="HTML5 with embedded JavaScript"/>
<feature extension="ant.import" file="build_html5-javascript.xml"/>
</plugin>

View file

@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<project>
<target name="dita2html5-webfont"
depends="dita2html5-webfont.init,
dita2html5"/>
<target name="dita2html5-webfont.init">
<property name="args.hdf"
location="${dita.plugin.com.example.html5-webfont.dir}/include/webfont.hdf.xml"/>
<property name="args.cssroot"
location="${dita.plugin.com.example.html5-webfont.dir}/css"/>
<property name="args.css" value="custom.css"/>
<property name="args.copycss" value="yes"/>
<property name="args.csspath" value="css"/>
</target>
</project>

View file

@ -0,0 +1,3 @@
body {
font-family: 'Noto Sans', sans-serif;
}

View file

@ -0,0 +1,3 @@
<div>
<link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet"/>
</div>

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://www.dita-ot.org/rng/plugin.rnc" type="application/relax-ng-compact-syntax"?>
<plugin id="com.example.html5-webfont">
<require plugin="org.dita.html5"/>
<transtype name="html5-webfont" extends="html5" desc="HTML5 with Noto Sans webfont"/>
<feature extension="ant.import" file="build_html5-webfont.xml"/>
</plugin>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<catalog prefer="system"
xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<uri name="cfg:fo/attrs/custom.xsl" uri="fo/attrs/custom.xsl"/>
<uri name="cfg:fo/xsl/custom.xsl" uri="fo/xsl/custom.xsl"/>
</catalog>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<vars xmlns="http://www.idiominc.com/opentopic/vars">
<!-- Remove dot from list number -->
<variable id="Ordered List Number">
<param ref-name="number"/>
</variable>
<!-- Change unordered list bullet to an em dash -->
<variable id="Unordered List bullet">&#x2014;</variable>
</vars>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0">
<!-- Change page size to A4 -->
<xsl:variable name="page-width">210mm</xsl:variable>
<xsl:variable name="page-height">297mm</xsl:variable>
</xsl:stylesheet>

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="2.0">
<!-- Move figure title to top and description to bottom -->
<xsl:template match="*[contains(@class,' topic/fig ')]">
<fo:block xsl:use-attribute-sets="fig">
<xsl:call-template name="commonattributes"/>
<xsl:if test="not(@id)">
<xsl:attribute name="id">
<xsl:call-template name="get-id"/>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="*[contains(@class,' topic/title ')]"/>
<xsl:apply-templates select="*[not(contains(@class,' topic/title ') or contains(@class,' topic/desc '))]"/>
<xsl:apply-templates select="*[contains(@class,' topic/desc ')]"/>
</fo:block>
</xsl:template>
</xsl:stylesheet>

View file

@ -0,0 +1,10 @@
<?xml version='1.0' encoding='UTF-8'?>
<project>
<target name="dita2print-pdf"
depends="dita2print-pdf.init,
dita2pdf2"/>
<target name="dita2print-pdf.init">
<property name="customization.dir"
location="${dita.plugin.com.example.print-pdf.dir}/cfg"/>
</target>
</project>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://www.dita-ot.org/rng/plugin.rnc" type="application/relax-ng-compact-syntax"?>
<plugin id="com.example.print-pdf">
<require plugin="org.dita.pdf2"/>
<transtype name="print-pdf" extends="pdf" desc="PDF on A4 paper"/>
<feature extension="dita.transtype.print" value="print-pdf"/>
<feature extension="ant.import" file="integrator.xml"/>
</plugin>