Mentions légales du service

Skip to content
Snippets Groups Projects

Generate beautiful word from markdown

Generate gazelle framework documentation from markdown files.

This project generates pdf, pdf with revision marks and a static website (using jekyll).

Requirements

sudo apt-get install make git git-svn texlive-xetex pandoc ruby-dev

Clone using git

mkdir gazelle-user-documentation
cd gazelle-user-documentation
git clone git@gitlab.inria.fr:gazelle/documentation/gazelle-user-documentation.git

You shall have previously defined your GitLab user: git config --global user.email "email@example.com"

Usage of git

To update your local copy

git rebase .

Once your work is ready, you can commit locally

git add filenames
git commit -m "blah blah" filenames

And then push all the local commits on Git Lab

git push

Generate documentation

install required software

from gazelle-dev-documentation folder run:

$ make setup
  # will install requirement on the computer

$ make
  # will generate all the documents and the website

$ make view
  # will generate all the documents and start jekyll

from a project folder run:

  $ make release-notes
    # will generate the PDF version of the release notes

Check target folder for results

Folder structure

gazelle-documentation
  |
  +--tool1
  |  |--installation.md
  |  |--Makefile
  |  |--media/
  |  |--user.md
  |	 |--release-notes/
  |  |	|--1_0_0.md (one file per release, named with version identifier)
  |  |--target/ (Created at compile time)
  |
  +--tool2
  |  |--installation.md
  |  |--Makefile
  |  |--media/
  |  |--user.md
  |	 |--release-notes/
  |  |	|--1_0_0.md (one file per release, named with version identifier)
  |  |--target/ (Created at compile time)
  |
  |
  +--Makefile.generic
  +--Makefile
  +--target/ (Created at compile time)

Markdown files

The source files use the Markdown language.

To get fancy final documents, you need:

  • A YAML header containing all the requested metadata (see YAML section)
  • Use Relative paths to pictures (eg. “./media/mypicture.jpg”)
  • Use Relative paths to point the resources located on the same platform (eg. If you need to reference a page in your tool, start the URL at “/theTool”)

The YAML header is used by Jekyll and pandoc to generate menus and front pages, make sure all the metadata are present and up-to-date. The *.md files must start with the YAML header.

The YAML header is used by Jekyll and pandoc to generate menus and front pages, make sure all the metadata are present and up-to-date. The *.md files must start with the YAML header.

Links

http://pandoc.org/

Pandoc installation package

http://blog.cigrainger.com/2014/07/pandoc-markdown.html