Mentions légales du service

Skip to content
Snippets Groups Projects
README.md 2.8 KiB
Newer Older
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed
# 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

Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed
Clone using git
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed
    
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed
    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"
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed
### Usage of git
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

To update your local copy

Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed
    git rebase .
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

Once your work is ready, you can commit locally

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

Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed
And then push all the local commits on Git Lab
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed
    git push
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

## Generate documentation

install required software

Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed
from `gazelle-dev-documentation` folder run:
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

    $ 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.

Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed
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.
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed


# Links

http://pandoc.org/

[Pandoc installation package](https://github.com/jgm/pandoc/releases/tag/1.17.2)

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