bergamot-translator/doc
Jerin Philip 13443352c0
Docs: Pin Jinja2 to last known working version (#389)
Fixes the docs workflow which is failing after pip is picking up Jinja 3.20. 
We only need >=2.3, this one sets it to 3.0.3 builds were successful last.
2022-03-24 19:26:20 +00:00
..
_static/css Marian compatible documentation tooling (#67) 2021-03-24 17:00:53 +00:00
.gitignore Marian compatible documentation tooling (#67) 2021-03-24 17:00:53 +00:00
CI.md Imported CI scripts from mozilla/bergamot-translator-old (#1) 2021-03-10 09:30:39 -08:00
conf.py Batteries included python package (#310) 2022-01-26 20:33:43 +00:00
index.rst Batteries included python package (#310) 2022-01-26 20:33:43 +00:00
make.bat Marian compatible documentation tooling (#67) 2021-03-24 17:00:53 +00:00
marian-integration.rst CI guaranteed example documentation (#300) 2022-01-06 19:10:57 +00:00
python.rst Batteries included python package (#310) 2022-01-26 20:33:43 +00:00
README.md Marian compatible documentation tooling (#67) 2021-03-24 17:00:53 +00:00
references.bib Marian compatible documentation tooling (#67) 2021-03-24 17:00:53 +00:00
requirements.txt Docs: Pin Jinja2 to last known working version (#389) 2022-03-24 19:26:20 +00:00
Unified_API.md Unified api draft (#1) 2020-10-29 09:17:32 +01:00
wasm-example.md Including WASM documentation in sphinx build toc (#176) 2021-06-01 12:39:28 +01:00

Marian NMT code documentation and library API

This directory contains code documentation and library API for developers of Marian NMT.

The documentation is generated using Sphinx + Breathe + Doxygen + Exhale. The documentation source code is written in .rst or .md files with special directives that allow to reference to C++ source code and documentation. The source documents are then build into static HTML pages.

Installation

On Ubuntu 20.04, install the following packages:

sudo apt-get install python3 python3-pip python3-setuptools doxygen

Then set up a Python environment and install modules:

pip3 install virtualenv
virtualenv venv -p python3
source venv/bin/activate
pip install -r requirements.txt

Documentation building should also work on Windows, but it has not been tested.

Generation

The documentation can be generated by running:

make html

The website will be generated into build/html and accessible by opening index.html in your browser.

Directories:

  • build - automatically output directory for HTML documentation
  • doxygen - automatically generated Doxygen XML files
  • api - automatic library API generated with Exhale
  • .rst and .md files in this directory and its subdirectories are documentation source files
  • _static - custom CSS and JavaScript files

Writing documentation

To be documented...