Nantes Université

Skip to content
Extraits de code Groupes Projets
README.adoc 1,05 ko
Newer Older
Erwan BOUSSE's avatar
Erwan BOUSSE a validé
= Minimal asciidoctor-revealjs project

Custom minimal asciidoctor-revealjs project.

Erwan BOUSSE's avatar
Erwan BOUSSE a validé
Uses https://gitlab.univ-nantes.fr/bousse-e/stereopticon[stereopticon theme].

Erwan BOUSSE's avatar
Erwan BOUSSE a validé
== Setup
Erwan BOUSSE's avatar
Erwan BOUSSE a validé

Create a folder for your project, go inside that folder and run:
Erwan BOUSSE's avatar
Erwan BOUSSE a validé
[source,bash]
----
sh -c "$(wget https://gitlab.univ-nantes.fr/bousse-e/minimal-slides-project/raw/master/setup.sh -O -)" 
Erwan BOUSSE's avatar
Erwan BOUSSE a validé
----
Erwan BOUSSE's avatar
Erwan BOUSSE a validé

Erwan BOUSSE's avatar
Erwan BOUSSE a validé
== Writing slides

- Use link:https://github.com/firecow/gitlab-ci-local/[`gitlab-ci-local`] to compile, which will produce web content in a `public` folder.
- Inside the `public` folder, Start a web server with `python -m SimpleHTTPServer 8080` or `ruby -run -e httpd . -p 8080 -b 127.0.0.1` or `live-server` with https://github.com/tapio/live-server  to have live-reload each time slides are modified.
- Open `http://localhost:8080`.
Erwan BOUSSE's avatar
Erwan BOUSSE a validé

_Optional: if working in a VSCode environment, use the https://github.com/wk-j/vscode-save-and-run[Save and Run] extension to automatically run `compile.sh` after each asciidoc file change. Combined with https://github.com/tapio/live-server[live server] this is amazing._