Chris, I'm glad you got it working.
Here's some clarification for others.
Make sure there is no empty lines after the title. This will not work:
= Title
:attributes:
regarding docinfo, I was telling you old information.
The correct way to reference the docinfo.html file is to add this to the top
= Using CSS Classes to Assign a Font
:docinfo: shared
This tells Asciidoctor to inject the contents of the docinfo.html file into the head tag of the class.html file. That's the part that didn't work and the empty line is the most likely cause.
When it works correctly, then if you view source of the class.html page you will see:
...
<head>
<title>Using CSS Classes to Assign a Font</title>
<link rel="stylesheet" href="https://fonts.googlea...
<style>...</style>
<style type="text/css">
.SingleSentence {
font-family: Verdana, Geneva, Tahoma, sans-serif;
color: darkgoldenrod;
}
.SingleWord {
font-family: 'Times New Roman', Times, serif;
color: green;
}
</style>
...
</head>
...
<div id="content">
<div class="paragraph">
<p><span class="SingleSentence">This is a sentence.</span></p>
</div>
<div class="paragraph">
<p>Change the font for this <span class="SingleWord">word</span> but none others.</p>
</div>
</div>
Here's the latest Asciidoctor documentation on:
Docinfo file