Commit Graph

66614 Commits

Author SHA1 Message Date
Anders Kaseorg
e4960a7595 help: Put your-org link in a code span.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-04 10:27:47 -07:00
Anders Kaseorg
2e805be1d8 help: Fix misformatted MDX.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-04 10:27:47 -07:00
Anders Kaseorg
1a05b2c10f tabbed-instructions: Delete activate_correct_tab.
We no longer have any OS-specific tabs; we can just activate the first
one on the server side.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-04 09:37:34 -07:00
Anders Kaseorg
35ce90d4f8 help_relative_links: Delete.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-04 09:37:34 -07:00
Anders Kaseorg
224c143094 convert-help-center-docs-to-mdx: Delete.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-04 09:37:34 -07:00
Prakhar Pratyush
e64be0c48b api_docs: Deprecate 'remove-fcm-token' & 'remove-apns-token'.
Endpoints marked deprecated:
* `DELETE /users/me/apns_device_token`
* `DELETE /users/me/android_gcm_reg_id`

These endpoints were for non-E2EE push notification case.

Fixes #35213.
2025-09-04 09:20:02 -07:00
Lauryn Menard
6a81aba20e help: Fix find direct message conversation tabbed sections. 2025-09-04 09:19:22 -07:00
Alex Vandiver
b4e06a6fa0 help: Uploads do not default to containing the hostname in the link. 2025-09-03 22:39:55 -07:00
Alex Vandiver
4f02f04682 help: Always use your-org.zulipchat.com for Zulip Cloud example URLs. 2025-09-03 22:39:55 -07:00
Alex Vandiver
9fdeddb773 help: Add language and highlight markers. 2025-09-03 22:39:55 -07:00
Alex Vandiver
968dfc5a28 help: Fix the mailto: link in org deactivation. 2025-09-03 22:39:55 -07:00
Alex Vandiver
049ff0b71f help: Remove incorrect escaping, which broke table rendering. 2025-09-03 22:39:55 -07:00
Alex Vandiver
8bf5aa04d6 help: Fix broken spoiler example. 2025-09-03 22:39:55 -07:00
Alex Vandiver
dabe0cc6d6 help: Fix broken LaTeX examples. 2025-09-03 22:39:55 -07:00
Alex Vandiver
78055633d3 help: Fix broken blockquote examples. 2025-09-03 22:39:55 -07:00
Alex Vandiver
9abc3e635a help: Fix broken "Schedule a reminder" steps. 2025-09-03 22:39:55 -07:00
Alex Vandiver
912d1d819c help: Remove incorrect brace escaping. 2025-09-03 22:39:55 -07:00
Anders Kaseorg
619cb0dd4f eslint: Add eslint-plugin-mdx.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-03 22:36:42 -07:00
Anders Kaseorg
3d510601e5 help: Normalize and sort MDX import statements.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-03 22:36:42 -07:00
Anders Kaseorg
38c0cd5756 help: Replace stray non-breaking spaces.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-03 22:36:42 -07:00
Rakshit
8814a557a2 settings: Abbreviate long bot owner names in bot management modal.
Previously, long owner names could wrap onto two lines in the bot
management modal, breaking the layout. This commit adds CSS to keep
names on a single line and abbreviate with an ellipsis if too long.

