Merge "Create initial sphinx documentation"
This commit is contained in:
commit
6d2dedfdd8
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
.tox
|
||||
build/*
|
||||
*.pyc
|
||||
doc/build/*
|
||||
doc/source/api/*
|
||||
|
50
README.rst
Normal file
50
README.rst
Normal file
@ -0,0 +1,50 @@
|
||||
=========
|
||||
GerritBot
|
||||
=========
|
||||
|
||||
Gerritbot is an IRC bot that will notify IRC channels of Gerrit events.
|
||||
|
||||
To install::
|
||||
|
||||
$ sudo python setup.py install
|
||||
|
||||
Online documentation:
|
||||
|
||||
* http://ci.openstack.org/gerritbot/
|
||||
|
||||
Developers
|
||||
==========
|
||||
|
||||
Bug report:
|
||||
|
||||
* https://bugs.launchpad.net/openstack-ci/
|
||||
|
||||
Cloning:
|
||||
|
||||
* https://github.com/openstack-ci/gerritbot.git
|
||||
|
||||
Patches are submitted via Gerrit at:
|
||||
|
||||
* https://review.openstack.org/
|
||||
|
||||
More details on how you can contribute is available on our wiki at:
|
||||
|
||||
* http://wiki.openstack.org/HowToContribute
|
||||
|
||||
License
|
||||
=======
|
||||
|
||||
Copyright 2011 OpenStack, LLC
|
||||
Copyright 2012 Hewlett-Packard Development Company, L.P.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
35
doc/source/conf.py
Normal file
35
doc/source/conf.py
Normal file
@ -0,0 +1,35 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
|
||||
import sys, os
|
||||
|
||||
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage']
|
||||
|
||||
# The suffix of source filenames.
|
||||
source_suffix = '.rst'
|
||||
|
||||
# The master toctree document.
|
||||
master_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
project = u'GerritBot'
|
||||
copyright = u'2012, OpenStack Continuous Integration Administrators'
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
pygments_style = 'sphinx'
|
||||
|
||||
# -- Options for HTML output ---------------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
html_theme = 'default'
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'GerritBotdoc'
|
||||
|
||||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
('index', 'gerritbot', u'GerritBot Documentation',
|
||||
[u'OpenStack Continuous Integration Administrators'], 1)
|
||||
]
|
24
doc/source/index.rst
Normal file
24
doc/source/index.rst
Normal file
@ -0,0 +1,24 @@
|
||||
.. GerritBot documentation master file, created by
|
||||
sphinx-quickstart on Sat Nov 24 19:16:10 2012.
|
||||
You can adapt this file completely to your liking, but it should at least
|
||||
contain the root `toctree` directive.
|
||||
|
||||
Welcome to GerritBot's documentation!
|
||||
=====================================
|
||||
|
||||
Gerritbot is an IRC bot that will notify IRC channels of Gerrit events.
|
||||
|
||||
Contents:
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
installation
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
||||
* :ref:`genindex`
|
||||
* :ref:`modindex`
|
||||
* :ref:`search`
|
||||
|
@ -1,15 +1,17 @@
|
||||
Gerritbot is an IRC bot that will notify IRC channels of Gerrit events.
|
||||
Installation
|
||||
============
|
||||
|
||||
To install Gerritbot run `python setup.py install` from within the repository's
|
||||
root directory.
|
||||
To install Gerritbot run ::
|
||||
|
||||
To run Gerritbot `$PATH/gerritbot /path/to/config`. $PATH is usually something
|
||||
like /usr/local/bin and /path/to/config should be whatever path you have hidden
|
||||
the config at.
|
||||
sudo python setup.py install
|
||||
|
||||
Configuration File
|
||||
==================
|
||||
|
||||
Gerritbot has two configuration files. The first configures the IRC server and
|
||||
Gerrit server details and is the config file whose path you pass to gerritbot
|
||||
when starting the bot. It should look like:
|
||||
when starting the bot. It should look like::
|
||||
|
||||
[ircbot]
|
||||
nick=NICKNAME
|
||||
pass=PASSWORD
|
||||
@ -26,7 +28,8 @@ when starting the bot. It should look like:
|
||||
|
||||
The second configures the IRC channels and the events and projects that each
|
||||
channel is interested in. This config file is written in yaml and should look
|
||||
like:
|
||||
like::
|
||||
|
||||
example-channel1:
|
||||
events:
|
||||
- patchset-created
|
||||
@ -45,3 +48,10 @@ like:
|
||||
- example/project4
|
||||
branches:
|
||||
- master
|
||||
|
||||
Running
|
||||
=======
|
||||
|
||||
To run Gerritbot `$PATH/gerritbot /path/to/config`. $PATH is usually something
|
||||
like /usr/local/bin and /path/to/config should be whatever path you have hidden
|
||||
the config at.
|
Loading…
Reference in New Issue
Block a user