Commit Graph

1568 Commits

Author SHA1 Message Date
cdf42ad2e8 Input fields that contain checkboxes now have automatic width. (CSS) 2019-03-25 09:11:37 -04:00
59e60fadb6 Provide a 404 error for nonexistent minor versions of release notes. 2019-03-21 08:56:29 -04:00
2d0b83ec3b Enable redirects to older release notes from the development doc builds.
Prior to this, if you referenced a version of the release notes that was outside
of the current development build (e.g. 9.6) the URL would 404.

Reported by Andres Freund.
2019-03-20 16:58:13 -04:00
3c3a117b66 Added pycodestyle to requirements.txt and pre-commit hook. 2019-03-10 11:40:05 -07:00
789550515e Style fixups to pass pep checks
This fixes the style issues introduced in the patches for the new
release notes styles. Clearly a broken verification hook somewhere.
2019-03-10 08:24:01 -07:00
ce86ca4b71 Further fixes for bad urls in docs redirect 2019-03-10 08:22:07 -07:00
b332933b72 Explicitly use python3 in githook validation 2019-03-10 08:17:41 -07:00
70fd8913ac Ensure the new "release-prior" page can be accessed.
This fixes a bug where the "release-prior" page was being evaluated as
a legacy release notes page in the supported docs.
2019-03-09 22:52:27 -08:00
ba529fe1de Ensure release notes from older version still load without 404 errors.
An upcoming change in PostgreSQL keeps only release notes in their
current versions. So e.g., PostgreSQL 11 only has the release notes
for 11.0, 11.1, 11.2 etc.

Thus, for PostgreSQL 9.4 on up, any URLs such as /docs/10/release-9-6-8.html
would return a 404. Additonal, URLs with /current/ and /devel/ would break
as well.

This patch prevents these 404s from occuring by redirecting users accessing
release notes in the 9.4 and above documentation to the older versions
of the release notes by redirecting them to the notes in the specific
version. So in the above example, a user would be redirect to
/docs/9.6/release-9-6-8.html

As we do not have documentation on the website past 7.2, any release
notes from an older version are redirected to the release notes tree
in 7.2
2019-03-08 11:19:33 -08:00
c884493494 Create Release Notes archive in the Documentation section.
This creates a consolidated area to reference all of the notes from
previous releases of PostgreSQL, as current releases only keep the
the notes for that specific major release of PostgreSQL.
2019-03-08 11:19:25 -08:00
5d4ac4548b Make calls-to-action on donations page clearer. 2019-02-28 14:14:52 -05:00
4f71f561ff Small language tweaks to the Donate to PostgreSQL page. 2019-02-28 14:11:57 -05:00
ef164ef294 Re-enable donation form for the SPI account. 2019-02-28 14:09:58 -05:00
c028ce47ea Load docs using COPY instead of INSERT
Issuing individual INSERTs for each line in the docs works decently when
local, but it slow when loading across The Tubes Of The Internet.
Switching to using COPY takes the load time from the buildfarm animal
from just over 2 minutes to about 6-7 seconds.
2019-02-22 16:39:41 +01:00
e7099c90ea Move project policies to the website.
Changes by myself and Jonathan Katz
Review by Jonathan Katz and Daniel Gustafsson
2019-02-18 10:36:53 +00:00
1f55533887 Fixed one missing version bump. 2019-02-14 08:26:56 -05:00
88d8d11ca1 2019-02-14 Cumulative Update Release. 2019-02-14 07:26:46 -05:00
9a619ceaab Apply navbar fix to the documentation pages.
For some reason, I missed this in my original patch.
2019-02-12 22:02:23 -05:00
e151c08218 Update migrations for py3
A lot of strings in the migrations needed a change from b' to ' to work
after the migration to py3, but this was forgotten in the big patch.

No actual changes included in this patch.
A lot of strings in the migrations needed a change from b' to ' to work
after the migration to py3, but this was forgotten in the big patch.
2019-02-10 14:48:34 +01:00
18b09872ef Make it possible to block OAuth signin to accounts
This adds a checkbox to each user account letting the user block the use
of OAuth to this account, forcing the use of internal authentication.
2019-02-10 14:48:34 +01:00
467dfc847a Tell folks how they can add/update contributors. 2019-02-06 11:49:45 +00:00
53d041d968 Pin the navigation bar to the top of the page.
From user feedback, the scrolling navigation bar would cause problems with
readability, especially in larger font views. This keeps the navigation bar
pinned to the top, until we can find a way to more easily handle this.
2019-02-03 09:33:00 -05:00
86004e5f82 Avoid redirects for mailinglist links
The /community/lists/ URL is redirecting to /list/ since the new
archive and list code. Rewrite the final links to avoid the redirect.
Also remove the #developer anchor since the new list page doesn't
have anchors.

