Skip to content

Commit 2e1e9ba

Browse files
committed
Doc updates/indexing.
doc/admin_guide.txt, doc/customizing.txt, doc/features.txt, doc/installation.txt, doc/mysql.txt, doc/postgresql.txt: adding index entries doc/customizing.txt: reference schema changes later in document in addition to wiki. website/www/contents.txt: make wiki url https:.... Remove indices/tables as they don't show up in web interface. Put docs/announcement.txt into hidden toctree to silence warning from sphinx. Announcement.txt is referenced from index.txt so can't silence by adding to conf.py exclude_patern. website/www/index.txt: mention security and other improvements in jinja2 templates. website/www/conf.py: get rid of all warning by using exclude_patterns to ignore docs that aren't included. Remove exclude_trees using exclude_pattern instead. Make html_add_permalinks value acceptable so no warning reported. website/www/_static/style.css, website/www/_templtes/layout.html: add prev/next/index links for all doc pages.
1 parent 77d2c5b commit 2e1e9ba

File tree

11 files changed

+94
-17
lines changed

11 files changed

+94
-17
lines changed

doc/admin_guide.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ reinstall the older version of the sofware using the same install command::
289289
python setup.py install
290290

291291

292+
.. index:: database; convert from one database backend to another
293+
292294
Migrating Backends
293295
------------------
294296

@@ -338,6 +340,8 @@ moved using the above steps) then you'll need to:
338340
machine, and
339341
6. start the tracker web and email frontends on the new machine.
340342

343+
.. index::
344+
pair: roundup; migrate from other bugtracker software
341345

342346
Migrating From Other Software
343347
-----------------------------
@@ -364,6 +368,8 @@ directory containing files with the following format:
364368
The ``<N>`` value is ``int(<id> / 1000)``.
365369

366370

371+
.. index:: pair: roundup-admin; managing users
372+
367373
Adding A User From The Command-Line
368374
-----------------------------------
369375

