| 1 |
.. include:: ../header.rst |
| 2 |
|
| 3 |
=================== |
| 4 |
Docutils Web Site |
| 5 |
=================== |
| 6 |
|
| 7 |
:Author: David Goodger; open to all Docutils developers |
| 8 |
:Contact: [email protected] |
| 9 |
:Date: $Date: 2025-03-07 23:58:36 +0100 (Fr, 07. Mär 2025) $ |
| 10 |
:Revision: $Revision: 10020 $ |
| 11 |
:Copyright: This document has been placed in the public domain. |
| 12 |
|
| 13 |
The Docutils web site, <https://docutils.sourceforge.io/>, is |
| 14 |
maintained by the ``docutils-update.local`` script, run by project |
| 15 |
maintainers on their local machines. The script |
| 16 |
will process any .rst/.txt file which is newer than the corresponding .html |
| 17 |
file in the local copy of the project's web directory and upload the changes |
| 18 |
to the web site at SourceForge. |
| 19 |
|
| 20 |
Please **do not** add any generated .html files to the Docutils |
| 21 |
repository. They will be generated automatically after a one-time |
| 22 |
setup (`described below`__). |
| 23 |
|
| 24 |
__ `Adding .rst/.txt Files`_ |
| 25 |
|
| 26 |
The docutils-update.local__ script is located at |
| 27 |
``sandbox/infrastructure/docutils-update.local``. |
| 28 |
|
| 29 |
__ https://docutils.sourceforge.io/sandbox/infrastructure/docutils-update.local |
| 30 |
|
| 31 |
|
| 32 |
Setting Up |
| 33 |
========== |
| 34 |
|
| 35 |
(TBA) |
| 36 |
|
| 37 |
.. hint:: |
| 38 |
Anyone with checkin privileges can be a web-site maintainer. You need to |
| 39 |
set up the directories for a local website build. |
| 40 |
|
| 41 |
The procedure for that was on the docutils-devel list a while ago. |
| 42 |
|
| 43 |
|
| 44 |
Adding .rst/.txt Files |
| 45 |
====================== |
| 46 |
|
| 47 |
User/Contributor |
| 48 |
---------------- |
| 49 |
|
| 50 |
When adding a new .rst/.txt file that should be converted to HTML: |
| 51 |
|
| 52 |
#. Edit sandbox/infrastructure/htmlfiles.lst, and add the .html file |
| 53 |
corresponding to the new .rst/.txt file (please keep the sorted order). |
| 54 |
|
| 55 |
#. Commit the edited version to the SVN repository. |
| 56 |
|
| 57 |
Maintainer |
| 58 |
---------- |
| 59 |
|
| 60 |
#. If there are new directories in the SVN, allow the update script to run |
| 61 |
once to create the directories in the filesystem before preparing for |
| 62 |
HTML processing. |
| 63 |
|
| 64 |
#. Any .html document with a corresponding .rst/.txt file is regenerated |
| 65 |
if the .rst/.txt has changed, but no new .html files will be generated. |
| 66 |
|
| 67 |
Therefore *touch* the .html-file and then the .rst/.txt. |
| 68 |
|
| 69 |
#. ``docutils-update.local -u`` Regenerate .html unconditionally. |
| 70 |
|
| 71 |
|
| 72 |
Removing Files & Directories |
| 73 |
============================ |
| 74 |
|
| 75 |
#. Remove from SVN |
| 76 |
|
| 77 |
#. Remove to-be-generated HTML files from |
| 78 |
``sandbox/infrastructure/htmlfiles.lst``. |
| 79 |
|
| 80 |
#. Removing files and directories from SVN will not trigger their removal |
| 81 |
from the web site. Files and directories must be manually removed from |
| 82 |
sourceforge.net (under ``/home/project-web/docutils/htdocs/``). |
| 83 |
|
| 84 |
.. Emacs settings |
| 85 |
|
| 86 |
Local Variables: |
| 87 |
mode: indented-text |
| 88 |
mode: rst |
| 89 |
indent-tabs-mode: nil |
| 90 |
sentence-end-double-space: t |
| 91 |
fill-column: 70 |
| 92 |
End: |