Documentation for rsyslog is generated with the (Python) Sphinx documentation processor. There is also a procedure which automatically picks up the most recent doc from the git archive, generates the html pages and uploads them to rsyslog.com.
If you are new to rst and Sphinx, visit the Sphinx doc to get started: http://sphinx-doc.org/contents.html
While this hasn't happened for some time now, there might be cases where a page from previous html-only doc seems to be missing in rsyslog-doc. To recover it, check out the respective version (v8.1.6 is the latest v8 with html doc) and use this too to convert to rst:
$ pandoc -f html -t rst <html_file> -o <output_file>
Nowaday, it would be rather unexpected that this might really be needed, but we still wanted to include the information.
These assume default installs of Python for Windows and Linux
- Download the pip installer from here: https://raw.github.com/pypa/pip/master/contrib/get-pip.py
- Run: python ./get-pip.py
- Run: pip install sphinx
- Checkout Branch in Repo –
- Run: git clone https://github.com/rsyslog/rsyslog-doc.git
- Run: cd rsyslog-doc
- Run: git checkout v5-stable
- Run: sphinx-build -b html source build
- open rsyslog-doc/build/index.html in a browser
###Generate HTML Documentation on Windows
- Download the pip installer from here: https://raw.github.com/pypa/pip/master/contrib/get-pip.py
- Download and install Git for windows if you don’t already have Git:
- https://code.google.com/p/msysgit/downloads/list?can=3&q=full+installer+official+git&colspec=Filename+Summary+Uploaded+ReleaseDate+Size+DownloadCount
- Install Git for Windows.
- Run: c:\python27\python get-pip.py
- Run: c:\python27\scripts\pip install sphinx
- Checkout Branch in Repo –
- Run: git clone https://github.com/rsyslog/rsyslog-doc.git
- Run: cd rsyslog-doc
- Run: git checkout v5-stable
- Run: c:\python27\scripts\sphinx-build -b html source build
- open rsyslog-doc/build/index.html in a browser