doc/customizing.txt

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ schema`_. Some configuration is also performed using permissions - see the
6868
automatically register through the email interface, you must grant the
6969
"Anonymous" Role the "Email Access" Permission.
7070

71-
.. index:: configuration; sections
71+
.. index::
72+
single: config.ini; sections
73+
see: configuration; config.ini
7274

7375
The following is taken from the `Python Library Reference`__ (July 18, 2018)
7476
section "ConfigParser -- Configuration file parser":
@@ -236,6 +238,16 @@ Section **rdbms**
236238
addition settings needed by RDBMs like SQLite, Postgresql and
237239
MySQL backends.
238240

241+
.. index::
242+
single: postgres; select backend in config.ini
243+
single: mysql; select backend in config.ini
244+
single: sqlite; select backend in config.ini
245+
single: anydbm; select backend in config.ini
246+
see: database; postgres
247+
see: database; mysql
248+
see: database; sqlite
249+
see: database; anydbm
250+
239251
backend -- set to value by init
240252
The database backend such as anydbm, sqlite, mysql or postgres.
241253

@@ -263,6 +275,9 @@ Section **rdbms**
263275
Name of the group to use in the MySQL defaults file. Only used in
264276
MySQL connections.
265277

278+
.. index::
279+
single: sqlite; lock timeout
280+
266281
sqlite_timeout -- ``30``
267282
Number of seconds to wait when the SQLite database is locked.
268283
Used only for SQLite.
@@ -487,6 +502,11 @@ Section **nosy**
487502
download page for the file.
488503

489504

505+
.. index:: single: roundup-admin; config.ini update
506+
single: roundup-admin; config.ini create
507+
single: config.ini; create
508+
single: config.ini; update
509+
490510
You may generate a new default config file using the ``roundup-admin
491511
genconfig`` command. You can generate a new config file merging in
492512
existing settings using the ``roundup-admin updateconfig`` command.
@@ -523,7 +543,7 @@ applied to the extension config files, so if you instead have::
523543

524544
then the above ``db.config.detectors['QA_RECIPIENTS']`` will still work.
525545

526-
.. index:: schema
546+
.. index:: ! schema
527547

528548
Tracker Schema
529549
==============
@@ -995,12 +1015,15 @@ property, or sorting will result in random ordering.
9951015
Examples of adding to your schema
9961016
---------------------------------
9971017

998-
The `Roundup wiki`_ has examples of
999-
how schemas can be customised to add new functionality.
1018+
Some examples are in the :ref:`CustomExamples` section below.
1019+
1020+
Also the `Roundup wiki`_ has additional examples of how schemas can be
1021+
customised to add new functionality.
10001022

10011023
.. _Roundup wiki:
10021024
https://wiki.roundup-tracker.org/
10031025

1026+
.. index:: !detectors
10041027

10051028
Detectors - adding behaviour to your tracker
10061029
============================================
@@ -1017,6 +1040,8 @@ have some installed by default - have a look. You can write new
10171040
detectors or modify the existing ones. The existing detectors installed
10181041
for you are:
10191042

1043+
.. index:: detectors; installed
1044+
10201045
**nosyreaction.py**
10211046
This provides the automatic nosy list maintenance and email sending.
10221047
The nosy reactor (``nosyreaction``) fires when new messages are added
@@ -1045,6 +1070,8 @@ interface for detectors.
10451070
__ design.html
10461071

10471072

1073+
.. index:: detectors; writing api
1074+
10481075
Detector API
10491076
------------
10501077

@@ -1082,6 +1109,7 @@ values of properties that were changed.
10821109
For a ``retire()`` or ``restore()`` operation, ``itemid`` is the id of
10831110
the retired or restored item and ``olddata`` is None.
10841111

1112+
.. index:: detectors; additional
10851113

10861114
Additional Detectors Ready For Use
10871115
----------------------------------
@@ -1612,6 +1640,9 @@ Put together, these settings appear in the tracker's ``schema.py`` file::
16121640
# db.security.addPermissionToRole('Anonymous', 'Create', cl)
16131641
# db.security.addPermissionToRole('Anonymous', 'Edit', cl)
16141642

1643+
.. index::
1644+
single: roundup-admin; class permissions
1645+
16151646
You can use ``roundup-admin security`` to verify the permissions
16161647
defined in the schema. It also verifies that properties specified in
16171648
permissions are valid for the class. This helps detect typos that can
@@ -3755,6 +3786,7 @@ should be changed to include actual character set name::
37553786

37563787
The charset is also sent in the http header.
37573788

3789+
.. _CustomExamples:
37583790

37593791
Examples
37603792
========
@@ -3783,6 +3815,8 @@ Schema changes are automatically applied to the database on the next
37833815
tracker access (note that roundup-server would need to be restarted as it
37843816
caches the schema).
37853817

3818+
.. index:: schema; example changes
3819+
37863820
1. Modify the ``schema.py``::
37873821

37883822
issue = IssueClass(db, "issue",
@@ -4282,6 +4316,8 @@ be able to give a summary of the total time spent on a particular issue.
42824316

42834317
db.security.addPermissionToRole('User', 'Edit', 'timelog')
42844318

4319+
.. index:: schema; example changes
4320+
42854321
2. Link to the new class from your issue class (again, in
42864322
``schema.py``)::
42874323

doc/features.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Roundup Features
44

55
Roundup is a simple-to-use and -install issue-tracking system with
66
web, e-mail and command-line interfaces. It is based on the winning design
7-
from Ka-Ping Yee in the Software Carpentry "Track" design competition.
7+
from Ka-Ping Yee in the :index:`Software Carpentry` "Track" design competition.
88

99
*simple to install*
1010
- installation (including web interface) takes about 30 minutes

doc/installation.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ installation. That is, it has the configuration files, defines a user database
331331
and the basic HTML interface to that. It's a completely clean slate for you to
332332
create your tracker on.
333333

334+
.. index:: database; choosing your backend
334335

335336
Choosing Your Backend
336337
---------------------
@@ -396,6 +397,7 @@ You may need to give the web server user permission to access the tracker home
396397
- see the `UNIX environment steps`_ for information. You may also need to
397398
configure your system in some way - see `platform-specific notes`_.
398399

400+
.. index:: pair: web interface; cgi
399401

400402
Web Server cgi-bin
401403
~~~~~~~~~~~~~~~~~~
@@ -489,6 +491,7 @@ Now loading the (sub-)domain in a browser should load the tracker web
489491
interface. If you get a "500" error then enable the "cgitb" lines in the
490492
stub to get some debugging information.
491493

494+
.. index:: pair: web interface; stand alone server
492495

493496
Stand-alone Web Server
494497
~~~~~~~~~~~~~~~~~~~~~~
@@ -508,6 +511,8 @@ To make the server run in the background, use the "-d" option, specifying the
508511
name of a file to write the server process id (pid) to.
509512

510513

514+
.. index:: pair: web interface; Zope
515+
511516
Zope Product - ZRoundup
512517
~~~~~~~~~~~~~~~~~~~~~~~
513518

@@ -518,6 +523,9 @@ code tree lib/python/Products.
518523
When you next (re)start up Zope, you will be able to add a ZRoundup object
519524
that interfaces to your new tracker.
520525

526+
.. index:: ! triple: web interface; apache; mod_wsgi
527+
! single: wsgi; apache
528+
521529
Apache HTTP Server with mod_wsgi
522530
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
523531

@@ -676,6 +684,8 @@ To run as a background process
676684
2. Then, run ``sudo /etc/mod_wsgi-express-80/apachectl start``
677685
3. To stop, run ``sudo /etc/mod_wsgi-express-80/apachectl stop``
678686

687+
.. index:: triple: web interface; apache; mod_python (depricated)
688+
679689
Apache HTTP Server with mod_python
680690
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
681691

@@ -812,6 +822,9 @@ serving with SSL.
812822
WSGI Variations
813823
~~~~~~~~~~~~~~~
814824

825+
.. index:: triple: web interface; apache; mod_wsgi
826+
single: wsgi; apache
827+
815828
Apache Alternate
816829
^^^^^^^^^^^^^^^^
817830

@@ -914,6 +927,9 @@ One last change is needed. In the tracker's config.ini change the db
914927
parameter in the [main] section to be /home/roundup-foo/db. This will
915928
put the files and messages in the db directory for the user.
916929

930+
.. index:: pair: web interface; gunicorn
931+
single: wsgi; gunicorn
932+
917933
Gunicorn Installation
918934
^^^^^^^^^^^^^^^^^^^^^
919935

@@ -943,6 +959,9 @@ Assuming the proxy forwards /tracker, run gunicorn as::
943959
this runs roundup at port 8917 on the loopback interface. You should
944960
configure the reverse proxy to talk to 127.0.0.1 at port 8917.
945961

962+
.. index:: pair: web interface; uWSGI
963+
single: wsgi; uWSGI
964+
946965
uWSGI Installation
947966
^^^^^^^^^^^^^^^^^^
948967

doc/mysql.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. index:: mysql; debugging notes
2+
13
=============
24
MySQL Backend
35
=============

doc/postgresql.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. index:: postgres; debugging notes
2+
13
==========================
24
PostgreSQL/psycopg Backend
35
==========================

website/www/_static/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ body > .content
2121
margin: 0;
2222
}
2323
body > .header > #searchbox { position: absolute; right: 1em; top: 1em;}
24+
body > .content > #subnav { position: absolute; right: 1.5em; top: 5em;}
2425

2526
/* style */
2627

website/www/_templates/layout.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,18 @@
8484
<script type="text/javascript" src="http://www.ohloh.net/p/488/widgets/project_users_logo.js"></script>
8585
</div>
8686
<div class="content">
87+
<div id="subnav">
88+
{%- if prev %}
89+
<a title="{{ prev.title|striptags }}" href="{{ prev.link|e }}">
90+
Prev</a>
91+
{%- endif %}
92+
{%- if next %}
93+
<a title="{{ next.title|striptags }}" href="{{ next.link|e }}">
94+
Next</a>
95+
{%- endif %}
96+
<a title="{{ _('Index') }}" href="{{ pathto('genindex') }}">
97+
Index</a>
98+
</div>
8799
{% block body %} {% endblock %}
88100
</div>
89101
{%- block footer %}

website/www/conf.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@
6767
#today_fmt = '%B %d, %Y'
6868

6969
# List of documents that shouldn't be included in the build.
70-
#unused_docs = []
71-
72-
# List of directories, relative to source directory, that shouldn't be searched
73-
# for source files.
74-
exclude_trees = ['.build']
70+
exclude_patterns = ['docs/index.txt',
71+
'docs/whatsnew-0.7.txt',
72+
'docs/whatsnew-0.8.txt',
73+
'docs/security.txt',
74+
'_tmp']
7575

7676
# The reST default role (used for this markup: `text`) to use for all documents.
7777
#default_role = None
@@ -137,7 +137,7 @@
137137
# template names.
138138
#html_additional_pages = {}
139139

140-
html_add_permalinks = False
140+
html_add_permalinks = ''
141141

142142
# If false, no module index is generated.
143143
#html_use_modindex = True

website/www/contents.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ Contents:
1515
docs
1616
Issues <https://issues.roundup-tracker.org>
1717
contact
18-
Wiki <http://wiki.roundup-tracker.org>
18+
Wiki <https://wiki.roundup-tracker.org>
1919
code
2020

21-
Indices and tables
22-
==================
2321

24-
* :ref:`genindex`
25-
* :ref:`modindex`
26-
* :ref:`search`
22+
.. toctree::
23+
:hidden:
2724

25+
docs/announcement

0 commit comments

Comments
 (0)