marian/doc
Qianqian Zhu 2a9c0bb377
Add graph documentations (#788)
* add API docs for expression_graph.h
* change API docs to doxygen-readable format
* add API docs for node_initializers
* update doxygen configure file
* add hyperlinks and remove layers section from graph documentation
* fixing typos and links on graph doc
2021-02-28 08:07:19 +00:00
..
_static/css Add documentation platform based on Sphinx+Doxygen+Breathe+Exhale (#803) 2021-02-23 16:25:30 +00:00
images Add graph documentations (#788) 2021-02-28 08:07:19 +00:00
.gitignore Add documentation platform based on Sphinx+Doxygen+Breathe+Exhale (#803) 2021-02-23 16:25:30 +00:00
conf.py Add documentation platform based on Sphinx+Doxygen+Breathe+Exhale (#803) 2021-02-23 16:25:30 +00:00
contributing.rst Add documentation platform based on Sphinx+Doxygen+Breathe+Exhale (#803) 2021-02-23 16:25:30 +00:00
graph.md Add graph documentations (#788) 2021-02-28 08:07:19 +00:00
index.rst Add documentation platform based on Sphinx+Doxygen+Breathe+Exhale (#803) 2021-02-23 16:25:30 +00:00
install.rst Add documentation platform based on Sphinx+Doxygen+Breathe+Exhale (#803) 2021-02-23 16:25:30 +00:00
make.bat Add documentation platform based on Sphinx+Doxygen+Breathe+Exhale (#803) 2021-02-23 16:25:30 +00:00
Makefile Add documentation platform based on Sphinx+Doxygen+Breathe+Exhale (#803) 2021-02-23 16:25:30 +00:00
operators.md Add documentation platform based on Sphinx+Doxygen+Breathe+Exhale (#803) 2021-02-23 16:25:30 +00:00
README.md Add documentation platform based on Sphinx+Doxygen+Breathe+Exhale (#803) 2021-02-23 16:25:30 +00:00
references.bib Added more references 2016-10-06 10:25:53 -05:00
requirements.txt Add documentation platform based on Sphinx+Doxygen+Breathe+Exhale (#803) 2021-02-23 16:25:30 +00: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...