rsyslog-docs
Documentation for the rsyslog project
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.
Learning the doc tools
If you are new to rst and Sphinx, visit the Sphinx doc to get started: http://sphinx-doc.org/contents.html
Importing missing content
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.
Instructions
These assume default installs of Python for Windows and Linux
Generate HTML Documentation on 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 (note that in step 5 you have to run the command in the root directory of the project)
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