Create initial sphinx documentation
Change-Id: I79b4d880a8bf7021bb35b240ac040d78d78e3556 Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
This commit is contained in:
parent
4959423fd1
commit
1ffe945781
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
.tox
|
.tox
|
||||||
build/*
|
build/*
|
||||||
*.pyc
|
*.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
|
To install Gerritbot run ::
|
||||||
root directory.
|
|
||||||
|
|
||||||
To run Gerritbot `$PATH/gerritbot /path/to/config`. $PATH is usually something
|
sudo python setup.py install
|
||||||
like /usr/local/bin and /path/to/config should be whatever path you have hidden
|
|
||||||
the config at.
|
Configuration File
|
||||||
|
==================
|
||||||
|
|
||||||
Gerritbot has two configuration files. The first configures the IRC server and
|
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
|
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]
|
[ircbot]
|
||||||
nick=NICKNAME
|
nick=NICKNAME
|
||||||
pass=PASSWORD
|
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
|
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
|
channel is interested in. This config file is written in yaml and should look
|
||||||
like:
|
like::
|
||||||
|
|
||||||
example-channel1:
|
example-channel1:
|
||||||
events:
|
events:
|
||||||
- patchset-created
|
- patchset-created
|
||||||
@ -45,3 +48,10 @@ like:
|
|||||||
- example/project4
|
- example/project4
|
||||||
branches:
|
branches:
|
||||||
- master
|
- 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.
|
@ -7,9 +7,9 @@ verbosity=2
|
|||||||
detailed-errors=1
|
detailed-errors=1
|
||||||
|
|
||||||
[build_sphinx]
|
[build_sphinx]
|
||||||
source-dir = doc/source
|
|
||||||
build-dir = doc/build
|
|
||||||
all_files = 1
|
all_files = 1
|
||||||
|
build-dir = doc/build
|
||||||
|
source-dir = doc/source
|
||||||
|
|
||||||
[upload_sphinx]
|
[upload_sphinx]
|
||||||
upload-dir = doc/build/html
|
upload-dir = doc/build/html
|
||||||
|
Loading…
Reference in New Issue
Block a user