Commit Graph

36 Commits

Author SHA1 Message Date
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
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
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
18663648ee help: Use a more straightforward sub-processor example. 2025-09-03 16:23:11 -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
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
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
Shubham Padia
9a0ac354ed starlight_help: Move @types/mdast away from dev dependencies.
@types/mdast was in dev dependencies while it shouldn't have been, we
move that away from dev dependencies and bump the version. We need the
package when running the astro build step.
2025-08-28 10:07:25 -07:00
Shubham Padia
f20dc8f6cf starlight_help: Do not use type assertions in astro components.
Partially fixes #35435.

For KeyboardTip.astro and ZulipTip.astro, we were using type assertions
and thus needed to suppress eslint warnings that were being thrown.
2025-08-27 14:30:44 -07:00
Shubham Padia
5501954637 starlight_help: Add comments for the tip components.
We could also have one underlying component powering all of our custom
aside components. The code duplication between KeyboardTip and ZulipTip
is high. We are holding off on having that underlying component since
that component looks really complex compared to having 2 separate
components now. If we feel the duplication is a major issue later on,
combining them shouldn't be too much of an hassle.
2025-08-27 14:30:44 -07:00
Shubham Padia
9812bf187f starlight_help: Do not pass global variable as argument. 2025-08-27 14:30:44 -07:00
Shubham Padia
fc176fedd4 starlight_help: Add comment for remarkStringify as a plugin for linting. 2025-08-27 14:30:44 -07:00
Shubham Padia
67d3101d67 starlight_help: Update sidebar labels where they differ from the title.
Fixes #35620.
2025-08-27 12:39:13 -07:00
Anders Kaseorg
7b0c6f9d3f dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-08-14 21:37:50 -07:00
Alya Abbott
304fe9ff14 help: Document configuring a custom welcome message. 2025-08-11 14:46:33 -07:00
Shubham Padia
00f0b58ee4 starlight_help: Use Zulip favicon for the new help center.
The favicon should ideally change for self-hosted organizations if they
have configured it. We track the work for this in #35681 to look at
after the cutover.
2025-08-11 10:25:04 -07:00
Shubham Padia
3e60b16ac1 starlight_help: Move help-beta over to starlight_help.
We are starting the cutover process and starlight_help is the directory
we have agreed on to place our new help center project. We do not want
to use `starlight_help` as the URL for the project, but this commit
changes the url from `help-beta` to `starlight_help` temporarily since
we can only change URL once we get rid of the current help center
project. That will be done in a future commit.
2025-08-08 11:59:29 -07:00