Anders Kaseorg
223b626256
python: Use urlsplit instead of urlparse.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-05 13:03:07 -08:00
Anders Kaseorg
a50eb2e809
mypy: Enable new error explicit-override.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-12 12:28:41 -07:00
Anders Kaseorg
328cdde243
documentation: Remove duplicate heading IDs on server side.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-08-21 17:25:14 -07:00
Anders Kaseorg
639efc5ce1
docs: Update Transifex URLs.
...
https://help.transifex.com/en/articles/7171815-web-application-s-domain-change
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-06-12 17:38:41 -07:00
Anders Kaseorg
b8023da17a
dependencies: Upgrade JavaScript dependencies.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-04-25 22:18:48 -07:00
Alex Vandiver
164d58bec9
web: Save a 301 redirect from /help to /help/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
8da1c51a06
web: Save a 301 redirect from /security to /security/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
3e307781dd
web: Save a 301 redirect from /for/x to /for/x/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
4b21852e72
web: Save a 301 redirect from /why-zulip to /why-zulip/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
14d19c00d7
web: Save a 301 redirect from /features to /features/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
b5731c55b7
web: Save two 301 redirects from /privacy to /privacy/ to /policies/privacy.
2023-03-24 14:51:01 -07:00
Alex Vandiver
ce847fd09c
web: Save two 301 redirects from /terms to /terms/ to /policies/terms.
2023-03-24 14:51:01 -07:00
Alex Vandiver
d9daeb13e0
web: Save a needless 301 redirect from /apps to /apps/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
61adc9cfcc
web: Save a needless 301 redirect from /team to /team/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
c686c5ed0f
web: Save a needless 301 redirect from /plans to /plans/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
bf06d493ee
web: Save a needless 301 redirect from /history to /history/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
eb81e62eaa
web: Save a needless 301 redirect from /hello to /hello/.
2023-03-24 14:51:01 -07:00
Alex Vandiver
a1570ff3dd
web: Save a needless 301 redirect from /integrations to /integrations/.
2023-03-24 14:51:01 -07:00
Anders Kaseorg
6992d3297a
ruff: Fix PIE810 Call `startswith` once with a `tuple`.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-02-08 16:40:35 -08:00
Anders Kaseorg
8f7a7877fe
python: Clean up janky URL matching code with urlsplit.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-01-18 17:25:46 -05:00
Anders Kaseorg
17300f196c
ruff: Fix ISC003 Explicitly concatenated string.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-01-04 16:25:07 -08:00
Anders Kaseorg
872f4b41c1
ci: Check that non-scripts aren’t marked executable.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2022-12-07 09:54:01 -08:00
Lauryn Menard
53df35e698
tools: Remove obsolete `_set_error_state` method in linter spider.
...
In 2f547ea
, the custom `has_error` logic in BaseDocumentationSpider
was removed in favor of checking whether any errors were logged.
One reference to that method was missed in UnusedImagesLinterSpider
and went unremarked as no images were added to the documentation
that were not used.
Replaces that reference with an error log.
2022-11-09 11:54:19 -08:00
David Rosa
233e690fb4
tools: Upgrade scrapy's settings.py to the latest version.
...
Fixes a warning caused by using the deprecated `2.6` value
of the `REQUEST_FINGERPRINTER_IMPLEMENTATION` setting.
Upgrades `settings.py` to what would have been generated
by starting the documentation_crawler project using the
`startproject` command of scrapy v2.7.
2022-11-09 11:40:07 -08:00
Aman Agrawal
587f52e351
documentation_crawler: Exclude communities page.
...
Since /communities/#all was failing the spider test due to `#all`
not being present as an `id` on the page, we exclude it from
this check saying that it is not really a documentation page.
2022-10-20 15:52:18 -07:00
Anders Kaseorg
762a2d8da4
dependencies: Upgrade JavaScript dependencies.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2022-10-11 10:50:57 -07:00
Alex Vandiver
39efe6f312
ci: Remove references to CircleCI, which we no longer use.
2022-07-16 10:43:40 -07:00
Anders Kaseorg
503127c2e9
docs: Fix Git capitalization.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2022-02-28 16:04:35 -08:00
Eeshan Garg
5aaeb1a432
use_cases: Rename /for/companies to /for/business.
2021-12-09 17:16:52 -08:00
Anders Kaseorg
646c04eff2
Rename default branch to ‘main’.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-09-06 12:56:35 -07:00
Alya Abbott
844c62c64e
portico: Create new "Zulip for communities" page.
2021-07-18 12:10:33 -07:00
Anders Kaseorg
e015f3ed7d
docs: Correct “webapp” to “web app”.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-05-14 13:15:38 -07:00
Anders Kaseorg
544bbd5398
docs: Fix capitalization mistakes.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-05-10 09:57:26 -07:00
Anders Kaseorg
bf447a726f
test-documentation: Clean up fixed HTML validation ignore patterns.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-04-30 15:49:30 -07:00
Anders Kaseorg
6060d0d364
docs: Add missing space to compound verbs “log in”, “set up”, etc.
...
Noun: backup, checkout, cleanup, login, logout, setup, shutdown, signup,
timeout.
Verb: back up, check out, clean up, log in, log out, set up, shut
down, sign up, time out.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-04-26 09:31:08 -07:00
Adam Birds
4d9f161e0f
tools: Suppress errors for github.com links.
...
I have suppressed errors for github.com by adding an function to
exclude domains as well as urls; this is necessary because GitHub has
marked this tool's User-Agent as a blocker crawler.
I have also suppressed reoccurring url errors that do definitely exist.
Fixes #17928 .
2021-04-09 12:25:23 -07:00
Anders Kaseorg
d6cdd279d0
documentation_crawler: Fix for Twisted 21.2.0 type hints.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-03-03 21:46:42 -08:00
Anders Kaseorg
6e4c3e41dc
python: Normalize quotes with Black.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-02-12 13:11:19 -08:00
Anders Kaseorg
11741543da
python: Reformat with Black, except quotes.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-02-12 13:11:19 -08:00
Anders Kaseorg
5028c081cb
python: Merge concatenated string literals that Black would uglify.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-02-12 13:11:19 -08:00
Vishnu KS
9b6d92d322
docs check: Check only the file and directory GitHub urls of zulip/zulip.
...
f82cc4ed06
started checking all
zulip/zulip GitHub links in CI. Instead, it should have checked only
zulip/zulip file and directory links since checking other
links require making requests to GitHub servers.
2020-12-16 15:13:25 -08:00
Vishnu KS
0d7a290893
docs check: Improve the names of GitHub url variables.
2020-12-16 15:13:25 -08:00
Vishnu KS
d6743da139
docs test: Verify zulip/zulip file and directory links locally.
2020-11-05 10:07:43 -08:00
Vishnu KS
d4f5cea559
docs: Mark chat.zulip.org as an external link for testing.
...
The comment explains the background, but basically there's no purpose
in trying to verify this via CI.
2020-10-29 16:42:17 -07:00
Anders Kaseorg
72d6ff3c3b
docs: Fix more capitalization issues.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-10-23 11:46:55 -07:00
Aman Agrawal
bdc4721aee
BaseDocumentationSpider: Don't crawl webapp.
2020-10-16 16:26:29 -07:00
Aman Agrawal
72b25553b2
BaseDocumentationSpider: Print correct link on error.
2020-10-16 16:23:33 -07:00
Anders Kaseorg
f91d287447
python: Pre-fix a few spots for better Black formatting.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-09-03 17:51:09 -07:00
Anders Kaseorg
3ffed617a2
mypy: Type simple generators as Iterator, not Iterable.
...
A generator that yields values without receiving or returning them is
an Iterator. Although every Iterator happens to be iterable, Iterable
is a confusing annotation for generators because a generator is only
iterable once.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-06-23 11:29:54 -07:00
Anders Kaseorg
365fe0b3d5
python: Sort imports with isort.
...
Fixes #2665 .
Regenerated by tabbott with `lint --fix` after a rebase and change in
parameters.
Note from tabbott: In a few cases, this converts technical debt in the
form of unsorted imports into different technical debt in the form of
our largest files having very long, ugly import sequences at the
start. I expect this change will increase pressure for us to split
those files, which isn't a bad thing.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-06-11 16:45:32 -07:00