improvements on the dev documentation website
- new home page (inspired from the python's one) - add a "How to contribute" page - add logo/favicon - more customizations
This commit is contained in:
parent
f3ee34dab4
commit
a9008e9b04
10 changed files with 180 additions and 18 deletions
BIN
docs/source/_static/favicon.ico
Normal file
BIN
docs/source/_static/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
BIN
docs/source/_static/logo.png
Normal file
BIN
docs/source/_static/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
38
docs/source/_templates/indexcontent.html
Normal file
38
docs/source/_templates/indexcontent.html
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{% extends "defindex.html" %}
|
||||
{% block tables %}
|
||||
<div class="admonition note">
|
||||
<p class="first admonition-title">Note</p>
|
||||
<p class="last">This is the developer documentation. If you are not a developer and you are looking for information about the project, check the <a href="http://weboob.org" class="reference external">official website</a>.</p>
|
||||
</div>
|
||||
|
||||
<p><strong>Guides:</strong></p>
|
||||
<table class="contentstable" align="center"><tr>
|
||||
<td width="50%">
|
||||
<p class="biglink"><a class="biglink" href="{{ pathto("guides/setup") }}">Setup your development environment</a><br/>
|
||||
<span class="linkdescr">configure your environment to develop on Weboob</span></p>
|
||||
<p class="biglink"><a class="biglink" href="{{ pathto("guides/module") }}">Write a new module</a><br/>
|
||||
<span class="linkdescr">add a website support in Weboob</span></p>
|
||||
</td><td width="50%">
|
||||
<p class="biglink"><a class="biglink" href="{{ pathto("guides/contribute") }}">How to contribute</a><br/>
|
||||
<span class="linkdescr">guidelines to contribute</span></p>
|
||||
<p class="biglink"><a class="biglink" href="{{ pathto("guides/capability") }}">Create a capability</a><br/>
|
||||
<span class="linkdescr">create a new capability</span></p>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
<p><strong>Indices and tables:</strong></p>
|
||||
<table class="contentstable" align="center"><tr>
|
||||
<td width="50%">
|
||||
<p class="biglink"><a class="biglink" href="{{ pathto("py-modindex") }}">Global Module Index</a><br/>
|
||||
<span class="linkdescr">quick access to all modules</span></p>
|
||||
<p class="biglink"><a class="biglink" href="{{ pathto("genindex") }}">General Index</a><br/>
|
||||
<span class="linkdescr">all functions, classes, terms</span></p>
|
||||
</td><td width="50%">
|
||||
<p class="biglink"><a class="biglink" href="{{ pathto("search") }}">Search page</a><br/>
|
||||
<span class="linkdescr">search this documentation</span></p>
|
||||
<p class="biglink"><a class="biglink" href="{{ pathto("contents") }}">Complete Table of Contents</a><br/>
|
||||
<span class="linkdescr">lists all sections and subsections</span></p>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
7
docs/source/_templates/indexsidebar.html
Normal file
7
docs/source/_templates/indexsidebar.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<h3>Other resources</h3>
|
||||
<ul>
|
||||
<li><a href="http://weboob.org/">Official website</a></li>
|
||||
<li><a href="https://symlink.me/projects/weboob/issues">Bug Tracker</a></li>
|
||||
<li><a href="https://symlink.me/projects/weboob/roadmap">Roadmap</a></li>
|
||||
<li><a href="https://symlink.me/projects/weboob/files">Download sources</a></li>
|
||||
</ul>
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
import os
|
||||
import os, time
|
||||
|
||||
os.system('./genapi.py')
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ master_doc = 'index'
|
|||
|
||||
# General information about the project.
|
||||
project = u'Weboob'
|
||||
copyright = u'2010-2012, Weboob Team'
|
||||
copyright = '2010-%s, The Weboob Team' % time.strftime('%Y')
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
|
|
@ -98,26 +98,26 @@ html_theme = 'default'
|
|||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
# documentation.
|
||||
#html_theme_options = {}
|
||||
#html_theme_options = {'collapsiblesidebar': True}
|
||||
|
||||
# Add any paths that contain custom themes here, relative to this directory.
|
||||
#html_theme_path = []
|
||||
|
||||
# The name for this set of Sphinx documents. If None, it defaults to
|
||||
# "<project> v<release> documentation".
|
||||
#html_title = None
|
||||
#html_title = 'Weboob development'
|
||||
|
||||
# A shorter title for the navigation bar. Default is the same as html_title.
|
||||
#html_short_title = None
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top
|
||||
# of the sidebar.
|
||||
#html_logo = None
|
||||
html_logo = '_static/logo.png'
|
||||
|
||||
# The name of an image file (within the static path) to use as favicon of the
|
||||
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||
# pixels large.
|
||||
#html_favicon = None
|
||||
html_favicon = 'favicon.ico'
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
|
|
@ -130,14 +130,18 @@ html_static_path = ['_static']
|
|||
|
||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||
# typographically correct entities.
|
||||
#html_use_smartypants = True
|
||||
html_use_smartypants = True
|
||||
|
||||
# Custom sidebar templates, maps document names to template names.
|
||||
#html_sidebars = {}
|
||||
html_sidebars = {
|
||||
'index': 'indexsidebar.html'
|
||||
}
|
||||
|
||||
# Additional templates that should be rendered to pages, maps page names to
|
||||
# template names.
|
||||
#html_additional_pages = {}
|
||||
html_additional_pages = {
|
||||
'index': 'indexcontent.html'
|
||||
}
|
||||
|
||||
# If false, no module index is generated.
|
||||
#html_use_modindex = True
|
||||
|
|
@ -146,10 +150,10 @@ html_static_path = ['_static']
|
|||
#html_use_index = True
|
||||
|
||||
# If true, the index is split into individual pages for each letter.
|
||||
#html_split_index = False
|
||||
html_split_index = False
|
||||
|
||||
# If true, links to the reST sources are added to the pages.
|
||||
#html_show_sourcelink = True
|
||||
html_show_sourcelink = False
|
||||
|
||||
# If true, an OpenSearch description file will be output, and all pages will
|
||||
# contain a <link> tag referring to it. The value of this option must be the
|
||||
|
|
@ -160,7 +164,7 @@ html_static_path = ['_static']
|
|||
#html_file_suffix = ''
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'Weboobdoc'
|
||||
htmlhelp_basename = 'weboob' + release.replace('.', '')
|
||||
|
||||
|
||||
# -- Options for LaTeX output --------------------------------------------------
|
||||
|
|
|
|||
8
docs/source/contents.rst
Normal file
8
docs/source/contents.rst
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
Weboob Documentation contents
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
.. toctree::
|
||||
|
||||
guides/index
|
||||
api/index
|
||||
99
docs/source/guides/contribute.rst
Normal file
99
docs/source/guides/contribute.rst
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
How to contribute
|
||||
=================
|
||||
|
||||
By coding
|
||||
*********
|
||||
|
||||
Write a patch
|
||||
-------------
|
||||
|
||||
Help yourself with the `documentation <http://docs.weboob.org/>`_.
|
||||
|
||||
Find an opened issue on this website, or write you own bugfix or feature. Then, once it is necessary, commit with::
|
||||
|
||||
$ git commit -a
|
||||
|
||||
Do not forget to write a helpful commit message.
|
||||
|
||||
Check your patch
|
||||
----------------
|
||||
|
||||
You can run these scripts to be sure your patch doesn't break anything::
|
||||
|
||||
$ tools/pyflakes.sh
|
||||
$ tools/run_tests.sh yourmodulename # or without yourmodulename to test everything
|
||||
|
||||
Perhaps you should also write or fix tests.
|
||||
|
||||
Send a patch
|
||||
------------
|
||||
|
||||
::
|
||||
|
||||
$ git format-patch -n -s origin
|
||||
|
||||
Then, send them with this command::
|
||||
|
||||
$ git send-email --to=weboob@weboob.org *.patch
|
||||
|
||||
You can also send the files by yourself if you haven't any configured MTA on your system.
|
||||
|
||||
Ask for a public repository on git.symlink.me
|
||||
---------------------------------------------
|
||||
|
||||
If you think you'll contribute to Weboob regularly, you can ask for a public repository. You'll also be able to push your commits in, and they'll be merged into the main repository easily.
|
||||
|
||||
All git branch are listed here: http://git.symlink.me/
|
||||
|
||||
By hosting a buildbot slave
|
||||
***************************
|
||||
|
||||
To be sure weboob works fine on lot of architectures, OS and configurations, but also that websites haven't changed and backends still support them, it's important to have enough buildbot slaves.
|
||||
|
||||
If you are interested by hosting a buildbot slave, follow these instructions:
|
||||
|
||||
Create a slave
|
||||
--------------
|
||||
|
||||
Firstly, you have to install ``pyflakes``, ``nose`` and `buildbot <http://buildbot.net>`_.
|
||||
|
||||
Run::
|
||||
|
||||
$ buildslave create-slave <dirname> buildbot.weboob.org:9080 <name> <password>
|
||||
|
||||
.. note::
|
||||
if you use an old version of buildbot, run ``buildbot`` instead of ``buildslave``.
|
||||
|
||||
Parameters are:
|
||||
|
||||
* **dirname** — the path where you want to setup your slave on your host.
|
||||
* **name** — the name of your slave. It would be for example your name, your nickname, your hostname. Check on http://buildbot.weboob.org the name you want to use isn't already taken.
|
||||
* **password** — choose a password to login on the master.
|
||||
|
||||
For example::
|
||||
|
||||
$ buildslave create-slave /home/me/buildbot buildbot.weboob.org:9080 me secret123
|
||||
|
||||
Then, edit files in ``/home/me/buildbot/info/`` and run the slave::
|
||||
|
||||
$ buildslave start /home/me/buildbot
|
||||
|
||||
Contact us
|
||||
----------
|
||||
|
||||
To connect your slave to our master, you can send us an email on admin@weboob.org with the following information:
|
||||
|
||||
* The name of your slave;
|
||||
* The IP address of the host;
|
||||
* The password of your slave;
|
||||
* Indicate if you want to run tests for every merges (three times a day) or only do a nightly build.
|
||||
|
||||
When your slave will be accepted, you will see it on http://buildbot.weboob.org/waterfall.
|
||||
|
||||
How it works
|
||||
------------
|
||||
|
||||
When a build is requested by master, your slave updates its local git repository, and run ``tools/run_tests.sh``.
|
||||
|
||||
To work correctly, we suggest you to add as many as possible backends with the user of the slave. No private information will be sent to master, and it's better to have tests on backends which need authentication, because not every developers have accounts on them.
|
||||
|
||||
|
|
@ -7,6 +7,7 @@ Contents:
|
|||
:maxdepth: 2
|
||||
|
||||
setup
|
||||
contribute
|
||||
module
|
||||
capability
|
||||
application
|
||||
|
|
|
|||
|
|
@ -1,9 +1,17 @@
|
|||
Weboob
|
||||
======
|
||||
|
||||
This is the developer documentation. If you are not a developer and you are looking for information about the project, check the `official website <http://weboob.org>`.
|
||||
Weboob (Web Outside Of Browsers) provides:
|
||||
|
||||
Contents:
|
||||
* :doc:`applications <api/tools/application/index>` to interact with websites
|
||||
* :doc:`modules </guides/module>`, each one handles a specific website
|
||||
* a :doc:`core library <api/core/index>` providing all the features needed by backends
|
||||
* :doc:`tools <api/tools/index>` to help develop backends and applications
|
||||
|
||||
Weboob is written in Python and is distributed under the AGPLv3+ license.
|
||||
|
||||
.. note::
|
||||
This is the developer documentation. If you are not a developer and you are looking for information about the project, check the `official website <http://weboob.org>`_.
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
|
@ -12,9 +20,6 @@ Contents:
|
|||
guides/index
|
||||
api/index
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
||||
* :ref:`genindex`
|
||||
* :ref:`modindex`
|
||||
* :ref:`search`
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
Overview
|
||||
========
|
||||
|
||||
Weboob (Web Outside Of Browsers) provides:
|
||||
Weboob (`Web Outside Of Browsers`) provides:
|
||||
|
||||
* :doc:`applications <api/tools/application/index>` to interact with websites
|
||||
* :doc:`modules </guides/module>`, each one handles a specific website
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue