ESA-APEx / apex_documentation

APEx documentation portal
https://esa-apex.github.io/apex_documentation/
1 stars 0 forks source link

Welcome to the APEx documentation portal

This GitHub repository serves as the central hub for managing the APEx documentation portal. The content generation is facilitated by Quarto, an open-source scientific and technical publishing system.

Installing Python dependencies

Some documentation pages may include Python code to enable interactive visualizations or dynamic content generation. To support the creation of these pages, it's essential to install all the necessary dependencies. This can be done by executing the following command:

pip install -r requirements.txt

Previewing Documents

To preview the content and any changes you make, it's crucial to install the Quarto CLI beforehand. Once installed, you can preview the content by running the following command in your terminal:

quarto preview .

This command will initiate a local preview of the documentation portal, allowing you to review your changes before committing them.

Code quality: pre-commit hooks

This repository provides a pre-commit config to manage code quality and consistency at commit time. pre-commit is a generic CLI tool and framework for managing git pre-commit hooks, not only for quick quality checks (e.g. linting and syntax checks) but also for code formatting fixes and more.

Setup instructions (one time only):

Usage instructions (every time you commit):

Deliverables

Since the content of this repository is also included in a deliverable, we can use the Quarto framework to generate the deliverable content. To preview the deliverable, execute the following command:

quarto preview _deliverables/<name>.md

To generate the corresponding Word document, use the following command:

quarto render _deliverables/<name>.md --to docx