Skip to content

taylo232/asciidoc-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a set of (hacked, non-idiomatic) python scripts collecting together the commands I have been using on the linux commandline (wsl) to process my asciidocs.

rascon.py

(R)ichard’s (AS)ciidoc (CON)version

This script converts an asciidoc file into a variety of formats, all in the current directory.

The formats are [d]ocx, [e]pub, [h]tml, [m]arkdown, [p]df, [t]xt, docbook[x]ml, [a]ll.

For conversion to MS Word (.docx) there needs to be a Word document called template.docx in home/<user>/.pandoc/`. The template can be configured in MS Word to your own preferred style.

Usage: rascon.py [adehmptx] file.adoc

A lack of command options assumes [a]ll

OS Dependencies (Linux):

  • pandoc, asciidoc, dblatex

TODO:

  • Offer a help option (h and --help) along with versioning/date

  • Auto check for the presence of template.docx and warn if necessary

raspub.py

(R)ichard’s (AS)ciidoc (PUB)lisher

This script moves any html files in the current folder to the nominated publishing folder. In the destination folder, the existing index.html file is replaced with a new one containing the links to any html file found in that folder. The links are sorted by modified date, with the newest at the top. It is assumed that the publishing folder contains a css file pub.css.

The variable PUBDIR needs to be set with the chosen publishing folder (Line 17)

Usage: raspub.py

OS Dependencies (Linux): - None

TODO:

  • Offer ftp transfer of pub files through commandline option and cfg file for login info

About

Utilities to help working with asciidoc files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages