Import and add in-progress release notes. (#1416)

- fixes #1155
- add in-progress release notes import to the import_release_notes task
This commit is contained in:
Brian Perrett
2024-11-07 09:13:18 -08:00
committed by GitHub
parent a86375dd15
commit 1afb03d8df
6 changed files with 102 additions and 7 deletions

View File

@@ -533,6 +533,10 @@ MINIMUM_BOOST_VERSION = "1.16.1"
# The highest Boost version with its docs stored in S3
MAXIMUM_BOOST_DOCS_VERSION = "boost-1.30.2"
# In Progress Release Notes URL
RELEASE_NOTES_IN_PROGRESS_URL = "https://raw.githubusercontent.com/boostorg/website/master/users/history/in_progress.html"
RELEASE_NOTES_IN_PROGRESS_CACHE_KEY = "release-notes-in-progress"
# Boost Google Calendar
BOOST_CALENDAR = "5rorfm42nvmpt77ac0vult9iig@group.calendar.google.com"
CALENDAR_API_KEY = env("CALENDAR_API_KEY", default="changeme")

View File

@@ -70,7 +70,7 @@ from users.views import (
)
from versions.api import ImportVersionsView, VersionViewSet
from versions.feeds import AtomVersionFeed, RSSVersionFeed
from versions.views import VersionDetail
from versions.views import InProgressReleaseNotesView, VersionDetail
router = routers.SimpleRouter()
@@ -135,6 +135,11 @@ urlpatterns = (
path("calendar/", CalendarView.as_view(), name="calendar"),
# Boost versions views
path("releases/", VersionDetail.as_view(), name="releases-most-recent"),
path(
"releases/boost-in-progress/",
InProgressReleaseNotesView.as_view(),
name="release-in-progress",
),
path("releases/<slug:slug>/", VersionDetail.as_view(), name="release-detail"),
path(
"donate/",