Skip to content

Commit bbc06e1

Browse files
committed
Zulip docs
1 parent e3cad42 commit bbc06e1

File tree

171 files changed

+35242
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+35242
-0
lines changed

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/_build

docs/Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS = -j auto -W
6+
SPHINXBUILD = sphinx-build
7+
SOURCEDIR = .
8+
BUILDDIR = _build
9+
10+
# Put it first so that "make" without argument is like "make help".
11+
help:
12+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
13+
14+
.PHONY: help Makefile
15+
16+
# Catch-all target: route all unknown targets to Sphinx using the new
17+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
18+
%: Makefile
19+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Zulip Markdown documentation hosted elsewhere
2+
3+
The Markdown files in this directory ( /zulip/docs ) are not intended
4+
to be read on GitHub. Instead, visit our
5+
[ReadTheDocs](https://zulip.readthedocs.io/en/latest/index.html) to
6+
read the Zulip documentation.

docs/THIRDPARTY

Lines changed: 1368 additions & 0 deletions
Large diffs are not rendered by default.

docs/_static/theme_overrides.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* override table width restrictions */
2+
.wy-table-responsive table td,
3+
.wy-table-responsive table th {
4+
/* !important prevents the common CSS stylesheets from
5+
overriding this as on RTD they are loaded after this stylesheet */
6+
white-space: normal !important;
7+
}
8+
9+
.wy-table-responsive {
10+
overflow: visible !important;
11+
}

docs/_templates/layout.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{% extends "!layout.html" %}
2+
3+
{% block document %}
4+
{#
5+
# This allows us to insert a warning that appears only on the development
6+
# version e.g. to say that something is likely to have changed.
7+
# For more info see: https://www.sphinx-doc.org/en/master/templating.html
8+
#}
9+
{% if pagename in [] and release.endswith('+git') %}
10+
{#
11+
# This page doesn't exist in the stable documentation yet.
12+
# This temporary workaround prevents test failures and should be removed after the next release.
13+
#}
14+
<div class="admonition warning">
15+
<p class="first admonition-title">Warning</p>
16+
<p class="last">You are reading a <strong>development version</strong> of the Zulip documentation. These instructions may contain changes that are not yet present in a supported Zulip Server release.
17+
See <a class="reference external" href="https://zulip.readthedocs.io/en/stable/production/">documentation for the latest stable release</a>.</p>
18+
</div>
19+
{% elif pagename.split("/")[0] == "production" and release.endswith('+git') %}
20+
<div class="admonition warning">
21+
<p class="first admonition-title">Warning</p>
22+
<p class="last">You are reading a <strong>development version</strong> of the Zulip documentation. These instructions may contain changes that are not yet present in a supported Zulip Server release.
23+
See <a class="reference external" href="https://zulip.readthedocs.io/en/stable/{{ pagename }}.html">documentation for the latest stable release</a>.</p>
24+
</div>
25+
{% endif %}
26+
{{ super() }}
27+
{% endblock %}

docs/code-of-conduct.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../CODE_OF_CONDUCT.md

docs/conf.py

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# For documentation on Sphinx configuration options, see:
2+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
3+
# https://myst-parser.readthedocs.io/en/latest/sphinx/reference.html
4+
# https://sphinx-rtd-theme.readthedocs.io/en/stable/configuring.html
5+
6+
import os
7+
import sys
8+
from typing import Any
9+
10+
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
11+
from version import LATEST_RELEASE_VERSION, ZULIP_VERSION
12+
13+
on_rtd = os.environ.get("READTHEDOCS") == "True"
14+
15+
# General configuration
16+
17+
extensions = [
18+
"myst_parser",
19+
"sphinx_rtd_theme",
20+
]
21+
templates_path = ["_templates"]
22+
project = "Zulip"
23+
copyright = "2012–2015 Dropbox, Inc., 2015–2021 Kandra Labs, Inc., and contributors"
24+
author = "The Zulip Team"
25+
version = ZULIP_VERSION
26+
release = ZULIP_VERSION
27+
exclude_patterns = ["_build", "README.md"]
28+
suppress_warnings = [
29+
"myst.header",
30+
]
31+
pygments_style = "sphinx"
32+
33+
# Options for Markdown parser
34+
35+
myst_enable_extensions = [
36+
"colon_fence",
37+
"substitution",
38+
]
39+
myst_heading_anchors = 6
40+
myst_substitutions = {
41+
"LATEST_RELEASE_VERSION": LATEST_RELEASE_VERSION,
42+
}
43+
44+
# Options for HTML output
45+
46+
html_theme = "sphinx_rtd_theme"
47+
html_theme_options = {
48+
"collapse_navigation": not on_rtd, # makes local builds much faster
49+
"logo_only": True,
50+
}
51+
html_logo = "images/zulip-logo.svg"
52+
html_static_path = ["_static"]
53+
54+
55+
def setup(app: Any) -> None:
56+
# overrides for wide tables in RTD theme
57+
app.add_css_file("theme_overrides.css") # path relative to _static
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Asking great questions
2+
3+
A well-formed question helps you learn, respects the person answering, and makes
4+
efficient use of time for everyone involved. Asking the right question, to the
5+
right person, in the right way, at the right time, is a skill which requires a
6+
lifetime of fine-tuning. This page offers some guidelines and resources that the
7+
[Zulip community](https://zulip.com/development-community/) has found helpful in this pursuit.
8+
9+
## Where to ask your question
10+
11+
It is almost always best to ask questions and have a conversation in a public
12+
stream, rather than in direct messages. You’ll get better and faster answers
13+
since many people can help, and it makes it possible for others to benefit from
14+
the discussion.
15+
16+
The [Zulip community
17+
guide](https://zulip.com/development-community/#where-do-i-send-my-message)
18+
offers guidelines on how the major public streams in the community are used.
19+
Don’t stress too much about picking the right place if you’re not sure, as
20+
moderators can [move your question thread to a different
21+
stream](https://zulip.com/help/move-content-to-another-stream) if needed.
22+
23+
## How to ask a great question
24+
25+
Spending some extra time and effort to carefully formulate your question is well
26+
worthwhile, as it makes it much more likely that you'll get the information you
27+
need to move forward. There are a few wonderfully thoughtful blog posts that
28+
explain what it means to ask a good question:
29+
30+
- [Try, Then Ask](https://www.mattringel.com/2013/09/30/you-must-try-and-then-you-must-ask/)
31+
- [We Aren’t Just Making Code, We’re Making History](https://www.harihareswara.net/sumana/2016/10/12/0)
32+
- [How to Ask Good Questions](https://jvns.ca/blog/good-questions/)
33+
34+
In brief, to formulate a great question, you should:
35+
36+
- Try to solve your own problem first, including reading through relevant
37+
documentation and code.
38+
- Identify the precise point on which you feel stuck.
39+
- Formulate a clear question, which includes an appropriate amount of context
40+
and a specific request for help.
41+
42+
When your question is answered, follow through on the advice you receive, and (when
43+
appropriate) summarize the resolution of your problem so that others can learn
44+
from your experience.
45+
46+
You can find additional helpful tips in our guide to [what makes a great Zulip
47+
contributor](contributing.md#what-makes-a-great-zulip-contributor).
48+
49+
## Follow the community guidelines
50+
51+
As always, be sure to follow the [Zulip community
52+
norms](https://zulip.com/development-community/). In particular, check out [the
53+
section on getting help](https://zulip.com/development-community/#getting-help)
54+
before you post.

0 commit comments

Comments
 (0)