Skip to content
Snippets Groups Projects
Commit afb32104 authored by Alessandro Cerioni's avatar Alessandro Cerioni
Browse files

Updated README.md

parent f09911dc
Branches
No related tags found
No related merge requests found
Pipeline #1038 failed
# Portail Data documentation # data.grandlyon.com Developer Guide
## Commands This documentation is fully written in Markdown. [MkDocs](https://www.mkdocs.org/) is used as well, so as to generate a beautiful static site out of this documentation.
* `mkdocs new [dir-name]` - Create a new project. ## MkDocs configuration
* `mkdocs serve` - Start the live-reloading docs server.
* `mkdocs build` - Build the documentation site. MkDocs can be configured by editing the `mkdocs.yml` file. We refer the user to the [official MkDocs documentation](https://www.mkdocs.org/user-guide/) for futher information.
* `mkdocs help` - Print this help message.
## Running MkDocs with virtualenv
## Setting files hierarchy
inside mkdocs.yml use the key nav: to configure the md files hierarchy The following commands allows one to setup a Python virtual environment, capable of running `mkdocs`:
nav: ```bash
- Home: index.md $ python3 -mvenv venv
- Architecture Guide: $ source venv/bin/activate
- Admin-gui: architecture/admin-gui.md $ pip install -r requirements.txt
- Admin-tools: architecture/admin-tools.md ```
- Api-gateway: architecture/api-gateway.md
- CMS: architecture/cms.md This project can then be built by issuing the following command:
- Monitoring: architecture/monitoring.md
- Web-app: architecture/web-app.md ```bash
- Service: $ mkdocs build
- authentification: architecture/service/autentification.md ```
- Elasticsearch:
- Indexer: architecture/service/elasticsearch/indexer.md A development server featuring live refresh can be started as follows:
## Project layout ```bash
$ mkdocs serve
mkdocs.yml # The main file and configuration file. ```
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files. ## Running MkDocs with Docker (recommended)
\ No newline at end of file
The provided `Dockerfile` and a `docker-compose.yml` file allow one to build and run this project with Docker.
### Build
```bash
$ docker-compose build
```
### Run
```bash
$ docker-compose up [-d]
```
### Build 'n' Run
```bash
$ docker-compose up --build [-d]
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment