Skip to content

Latest commit

 

History

History
111 lines (87 loc) · 2.31 KB

README.adoc

File metadata and controls

111 lines (87 loc) · 2.31 KB

asciidoctor html readthedocs theme

This is an early draft trying to bring a more modern look to the readthedocs theme included in the asciidoctor gem.

Note
This style is still work in progress and not every element has been finalized yet. Refer to the Sample Article file to judge for yourself.
asciidoctor readthedocs screenshot admonition
Figure 1. Screenshot of current admonition.
asciidoctor readthedocs screenshot lists
Figure 2. Screenshot of current lists.

How to use

Copy the css file

Simply copy the readthedocs.css file to your projects root folder and run asciidoctor as follows:

asciidoctor -a stylesdir="$(pwd)" -a sytlesheet=readthedocs.css *.adoc

As a git submodule

Add the style as git submodule into your project.

git submodule add \
  https://github.com/uroesch/asciidoctor-readthedocs-theme \
  readthedocs

The run asciidoctor as shown below.

asciidoctor \
  -a stylesdir="$(pwd)/readthedocs" \
  -a sytlesheet=readthedocs.css \
  *.adoc

Build from scratch

Prerequisites

  • ruby

  • rake

  • docker

Build

Simply type rake and the command will download a docker container for the build. And create the readthedocs.css file.

rake

Create test document

The syntax.adoc from the asciidoctor distribution is included use rake to create the html file. This yields the file samples/article.html.

rake test

Todo

  • ✓ Table of Contents

  • ❏ Admonition

    • ✓ Admonition colors and style.

    • ❏ Admonition title overrides.

    • ✓ Simple one line admonitions.

    • ❏ Rich content admonitions.

  • ✓ Lists

    • ✓ Unordered Lists

    • ✓ Ordered Lists

      • ✓ Alpha numeric

      • ✓ Roman numerals

    • ✓ Checklists

  • ✓ Links

    • ✓ Link symbol in section titles (anchor)

    • ✓ Adjust link and text-decoration.

  • ❏ Quotes

  • ❏ Tables

    • ❏ Table border style

    • ❏ Table header style

    • ✓ Code inside tables

    • ✓ Code inside tables

  • ❏ Cleanup

    • ❏ Remove duplication.

  • ❏ Footer

Regressions

  • ❏ Tables

    • ❏ Verses inside tables (v| prefix) do not render correctly.

    • ❏ Stripes don’t seem to work.