Skip to content

alibaba/ansible-provider-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aliyun Ansible Modules Documentation

This project contains the source code of Module Documentation for Aliyun Ansible. Follow below instructions to generate documentation from DOCUMENTATION string in the modules.

Pre-Requisites (Ubuntu OS)

  • make utility

    Make utility is required to generate html docs. Install make utility by running below command on Ubuntu.
sudo apt-get -y install make 
  • python version 2.7.X

    Run below command to install python.
sudo apt-get -y install python2.7

Check python installation by running below command.

python --version
  • Install pip

    Run below command to install pip and other packages.
sudo apt-get -y install python-pip python-dev dos2unix
  • Install sphinx and theme:
pip install sphinx==1.4.8 sphinx_rtd_theme

Build the documentation

To build module documentation you'll need to run below command in ansible-provider-docs/docs/docsite folder.

cd docs/docsite
make webdocs 

The generated html files are in _build/html/ folder