Skip to content

Instantly share code, notes, and snippets.

View mojavelinux's full-sized avatar

Dan Allen mojavelinux

View GitHub Profile
@mojavelinux
mojavelinux / test-asciidoctor.rb
Last active January 15, 2018 17:42
A Ruby script to load and render an AsciiDoc file using AsciiDoctor.
##!/usr/bin/env ruby
quiet = false
print = false
header_footer = true
while ARGV[0].to_s.start_with?('-')
case ARGV[0]
when '-o'
print = true
ARGV.shift
@mojavelinux
mojavelinux / test.asciidoc
Last active February 24, 2020 00:10
A sample AsciiDoc file for testing Asciidoctor.

Asciidoctor Demo

@mojavelinux
mojavelinux / asciidoctor.asciidoc
Last active December 11, 2015 12:38
Man page for the asciidoctor command (authored in AsciiDoc). Translate into man page format using: a2x -f manpage asciidoctor.asciidoc

asciidoctor(1) Manual Page

NAME

asciidoctor - converts an AsciiDoc source file to HTML, DocBook and other formats

@mojavelinux
mojavelinux / ape.asciidoc
Created January 28, 2013 10:08
Arquillian Persistence Extension Manual in AsciiDoc

Arquillian Persistence Guide

@mojavelinux
mojavelinux / arquillian_getting_started_guide.asciidoc
Last active December 11, 2015 20:19
Arquillian Getting Started Guide in AsciiDoc

Arquillian Getting Started Guide

@mojavelinux
mojavelinux / textile2asciidoc.rb
Last active September 13, 2019 12:43
A crude script to convert Textile documents to AsciiDoc. Some of the replacements are specific to markup that I use, but hopefully still useful.
#!/usr/bin/env ruby
if ARGV[0].nil?
$stderr.puts 'Must specify an input file'
exit 1
end
source = IO.read(ARGV[0])
title = nil
@mojavelinux
mojavelinux / examples.md
Last active September 3, 2020 17:04
Menu and key macros for AsciiDoc

Examples of custom macros for AsciiDoc

Path

path:/home/dallen/[]
path:/etc/my.cnf[]

Key

key:Enter[]

@mojavelinux
mojavelinux / asciidoc-recommended-practices.asciidoc
Last active December 12, 2015 10:39
AsciiDoc Recommended Practices (DRAFT)
@mojavelinux
mojavelinux / checklist.adoc
Created March 2, 2013 13:45
One approach for making a checklist in in AsciiDoc.

[✔] A completed task

[✔] Another completed task

[{nbsp}] An open task. Get to it!

@mojavelinux
mojavelinux / font-awesome-install.adoc
Created March 13, 2013 21:21
Instructions for adding Font Awesome to an Awestruct Bootstrap site.

Installing Font Awesome to an Awestruct Bootstrap site

DRAFT

Installing Font Awesome via Sass

  • Install Font Awesome Sass

    gem install font-awesome-sass