Reviewed-by: Magnus Hagander
2019-01-31 13:48:16 +01:00
bbdcb1700d Make docs comment suggestions do a redirect
This is the same as b2ed494655 did for bug
reports.

This changes the regexps for all the doc comment suggestions forms to be
a little bit more specific than before.
2019-01-28 14:19:12 +01:00
e767582d11 Fix docs comment form for version = "current"
Normally not reachable with "current", only with explicit version,
but as proven by some live crashes, there is some way to. So make
sure we look up the current version instead of crashing.
2019-01-28 14:19:12 +01:00
c4cce24d7d Bring requirements.txt up-to-date for Python 3 libs.
Hopefully makes it easier for people to get up and running.
2019-01-26 14:22:03 -05:00
cbdb937597 Update docsload to use tidylib instead of tidy
The old library is not supported on py3. This is the same migration
we've done for other projects like pgarchives.
2019-01-26 17:21:37 +01:00
4f63d6c8a4 Another encoding fix for yum 2019-01-26 16:46:40 +01:00
b74fa2146a Fix datatype and encoding for yum spider 2019-01-26 16:45:59 +01:00
1f34abf878 Fix integer division in search.
Caused error in pagination on site search.
2019-01-26 10:42:43 -05:00
28ad4e9c91 Re-instate previously hardcoded hostname in spiders 2019-01-26 16:40:55 +01:00
c136b8858f Fix sorting in file browser 2019-01-26 16:23:10 +01:00
5d0b64a5ab Re-implement modification notifications in simple_form
The way signals are sent for many2many apparently changed completely
between the python2 and python3 versions of the same Django version,
which broke the way we did this before. And it was always a bit of a
hack...

Instead, reimplement notifications in the simple_form handler. This now
also consolidates regular field notificationss and many2many
notifications in a much cleaner way.

This will, however, *only* have an effect on changes made through
simple_form. Luckily that's the most common way we handle forms, with
the exception being /admin/. So leave the old code in place to handle
the changes through /admin/, as well as the deletion of objects.

In the end the only thing lost is the ability to get m2m differences
when an admin makes changes, and that's the least important of all
notification. And as a bonus, the regular change notifications and in
particular "new item" notifications look a lot nicer.
2019-01-26 16:19:26 +01:00
2c84a8ec63 Update search crawler for python3
This includes the switch to requests, but also a bunch of other changes.

While at it, fix it so we can do proper https validation.
2019-01-26 16:19:26 +01:00
c350fa47f1 Fix integer division 2019-01-26 16:19:26 +01:00
499a40baf7 Update for new module/namespace for urllib 2019-01-26 16:19:26 +01:00
95df1aa888 Switch recaptcha, search, spiders and varnish to requests
Easiser to switch to the requests package than to figure out how to deal
with some of the encoding changes manually. And as a bonus, it's much
nicer to work with the requests package for the future.
2019-01-26 16:19:26 +01:00
b91fbe66e7 Fix changed names of imports 2019-01-26 16:19:26 +01:00
3120efd192 Remove trailing windows newline 2019-01-26 16:19:26 +01:00
a10eb6420b More generic changes from 2to3 2019-01-26 16:19:26 +01:00
9875fd8537 Attempt to fix localhtmlvalidate
It was already broken and didn't work properly, but update to py3 and at
least make it run. More changes are necessary to actually make it happy
again.
2019-01-26 16:19:26 +01:00
e0fcc082ee Remove indexer for old archives
We have been using the new archives for many years now, so remove this
instead of trying to port it to python3.
2019-01-26 16:19:26 +01:00
07d83eae42 Update script shebangs to use python3 2019-01-26 16:19:26 +01:00
b7f0398c15 Fix unicode for hashlib operations 2019-01-26 16:19:26 +01:00
c6c0bf1948 Update print and input syntax for python 3 2019-01-26 16:19:26 +01:00
edad84b1d0 Fix base64 encodings 2019-01-26 16:19:26 +01:00
9b42500478 Import latest auth.py from pgeu as sample 2019-01-26 16:19:26 +01:00
a156829375 Generic unicode updates 2019-01-26 16:19:26 +01:00
7547b6f766 Update syntax for relative imports 2019-01-26 16:19:26 +01:00
142f0805c2 Update to new style exception catching 2019-01-26 16:19:26 +01:00