Fixes #23266.
2025-09-03 17:38:55 -07:00
Karl Stolley
be53f22fff layout: Tweak dropdown for correct icon-label alignment. 2025-09-03 17:37:14 -07:00
Shubham Padia
03c73c28cd banners: Capitalise desktop in insecure-desktop-app intent and message. 2025-09-03 17:36:25 -07:00
Anders Kaseorg
c914b7872b help: Finish removing old help center.
These files were converted and moved to
starlight_help/src/content/docs, but were not removed due to an
incorrect rebase of d333ddb961 (#35621).

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-03 16:41:07 -07:00
Shubham Padia
6bcacb31ef help: Remove incorrectly inserted steps component in code blocks.
The list inside the code block should not have any Steps component
inside it, since that is reserved for our MDX, not the formatting guide
for the Zulip apps.
2025-09-03 16:23:47 -07:00
Alex Vandiver
68edb5ef04 help: Correct link to "subprocessors for Zulip Cloud," to Zulip Cloud. 2025-09-03 16:23:11 -07:00
Alex Vandiver
6bb8e3b86f policies: Remove Mailchimp as a sub-processor.
We have not used their services since 2021.
2025-09-03 16:23:11 -07:00
Alex Vandiver
23f97ae02d policies: Remove Rackspace as a sub-processor.
We no longer use any of their services.
2025-09-03 16:23:11 -07:00
Alex Vandiver
18663648ee help: Use a more straightforward sub-processor example. 2025-09-03 16:23:11 -07:00
Anders Kaseorg
3a56e621f4 Vagrantfile: Forward port 9995 for /help dev server.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-03 16:22:29 -07:00
Anders Kaseorg
2bf20e02f2 documentation_crawler: Remove wrongly inverted skip_check_fragment flag.
Due to a missing `not`, this incorrectly skipped checking fragments
for everything *other* than the /help documentation!

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-03 16:21:23 -07:00
Anders Kaseorg
a914c8e53f check_help_documentation: Fix HelpDocumentationSpider._is_external_url.
Commits d333ddb961 and
a766c092fc (#35621) broke this by
changing the base class from UnusedImagesLinterSpider to
BaseDocumentationSpider.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-03 16:21:23 -07:00
Anders Kaseorg
4540a99959 starlight_help: Remove broken link fragments.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-03 16:21:23 -07:00
Anders Kaseorg
f8d35c57be starlight_help: Fix broken links.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-03 16:21:23 -07:00
Aman Agrawal
5dbf584ac5 sidebars: Don't highlight selection by default on search input focus.
Unless user wants to move the selection or type a value in search
input, we don't highlight the current selection.
2025-09-03 16:13:38 -07:00
Aman Agrawal
478ea89506 left_sidebar: Avoid selecting header as first row when searching. 2025-09-03 16:13:38 -07:00
Aman Agrawal
a4c2327fa9 sidebar_ui: Extract selectors for left sidebar headers. 2025-09-03 16:13:38 -07:00
Alex Vandiver
fc962b8b0e run-hooks: Handle hooks after OS upgrade on fresh install. 2025-09-03 15:20:53 -07:00
Shubham Padia
012115a2bc documentation: Make sure article is secure to use.
The `article` variable being passed to `get_path` can also be a relative
path, which has it's security implications. By using `secure_filename`,
we mitigate that risk. We don't need to check if `/` exists in article
anymore since `secure_filename` will do so on it's own.
2025-09-03 09:28:15 -07:00
Shubham Padia
f9881b0182 help: Remove sidebar index from includes.
The sidebar index was an includes file in our previous help center since
we were using it to programmatically in documentation.py. Since that is
no longer the case, there is no reason for this file to be in includes.

A side-effect of us doing this is that now the overview section on the
right for the index page will be generated correctly with us avoiding
the issue in #35127.
2025-09-03 09:28:15 -07:00
Shubham Padia
4aac75e75e help: Tighten loose lists with tables or tips.
Fixes #35533.

We could not convert them in the source markdown files since removing
the preceding line for tips and tables was breaking our custom markdown
implementation.
2025-09-03 09:28:15 -07:00
Shubham Padia
7db29f29de help: Serve help center build without relative links for zulip.com.
We have a copy of help center with relative links disabled which is
reserved for root domains without an organisation on the root domain.
Ideally, we should have some logic to determine whether we are on such
a root domain or not. For practical short term purposes, since this
type of documentation is mainly useful for zulip.com, we add an
exception for zulip.com.
2025-09-03 09:28:15 -07:00
Shubham Padia
246fbf6d29 help: Add production config for the new help center.
Fixes #35131.

Most of the nginx config is copied from
https://docs.astro.build/en/recipes/docker/#nginx.

We ideally should be generating two builds for Zulip cloud and serve a
different one depending on whether the subdomain is same as the root
domain or not. We can look into this as an immediate followup while this
commit helps things get ready for a test deploy on CZO.
2025-09-03 09:28:15 -07:00
Shubham Padia
a766c092fc help: Restore broken link checks for help center documentation.
We add a step to build help center and then test the broken links as we
used to before removing the test temporarily.

This commit focuses on just adding back the broken link checks for the
help center. We skip the fragment check since that is in-built in
starlight and starlight tests account for that already. For the image
check we can add it back in a followup issue.
2025-09-03 09:28:15 -07:00
Shubham Padia
d333ddb961 help: Remove current help center.
This commit removes the current help center markdown files and any logic
that was used to host those files at help/.

We also remove a bunch of tests, we should the equivalent of those tests
for the new help center. Issues to track: #35649, #35647. These issues
track adding back tests for redirects and broken links.

We had a symlink from templates/zerver/integrations/email.md pointing to
help/using-zulip-via-email.md. We can no longer have that symlink since
the latter has been converted to an MDX file. We have deleted the
symlink and put a markdown file in it's place. Both the files have
comments to edit the other in case of changes.

This commit also makes changes in astro config, astro component paths
and other places to move the starlight help center docs base path from
/starlight_help to /help.

The change to rename /starlight_help/ to /help/ in MDX files is done in
the next commit. If we squash these commits, this line should be
removed.

`./tools/build-help-center` no longer does the conversion step.

We also remove some dead code related to the old help center in
documentation.py.
2025-09-03 09:28:15 -07:00
Shubham Padia
40f723c75a help-beta: Add MDX files to git.
We have not yet removed the help files. We can use this commit as a
conversion commit since a lot more help changes will be merged before
this PR gets merged. We will need to rebase on top of main, run
conversion step in this commit, push those changes and then merge the
PR.

NOTE: This commit temporarily breaks the astro build since we have
renamed the path in the MDX files from starlight_help/ to help/ early.
That should be fine since astro build will not break any tests right
now.
We should squash this commit with the next commit removing help center
files when merging into main and remove this NOTE.
2025-09-03 09:28:15 -07:00
Shubham Padia
8f16f1139e help: Move URL redirects from Django to Astro.
Fixes #35649.

We do not serve the astro build via Django and thus we have to move the
help center redirects. We get a warning by pagefind on all these
redirects that they will be ignored in the search results as they don't
have an HTML body. We can ignore this warning till the cutover and
create a followup issue to solve that warning if this commit goes
through main.
2025-09-03 09:28:15 -07:00
Shubham Padia
37ae73fa86 starlight_help: Do not use double curly braces for email address.
When we copied over the logic for the footer from the previous help
center, I forgot to remove the double curly braces which were getting
rendered as is in astro.
2025-09-02 10:02:10 -07:00
Pratik Chanda
62093ee37d search_suggestion: Fix empty topic suggestion topic display name.
Earlier, we removed topic display name for empty topic operand when
query was for topic autocomplete. But we should make sure that we
only do this for the last search term in the suggestion which
corresponds to the typed query and not any previously selected
entered search term. Also recently we removed subset suggestions,
so can safely check it for last search term for all suggestions.

This commit fixes this by checking if the topic suggestion is the
last search_term in the suggestion/search_terms.

Co-authored-by: Evy Kassirer <evy@zulip.com>
2025-08-29 14:30:49 -07:00
Mateusz Mandera
6ab30fcced import: Set Stream.subscriber_count for imported channels.
The import code wasn't setting subscriber_count at all, resulting in a
value of 0 when dealing with imports from 3rd party apps.
We run this unconditionally, also for imports from Zulip, since this
ensures we won't inherit incorrect values, if the data we're import has
them - e.g. due to some bugs that affected the server the data came from.
2025-08-29 11:58:17 -07:00