Skip to content

Instantly share code, notes, and snippets.

Avatar

Roger Sheen infotexture

View GitHub Profile
View dita-ot-rng-catalog.xml
<?xml version="1.0" encoding="UTF-8"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<!-- Map an absolute RELAX NG schema reference to a location relative to this catalog -->
<uri name="https://www.dita-ot.org/project" uri="dita/DITA-OT3.x/resources/project.rnc"/>
<uri name="https://www.dita-ot.org/plugins" uri="dita/DITA-OT3.x/resources/plugin.rnc" />
</catalog>
@infotexture
infotexture / PR-3379-fo-tests.md
Last active Oct 11, 2019
Sample FO output for various index markup options
View PR-3379-fo-tests.md
@infotexture
infotexture / keybase.md
Created Sep 11, 2016
Keybase.io GitHub identity proof
View keybase.md

Keybase proof

I hereby claim:

  • I am infotexture on github.
  • I am infotexture (https://keybase.io/infotexture) on keybase.
  • I have a public key ASA5FXAWGFzIxTeuYBHqoLXTF1tX3EN9JfKKI8IGGqjegAo

To claim this, I am signing this object:

@infotexture
infotexture / _xml-d.scss
Last active Oct 23, 2015
Sass partial for DITA 1.3 XML mention domain
View _xml-d.scss
// Sass partial for DITA 1.3 XML mention domain
$code-fonts: Menlo, Monaco, Consolas, "Courier New", monospace;
$markup-color: #663399;
@mixin markupname {
color: $markup-color;
font-family: $code-fonts;
}
View ant-log-site-build.txt
site:
check-dita-home:
init:
generate-msg-topic:
generate-params-topic:
View docs-build-log-2099.txt
pdf:
check-dita-home:
init:
generate-msg-topic:
[xslt] Processing /.../dita-ot/src/main/resources/messages.xml to /.../docs/user-guide/DITA-messages.xml
[xslt] Loading stylesheet /.../docs/resources/messages.xsl
@infotexture
infotexture / jenkins_build.sh
Last active Aug 29, 2015
Sample Jenkins build script to generate output via DITA-OT & copy results to web server
View jenkins_build.sh
#!/bin/bash
# This script is run by Jenkins to execute all tests.
# It gets passed two parameters, the first one is either "ci" or "nightly" to
# indicate what kind of tests should be run. The second one is the branch that
# is being tested. This script should either work for all branches (makes
# merging easier) or each branch contains code that is specific for this branch,
# in which case you might want to double check that everything works after
# merging.
@infotexture
infotexture / pre-commit.sample.sh
Last active Jan 4, 2016
Sample Git `pre-commit` hook to build DITA output before committting and reject the changes if build fails
View pre-commit.sample.sh
#!/bin/sh
#
# Get the absolute path of the `.git/hooks` directory
export GIT_HOOKS=`cd "\`dirname "\\\`readlink "$0" || echo $0\\\`"\`" && pwd`
# Set the absolute path of the build directory
export BUILD_FILES="$GIT_HOOKS/../../build-files/"
# Set the absolute path of the DITA home directory
export DITA_HOME="$BUILD_FILES/../bin/dita-ot/"
# Set the absolute path of the DITA home directory again (weird, but necessary)
export DITA_DIR="$BUILD_FILES/../bin/dita-ot/"
@infotexture
infotexture / net.infotexture.autobuild_watcher.plist
Created Jan 26, 2014
Sample Mac OS X `launchd` script to watch a folder and run DITA builds whenever files change
View net.infotexture.autobuild_watcher.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<false/>
<key>Label</key>
<string>net.infotexture.autobuild_watcher</string>
<key>ProgramArguments</key>
<array>
@infotexture
infotexture / net.infotexture.autobuild_workdays.plist
Last active Jan 3, 2016
Sample Mac OS X `launchd` script to run DITA builds once at 9AM and every hour thereafter
View net.infotexture.autobuild_workdays.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>net.infotexture.autobuild_workdays</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>/Users/username/projectdir/scripts/run-dita-build.sh</string>