You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

122 lines
2.4 KiB

5 years ago
= Asciidoc Install !
Apostolos rootApostolos@swarmlab.io
// Metadata:
:description: Intro and Install
:keywords: doc
:data-uri:
:toc: right
:toc-title: Πίνακας περιεχομένων
:toclevels: 4
:source-highlighter: highlight
:icons: font
:sectnums:
5 years ago
include::header.adoc[]
5 years ago
{empty} +
[[cheat-Docker]]
== Install Docker (Ubuntu)
5 years ago
http://docs.swarmlab.io/Howtos/docker/install.adoc.html[^]
5 years ago
[[cheat-Ascii]]
== Install (swarmlab-adoc)
5 years ago
https://git.swarmlab.io:3000/swarmlab/swarmlab-adoc[^]
5 years ago
5 years ago
5 years ago
[[cheat-useadoc]]
5 years ago
5 years ago
== Usage (swarmlab-adoc)
- Open a console
- Switch to the directory that contains *.adoc documents
- Call the Asciidoctor processor with the swarmlab-adoc command
```
cd dir
swarmlab-adoc
```
TIP: swarmlab-adoc convert all *.adoc files recursiva in html5 and pdf
5 years ago
.If you need to convert only one file
5 years ago
[NOTE]
====
```
5 years ago
docker run --rm -v $(pwd):/documents/ registry.vlabs.uniwa.gr:5080/swarmlab-asciidoctor asciidoctor --safe -b html5 -a theme=flask -a toc2 -a toc-placement=right -o ./path/to/FILENAME.html ./path/from/FILENAME.adoc
5 years ago
```
5 years ago
Please note, there is a **.** in ./path
5 years ago
====
5 years ago
== Setup live preview Using a web browser
All you need to preview an AsciiDoc document in a web browser is to install the {uri-chrome-extension}[Chrome extension], the {uri-firefox-addon}[Firefox add-on] or the {uri-opera-extension}[Opera extension].
Then you can see the AsciiDoc file rendered as HTML just by visiting it!
5 years ago
5 years ago
.Live Preview
5 years ago
image:tiled-editor-and-web-preview.png[alt="Swarmlab"]
5 years ago
=== Installing the development versions
The validation process of a browser extension / addon can take a long time.
If you want the latest and greatest version you can use the direct download links below.
==== Chrome
. Download {uri-chrome-extension-dd}[asciidoctor-chrome-extension.nex]
. Open chrome://extensions
. Drag'n'drop the `.nex` file into the page to install
==== Firefox
. Download {uri-firefox-addon-dd}[asciidoctor-firefox-addon.xpi]
. Open the file with Firefox to install
==== Opera
. Dowload {uri-opera-extension-dd}[asciidoctor-chrome-extension.nex]
. Open opera://extensions
. Drag'n'drop the `.nex` file into the page to install
5 years ago
That's all folks! :-)
:hardbreaks:
{empty} +
{empty} +
{empty}
:!hardbreaks:
'''
.Reminder
[NOTE]
====
:hardbreaks:
Caminante, no hay camino,
se hace camino al andar.
Wanderer, there is no path,
the path is made by walking.
*Antonio Machado* Campos de Castilla
====