Mentions légales du service

Skip to content
Snippets Groups Projects
README.md 2.54 KiB
Newer Older
Cédric Eoche-Duval's avatar
Cédric Eoche-Duval committed
# Gazelle User Documentation
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

Generate gazelle framework documentation from markdown files.

Cédric Eoche-Duval's avatar
Cédric Eoche-Duval committed
This project generates static website (using jekyll) and PDF documents (oudated).
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

## Build and preview website with Docker

It requires Docker and docker-compose installed.

Cédric Eoche-Duval's avatar
Cédric Eoche-Duval committed
No more local Ruby, Pandoc, tex, ... are required.
Cédric Eoche-Duval's avatar
Cédric Eoche-Duval committed
To update website and serve it (ONLY FOR DEV):

```bash
docker-compose up --build
```

Document is then available at <http://localhost:1080/gazelle-documentation/>

Cédric Eoche-Duval's avatar
Cédric Eoche-Duval committed
## Build without Docker
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

Cédric Eoche-Duval's avatar
Cédric Eoche-Duval committed
### setup
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

Cédric Eoche-Duval's avatar
Cédric Eoche-Duval committed
```bash
sudo apt-get install make git git-svn texlive-xetex pandoc ruby-dev
```
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

Cédric Eoche-Duval's avatar
Cédric Eoche-Duval committed
Then, from `gazelle-dev-documentation` folder run to install some more libs and required gems 
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

Cédric Eoche-Duval's avatar
Cédric Eoche-Duval committed
```bash
make setup
```
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

Cédric Eoche-Duval's avatar
Cédric Eoche-Duval committed
### Generate the documents and the website
```bash
make
```
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

Cédric Eoche-Duval's avatar
Cédric Eoche-Duval committed
### Generate all the documents and start Jekyll (do not use in production)
```shell
make view
```
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

Cédric Eoche-Duval's avatar
Cédric Eoche-Duval committed
### Generate the PDF version of the release note
```shell
make release-notes
```
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

Cédric Eoche-Duval's avatar
Cédric Eoche-Duval committed
Check target/ folder for results
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

## Folder structure

    gazelle-documentation
      |
      +--tool1
      |  |--installation.md
      |  |--Makefile
      |  |--media/
      |  |--user.md
Cédric Eoche-Duval's avatar
Cédric Eoche-Duval committed
	  |	 |--release-notes/
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed
	  |  |	|--1_0_0.md (one file per release, named with version identifier)
      |  |--target/ (Created at compile time)
      |
      +--tool2
      |  |--installation.md
      |  |--Makefile
      |  |--media/
      |  |--user.md
Cédric Eoche-Duval's avatar
Cédric Eoche-Duval committed
	  |	 |--release-notes/
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed
	  |  |	|--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.
Cédric Eoche-Duval's avatar
Cédric Eoche-Duval committed
## Links
Anne-Gaëlle Bergé's avatar
Anne-Gaëlle Bergé committed

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