# sphinx-maven
**Repository Path**: mirrors_Stratio/sphinx-maven
## Basic Information
- **Project Name**: sphinx-maven
- **Description**: Maven site plugin that uses Sphinx
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-18
- **Last Updated**: 2026-05-16
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## Introduction
The `sphinx-maven` plugin is a [Maven site](http://maven.apache.org/plugins/maven-site-plugin/) plugin that uses
[Sphinx](http://sphinx.pocoo.org/) to generate the main documentation. Sphinx itself is a tool to generate
documentation out of [reStructured Text](http://docutils.sf.net/rst.html) source files.
## Basic Usage
1. Create a folder `src/site/sphinx` (this can be changed via options should you want a different folder).
2. Generate documentation in it. Basically what you need is
* A configuration file called [conf.py](http://sphinx.pocoo.org/config.html) that defines the theme and other options (such as which output formats etc.)
* The documentation files in reStructured Text format
* Additional files such as static files (images etc.), usually in a `_static` sub directory
* Optionally, a customized theme in a sub directory called `_theme`
For good examples of documentation, see [Sphinx' examples page](http://sphinx.pocoo.org/examples.html). Personally, I like
[Werkzeug](http://werkzeug.pocoo.org/docs/) (documentation source is on [github](https://github.com/mitsuhiko/werkzeug/tree/master/docs)) and
[Celery](http://docs.celeryproject.org/en/latest/index.html) (documentation is also on [github](https://github.com/ask/celery/tree/master/docs)).
3. Add the sphinx maven plugin to your `pom.xml`:
org.apache.maven.plugins
maven-site-plugin
3.4
org.apache.maven.plugins
maven-project-info-reports-plugin
2.8
com.stratio.maven
sphinx-maven-plugin
2.0.0
singlehtml
src/site/sphinx
true
conf.py
It is important that you set the `reportSet` attribute of the `project-info-reports` plugin to an empty set of `reports`. If not
then the default `about` report will be generated which conflicts with the `sphinx-maven` plugin.
4. Generate the documentation by running
mvn site
This will generate the documentation in the `target/site/[builder]` folder.
## CHANGELOG
#### 2.0.0
- Refactor all the code to easy add new improvements.
- Updated all libraries into pom file.
- Added resources filtering. Now you can put in your conf.py file this: `version = '${project.version}'`
## TODOs
- PDF generator only works with jpg not with png.
- Update Sphinx version.
- Improve Sphinx jar generator scripts.