{ "$schema": "https://vega.github.io/schema/vega/v5.json", "width": 400, "height": 200, "padding": 5,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// asciidoctor-pdf -r ./build_tools/sectionTreeProcessor.js --template-require ./build_tools/sectionConverter.js -a purpose=pdf P_and_A_Update.adoc | |
// console.log('Loaded SectionTreeProcessor') | |
function removeElement(arr, e) { | |
arr.splice(arr.indexOf(e), 1) | |
} | |
function last(array) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// const asciidoctor = require('asciidoctor.js')() | |
// console.log('Loaded SectionConverter') | |
class SectionConverter { | |
constructor() { | |
const self = this | |
self.baseConverter = Opal.Asciidoctor.Html5Converter.$new() | |
self.templates = { | |
section: (node) => SectionConverter.convertSection(node) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21:21 $ asciidoctor -v Asciidoctor 2.0.10 [https://asciidoctor.org] | |
Runtime Environment (ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux-gnu]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8) | |
21:20 $ asciidoctor --trace -r ./lib/src-inline-macro.rb ./lib/src-inline-macro/sample.adoc | |
Traceback (most recent call last): | |
26: from /usr/bin/asciidoctor:15:in `<main>' | |
25: from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/invoker.rb:111:in `invoke!' | |
24: from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/invoker.rb:111:in `each' | |
23: from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/invoker.rb:128:in `block in invoke!' | |
22: from /usr/lib/ruby/vendor_ruby/asciidoctor/convert.rb:183:in `convert_file' |
There are 19 static site generators that support AsciiDoc sourcing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:figure-caption: Figure | |
:toc: left | |
:docinfo: shared | |
:docinfodir: {assetdir} | |
:docinfosubs: attributes | |
:safe-mode-unsafe: | |
:iconfont-remote!: | |
:stylesheet: asciidoctor.css | |
:scriptsdir: {assetdir} | |
:linkcss!: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'asciidoctor/extensions' unless RUBY_ENGINE == 'opal' | |
include Asciidoctor | |
Extensions.register do | |
treeprocessor do | |
process do |document| | |
figureNumbers = {} | |
document.find_by(context: :section) {|sect| | |
if sect.level == 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21:21 $ asciidoctor -q --trace Setting_Guide.adoc | |
Traceback (most recent call last): | |
71: from /usr/local/bin/asciidoctor:23:in `<main>' | |
70: from /usr/local/bin/asciidoctor:23:in `load' | |
69: from /var/lib/gems/2.5.0/gems/asciidoctor-2.0.0.rc.1/bin/asciidoctor:15:in `<top (required)>' | |
68: from /var/lib/gems/2.5.0/gems/asciidoctor-2.0.0.rc.1/lib/asciidoctor/cli/invoker.rb:109:in `invoke!' | |
67: from /var/lib/gems/2.5.0/gems/asciidoctor-2.0.0.rc.1/lib/asciidoctor/cli/invoker.rb:109:in `each' | |
66: from /var/lib/gems/2.5.0/gems/asciidoctor-2.0.0.rc.1/lib/asciidoctor/cli/invoker.rb:126:in `block in invoke!' | |
65: from /var/lib/gems/2.5.0/gems/asciidoctor-2.0.0.rc.1/lib/asciidoctor.rb:1530:in `convert_file' | |
64: from /var/lib/gems/2.5.0/gems/asciidoctor-2.0.0.rc.1/lib/asciidoctor.rb:1530:in `open' |
885 passing (1m) 8 failing
1) cli should generate site to fs destination when playbook file is passed to generate command: Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/antora/packages/cli/test/cli-test.js)
2) cli cache directory
Testing contributing.adoc
for Antora:
docker run -it ubuntu:cosmic bash
Within the container:
apt update && apt install -y wget git && wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="$HOME/.nvm"