Skip to content

Commit b5e4d03

Browse files
committed
docs: set up for release documentation.
Make changes to publish security.html with CVE announcements referring to the sections in upgrading.html rather than CVE.html. Remove templates.zip as part of html build in Makefile. Also update doc for using CVE.html.
1 parent b396bf5 commit b5e4d03

File tree

5 files changed

+29
-21
lines changed

5 files changed

+29
-21
lines changed

doc/CVE.txt

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,26 @@
22
This file is a temporary way to post CVE notifications before
33
a release.
44

5-
Document the CVE fix info in upgrading.txt. Publishing
6-
upgrading.txt would push info on the next release not the current
7-
release.
5+
Document the CVE fix info in upgrading.txt. We extract the sections
6+
from upgrading.txt that deal with the CVE into a separate CVE.html.
7+
An updated docs/security.html and docs/CVE.html provide the details
8+
on a between release CVE announcment.
89

9-
So we comment out a reference anchor in upgrading.txt and use that
10-
comment to extract the section from upgrading.txt into CVE.txt.
11-
The extracted section gets the same anchor that is in upgrading.txt,
12-
but is is not commented out.
10+
Publishing upgrading.txt would include info on the to be released
11+
roundup software and wouldn't match the rest of the release docs.
1312

14-
Then we add a summary to the list of CVE's in security.txt using a
15-
:ref: to the anchor. If CVE.txt is part of the build and
16-
upgrading.txt has a commented out anchor, security.txt entries link
17-
to CVE.html in the generated documentation.
13+
To extract the info from upgrading.txt to use in CVE.html, add a
14+
commented out a reference anchor in upgrading.txt. Then in CVE.txt
15+
we use an include directive with start-after and end-before options
16+
to exract the sections from upgrading.txt into CVE.html.
1817

19-
In upgrading.txt add a
18+
The extracted section in CVE.txt gets the same anchor that is in
19+
upgrading.txt, but is is not commented out. This allows us to swap
20+
out CVE.txt and uncomment the reference in upgrading.txt. Then
21+
rerunning sphinx-build will make security.html point to the sections
22+
in upgrading.html.
23+
24+
For example, in upgrading.txt add a
2025

2126
.. comment: _CVE-2024-39124:
2227

@@ -44,14 +49,17 @@
4449
:end-before: .. comment: end of CVE
4550

4651
After building the docs, install docs/security.html and
47-
docs/CVE.html on the web site. Use the security.html URL
48-
on the web site to update the CVE report.
52+
docs/CVE.html on the web site. Reference:
53+
54+
https://www.roundup-tracker.org/docs/security.html
55+
56+
in the CVE announcement from Mitre.
4957

5058
When the release is ready, replace 'comment: _CVE' with '_CVE' in
5159
upgrading.txt. This makes the anchors in upgrading.txt live.
5260

53-
Then disable CVE.txt by removing CVE.txt from contents.txt in the
54-
toctree hidden section. Also add CVE.txt to exclude_patterns in
61+
Then disable CVE.txt by removing CVE.txt from contents.txt in the
62+
toctree hidden section. Also add docs/CVE.txt to exclude_patterns in
5563
conf.py.
5664

5765
No change needs to happen to security.txt as it's using a :ref: and

doc/upgrading.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ This will insert the bad API login rate limiting settings.
122122
Also if you have ``html_version`` set to ``xhtml``, you will get
123123
an error.
124124

125-
.. comment: _CVE-2024-39124:
125+
.. _CVE-2024-39124:
126126

127127
Fix for CVE-2024-39124 in help/calendar popups (recommended)
128128
------------------------------------------------------------
@@ -314,7 +314,7 @@ section. These fixes are already present in 2.4.0.
314314
This section is for people who can not upgrade yet, and want
315315
to fix the issues.
316316

317-
.. comment: _CVE-2024-39125:
317+
.. _CVE-2024-39125:
318318

319319
Referer value not escaped CVE-2024-39125
320320
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -342,7 +342,7 @@ to::
342342
This escapes the Referer value an prevents it from being
343343
executed.
344344

345-
.. comment: _CVE-2024-39126:
345+
.. _CVE-2024-39126:
346346

347347
Stop JavaScript execution from attached files CVE-2024-39126
348348
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

website/www/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ docs:
2424
# after upgrade to sphinx 1.8.5, search.html is missing load of searchtools.
2525
# fix that in postprocess
2626
# also sed index.html to properly format meta og:... entries.
27-
html: docs templates.zip
27+
html: docs
2828
rm -rf html
2929
mkdir -p $(TMP)/doctrees $(HTML)
3030
sphinx-build -n -W -b html -d $(TMP)/doctrees . $(HTML)

website/www/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
'robots.txt',
102102
'docs/tracker_config.txt',
103103
'COPYING.txt',
104+
'docs/CVE.txt',
104105
'_tmp']
105106

106107
# The reST default role (used for this markup: `text`) to use for all documents.

website/www/contents.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ Contents:
2323
:hidden:
2424

2525
docs/announcement
26-
docs/CVE

0 commit comments

Comments
 (0)