zulip/docs
Brock Whittaker 7b00bd6f7e Remove the old spinner, replace with new one.
This removes the old content loading spinner and replaces it with a new
SVG.
2017-01-06 10:37:54 -08:00
..
_static docs: Add Git and GitHub Guide. 2016-10-17 16:18:16 -07:00
images docs: Update documentation styling guide with new guidelines. 2017-01-05 20:23:26 -08:00
.gitignore Initial sphinx setup from sphinx-quickstart 2015-08-18 17:31:32 -07:00
Makefile Initial sphinx setup from sphinx-quickstart 2015-08-18 17:31:32 -07:00
README.md docs: Cleanup whitespace in user docs style guide. 2017-01-06 09:01:27 -08:00
THIRDPARTY Remove the old spinner, replace with new one. 2017-01-06 10:37:54 -08:00
architecture-overview.md Django 1.10: Use uWSGI. 2016-12-13 21:40:43 -08:00
bots-guide.md docs: Wrap a bunch of long lines. 2017-01-05 14:31:34 -08:00
brief-install-vagrant-dev.md Vagrant: Make host_ip a variable set in ~/.zulip-vagrant-config. 2016-12-30 14:50:08 -08:00
changelog.md User user_id, not email, in peer_add events. 2016-11-04 11:37:14 -07:00
chinese.md docs: Wrap long lines in translation guides. 2017-01-05 14:08:42 -08:00
code-of-conduct.md docs: Add code of conduct. 2016-11-26 18:40:16 -08:00
code-reviewing.md Add additional resources to code review. 2016-12-13 23:12:10 -08:00
code-style.md lint: Remove old jslint linter. 2016-12-02 18:49:42 -08:00
conf.py lint: Fix pep-8 rules on recently added files. 2016-12-27 20:16:23 -08:00
conversion.md docs: Improve export documentation. 2016-10-20 22:52:32 -07:00
custom-apps.md docs: Properly capitalize GitHub. 2016-10-17 19:31:50 -04:00
dev-env-first-time-contributors.md Vagrant: Make host_ip a variable set in ~/.zulip-vagrant-config. 2016-12-30 14:50:08 -08:00
dev-overview.md docs: Change dev -> development everywhere. 2016-11-29 14:23:54 -08:00
dev-remote.md dev-remote: Clean up some text, mostly dev->development. 2016-11-29 14:16:51 -08:00
dev-setup-non-vagrant.md lint: Check for long lines in all markdown files in general. 2017-01-05 15:06:34 -08:00
directory-structure.md docs: Wrap a bunch of long lines. 2017-01-05 14:31:34 -08:00
front-end-build-process.md Update documentaton to reflect Django-Pipeline==1.6.8. 2016-07-09 07:09:55 -07:00
full-text-search.md Support full text search for all languages using pgroonga. 2016-08-26 21:04:03 -07:00
git-guide.md docs: Fix broken link in git-guide.md 2016-12-10 06:09:46 -08:00
html_css.md Extract media queries to media.css. 2016-08-05 10:32:55 -07:00
html_unescape.py Change shebangs from python2.7 to python. 2016-05-29 05:03:08 -07:00
index.rst Rename and reorder the bots guide 2016-12-20 11:40:04 -08:00
install-docker-dev.md docs: Simplify hierarchy of dev setup docs. 2016-11-29 14:13:09 -08:00
install-generic-unix-dev.md docs: Simplify hierarchy of dev setup docs. 2016-11-29 14:13:09 -08:00
install-ubuntu-without-vagrant-dev.md docs: Simplify hierarchy of dev setup docs. 2016-11-29 14:13:09 -08:00
integration-guide.md docs: Fix formatting typo. 2017-01-04 10:12:07 -08:00
life-of-a-request.md docs: Wrap a bunch of long lines. 2017-01-05 14:31:34 -08:00
linters.md lint: Remove old jslint linter. 2016-12-02 18:49:42 -08:00
logging.md Improve first-time contributor docs. 2016-05-31 07:47:45 -07:00
manual-testing.md docs: Change dev -> development everywhere. 2016-11-29 14:23:54 -08:00
markdown.md docs: Add documentation for linking to a stream. 2016-12-06 17:47:26 -08:00
migration-renumbering.md Add docs/migration-renumbering.md 2016-07-18 12:02:50 -07:00
mypy.md mypy: Update docs to recommend typing.Text instead of six.text_type. 2016-12-26 16:11:37 -08:00
new-feature-tutorial.md lint: Check for long lines in all markdown files in general. 2017-01-05 15:06:34 -08:00
pointer.md Expand pointer and unread counts guide. 2016-08-16 16:17:54 -07:00
polish.md docs: Wrap long lines in translation guides. 2017-01-05 14:08:42 -08:00
prod-authentication-methods.md docs: Fix style in authentication methods doc. 2016-10-22 20:14:56 -07:00
prod-customize.md Always start python via shebang lines. 2016-11-26 14:46:37 -08:00
prod-install.md docs: Improve installation instruction headings. 2016-12-06 17:36:42 -08:00
prod-maintain-secure-upgrade.md Add initial implementation of custom realm filters. 2016-11-17 17:11:25 -08:00
prod-postgres.md lint: Check for long lines in all markdown files in general. 2017-01-05 15:06:34 -08:00
prod-requirements.md requirements: Document anti-recommendation of t2 style instances. 2016-11-26 19:06:45 -08:00
prod-troubleshooting.md docs: Rename status/debug page to troubleshooting. 2016-08-25 09:37:33 -07:00
queuing.md Update documentation on development auto-reloading. 2016-06-26 20:20:13 -07:00
readme-symlink.md Rearrange docs table of contents for coherence. 2016-05-31 09:07:09 -07:00
realms.md docs: Fix a missing close paren. 2016-11-01 12:32:36 -07:00
release-checklist.md docs: Add a brief release checklist. 2016-11-04 10:52:48 -07:00
requirements.readthedocs.txt Move doc building dependencies to requirements/docs.txt. 2016-06-20 16:05:42 -07:00
roadmap.md lint: Check for long lines in all markdown files in general. 2017-01-05 15:06:34 -08:00
russian.md docs: Wrap long lines in Russian style guide. 2017-01-05 14:31:34 -08:00
schema-migrations.md Link to migration-renumbering.html in schema-migrations.md 2016-07-18 12:02:50 -07:00
settings.md docs: Fix typo in spelling of generate_secrets. 2016-10-05 17:47:14 -07:00
spanish.md docs: Wrap long lines in translation guides. 2017-01-05 14:08:42 -08:00
ssl-certificates.md docs: Move SSL docs to a dedicated page. 2016-08-25 09:37:33 -07:00
testing-with-casper.md docs: Clean up testing with casper selectors discussion. 2017-01-03 16:56:50 -08:00
testing-with-django.md tests: Split out ZulipTestCase and WebhookTestCase to a separate file. 2016-11-10 19:29:43 -08:00
testing-with-node.md docs: Fix broken link in node testing docs. 2016-10-22 19:21:19 -07:00
testing.md docs: Change dev -> development everywhere. 2016-11-29 14:23:54 -08:00
translating.md docs: Create a Russian translation style guide. 2017-01-03 19:33:43 -08:00
users.md Add draft document for user populations. 2016-11-08 15:28:04 -08:00
using-dev-environment.md docs: Don't include zulip.readthedocs.io in internal links 2016-11-19 10:16:38 -08:00
version-control.md docs: Clarify commit message portion of version control docs. 2016-10-05 19:28:21 -07:00
writing-views.md lint: Check for long lines in all markdown files in general. 2017-01-05 15:06:34 -08:00

README.md

Documentation

Zulip has three major documentation systems:

  • Developer and sysadmin documentation: Documentation for people actually interacting with the Zulip codebase (either by developing it or installing it), and written in Markdown.

  • Core website documentation: Complete webpages for complex topics, written in HTML, JavaScript, and CSS (using the Django templating system). These roughly correspond to the documentation someone might look at when deciding whether to use Zulip. We don't expect to ever have more than about 10 pages written using this system.

  • General user documentation: Our scalable system for documenting Zulip's huge collection of specific features without a lot of overhead or duplicated code/syntax, written in Markdown. We expect to eventually have around 100 pages written using this system. The target audience for this system is individual Zulip users.

These three systems are documented in detail below.

Developer and sysadmin documentation

What you are reading right now is part of the collection of documentation targeted at developers and people running their own Zulip servers. These docs are written in Commonmark Markdown with a small bit of rST. We've chosen Markdown because it is easy to write. The source for Zulip's developer documentation is at docs/ in the Zulip git repository, and they are served in production at zulip.readthedocs.io.

If you want to build the developer documentation locally (e.g. to test your changes), the dependencies are automatically installed as part of Zulip development environment provisioning, and you can build the documentation using:

cd docs/
make html

and then opening file:///path/to/zulip/docs/_build/html/index.html in your browser (you can also use e.g. firefox docs/_build/html/index.html from the root of your Zulip checkout).

If you are adding a new page to the table of contents, you will want to modify docs/index.rst and run make clean before make html, so that other docs besides your new one also get the new entry in the table of contents.

You can also usually test your changes by pushing a branch to GitHub and looking at the content on the GitHub web UI, since GitHub renders Markdown, though that won't be as faithful as the make html approach.

When editing dependencies for the Zulip documentation, you should edit requirements/docs.txt (which is used by ReadTheDocs to build the Zulip developer documentation, without installing all of Zulip's dependencies).

Core website documentation

Zulip has around 10 HTML documentation pages under templates/zerver for specific major topics, like the features list, client apps, integrations, hotkeys, API bindings, etc. These documents often have somewhat complex HTML and JavaScript, without a great deal of common pattern between them other than inheriting from the portico.html template. We generally avoid adding new pages to this collection unless there's a good reason, but we don't intend to migrate them, either, since this system gives us the flexibility to express these important elements of the product clearly.

General user documentation

Our goal is for Zulip to have complete, high-quality user-facing documentation about how to use every feature and how to do common tasks (like setting up a new Zulip organization well). This system is designed to make writing and maintaining such documentation highly efficient.

The user documentation is available under /help/ on any Zulip server; (e.g. https://chat.zulip.org/help/ or http://localhost:9991/help/ in the Zulip development environment). The user documentation is not hosted on ReadTheDocs, since Zulip supports running a server completely disconnected from the Internet, and we'd like the documentation to be available in that environment.

The source for this user documentation is the Markdown files under templates/zerver/help/ in the main Zulip server repository. The file foo.md is automatically rendered by the render_markdown_path function in zerver/templatetags/app_filters.py when the user accesses a URL of the form /help/foo; with special cases for /help/ going to index.md and /help/unknown_article going to missing.md (with a 404 response). Images are usually linked from static/images/help/.

This means that you can contribute to the Zulip user documentation by just adding to or editing the collection of markdown files under templates/zerver/help. If you have the Zulip development environment setup, you simply need to reload your browser on http://localhost:9991/help/foo to see the latest version of foo.md rendered.

Since raw HTML is supported in Markdown, you can include arbitrary HTML in your documentation in order to do fancy things like highlighting an important aspect of your code. We'll likely add a library of common components over time, which will be documented below.

Supported features

  • All the usual features of Markdown with raw HTML enabled so you can do custom things with HTML/CSS as needed. The goal is to make reusable markdown syntax for things we need often, though.
  • Code blocks with syntax highlighting, similar to Zulip's own markdown.
  • Anchor tags for linking to headers in other documents.
  • You can create special highlight warning blocks using e.g.:
!!! warn "title of warning"
    Body of warning

to create a special warning block with title "title of warning" to highlight something important. The whitespace is important. Often, we just use "" as the title. !!! tip "title" is useful for less scary tips. See the python-markdown docs on this extension for details on how this extension works; essentially the value warn or tip is an extra CSS class added to the admonition.

Macros

Macros are elements in the format of {!macro.md!} that insert common phrases and steps at the location of the macros.

Administration {!admin.md!} macro
  • About: Links to the Edit Administrator Settings documentation. Usually preceded by the Go to the macro and a link to a particular section on the Administration page.

  • Contents:

    tab of the [Administration](/help/edit-administrator-settings) page.
    
  • Example usage and rendering:

    {!go-to-the.md!} [Organization Settings](/#administration/organization-settings)
    {!admin.md!}
    
    1. Go to the [OrganizationSettings](/#administration/organization-settings) tab of the
    [Administration](/help/edit-administrator-settings) page.
    
All streams {!all-sreams.md!} macro
  • About: Explains how to view all streams in the organization on the Subscriptions page. Usually formatted as a tip and preceded by the Subscriptions macro and the Filter streams macro.

  • Contents:

        If you wish to see streams that you aren't subscribed to, click on the
            **All Streams** tab; the tab will turn gray upon doing so.
    
  • Example usage and rendering:

    {!subscriptions.md!}
    {!filter-streams.md!}
        !!! tip ""
        {!all-streams.md!}
    
    1. [Find the relevant stream](/help/browse-and-join-streams#browse-streams) on the
    [Subscriptions](/#subscriptions) page. You can search for specific streams by entering the
    name of the stream in the **Filter Streams** input.
        !!! tip ""
            If you wish to see streams that you aren't subscribed to, click on the
            **All Streams** tab; the tab will turn gray upon doing so.
    
Down chevron {!down-chevron.md!} macro
  • About: Instructs readers to click on the down chevron () icon to reveal an actions dropdown; usually preceded by an command, such as the Message actions macro.

  • Contents:

    down chevron (<i class="icon-vector-chevron-down"></i>) icon to reveal an actions dropdown.
    
  • Example usage and rendering:

    {!message-actions.md!}
    {!down-chevron.md!}
    
    1. Hover over a message to replace the message's timestamp with its message
    actions, represented by three icons. From the icons that appear, select the
    down chevron (<i class="icon-vector-chevron-down"></i>) icon to reveal an actions dropdown.
    
Go to the {!go-to-the.md} macro
  • About: Usually precedes the Settings macro or the Administration macro. Transforms following content into a step.

  • Contents:

    1. Go to the
    
  • Example usage and rendering:

    {!go-to-the.md!} [Notifications](/#settings/notifications)
    {!settings.md!}
    
    1. Go to the [Notifications](/#settings/notifications) tab on the
    [Settings](/help/edit-settings) page.
    
Filter streams {!filter-streams.md!} macro
  • About: Explains how to search for specific streams in the Subscriptions page using the Filter Streams input. Usually preceded by the Subscriptions macro.

  • Contents:

    You can search for specific streams by entering the name of the stream in
    the **Filter Streams** input.
    
  • Example usage and rendering:

    {!subscriptions.md!}
    {!filter-streams.md!}
    
    1. [Find the relevant stream](/help/browse-and-join-streams#browse-streams) on the
    [Subscriptions](/#subscriptions) page. You can search for specific streams by entering the
    name of the stream in the **Filter Streams** input.
    
Message actions {!message-actions.md!} macro
  • About: Explains how to view the actions of message. Usually followed by an instruction to click a specific icon, such as the Down chevron macro.

  • Contents:

    1. Hover over a message to replace the message's timestamp with its message
    actions, represented by three icons. From the icons that appear, select the
    
  • Example usage and rendering:

    {!message-actions.md!}
    {!down-chevron.md!}
    
    1. Hover over a message to replace the message's timestamp with its message
    actions, represented by three icons. From the icons that appear, select the
    down chevron (<i class="icon-vector-chevron-down"></i>) icon to reveal an actions dropdown.
    
Settings {!settings.md!} macro
  • About: Links to the Edit Settings documentation. Usually preceded by the Go to the macro and a link to a particular section on the Settings page.

  • Contents:

    tab on the [Settings](/help/edit-settings) page.
    
  • Example usage and rendering:

    {!go-to-the.md!} [Notifications](/#settings/notifications)
    {!settings.md!}
    
    1. Go to the [Notifications](/#settings/notifications) tab on the
    [Settings](/help/edit-settings) page.
    
Stream actions {!stream-actions.md!} macro
  • About: Explains how to view the actions of stream. Usually followed by the an instruction and the Down chevron macro.

  • Contents:

    1. On the left sidebar in the **Streams** section, hover over a stream to reveal
    a down chevron (<i class="icon-vector-chevron-down"></i>) icon to the right of
    the stream name.
    
  • Example usage and rendering:

    {!stream-actions.md!}
    
    1. Click on the {!down-chevron.md!}
    
    1. On the left sidebar in the **Streams** section, hover over a stream to reveal
    a down chevron (<i class="icon-vector-chevron-down"></i>) icon to the right of
    the stream name.
    
    2. Click on the down chevron (<i class="icon-vector-chevron-down"></i>)
    icon to reveal an actions dropdown.
    
Stream Settings {!stream-settings.md!} macro
  • About: Notifies readers about the changes in the Subscriptions page when a stream is selected; usually followed by an instruction.

  • Contents:

    the right side of the [Subscriptions](/#subscriptions) page, labeled
    **Stream Settings**, will now display the selected stream's settings.
    
  • Example usage and rendering:

    1. Click on the stream you want to edit; {!stream-settings.md!}
    
    1. Click on the stream you want to edit; the right side of the
    [Subscriptions](/#subscriptions) page, labeled **Stream Settings**, will
    now display the selected stream's settings.
    
Stream Settings scroll {!stream-settings.md!} macro
  • About: Instructs readers to scroll down to a particular section on the Subscriptions page after making sure their cursors are hovering above the Streams Settings section.

  • Contents:

    1. After making sure that your cursor is hovering over the **Streams Settings**
    section, scroll down to the
    
  • Example usage and rendering:

    {!stream-settings-scroll.md!} **Stream membership** section. This section
    shows the usernames and emails of all users that are currently subscribed to the
    selected stream.
    
    1. After making sure that your cursor is hovering over the **Streams Settings**
    section, scroll down to the **Stream membership** section. This section
    shows the usernames and emails of all users that are currently subscribed to the
    selected stream.
    
Subscriptions {!subscriptions.md!} macro
  • About: Used in documentation that direct users to the Subscriptions page. Often followed by the Filter streams macro.

  • Contents:

    1. [Find the relevant stream](/help/browse-and-join-streams#browse-streams) on
    the [Subscriptions](/#subscriptions) page.
    
  • Standard usage and rendering:

    {!subscriptions.md!}
    {!filter-streams.md!}
    
    1. [Find the relevant stream](/help/browse-and-join-streams#browse-streams) on the
    [Subscriptions](/#subscriptions) page. You can search for specific streams by entering the
    name of the stream in the **Filter Streams** input.
    

Style guide

  • Names of buttons, fields, etc. should be bolded (e.g. Settings page, Change Password button, Email field). No quotation marks should be used.

  • All multi-step instructions should be formatted as a series of numbered steps. E.g.:

    1. Do something
    2. Do the next thing.
    

    Keep the steps simple — "do X, then Y, then Z" is three steps, not one.

  • Images and additional notes or instructions are kept within a single step by indenting them.

  • Keep in mind that the UI may change — don't describe it in more detail than is needed.

    • Never refer specifically to button colors.
  • All icons should be referenced by their names and their FontAwesome (version 3.0.2) text icons within parentheses.

    • cog () icon — cog (<i class="icon-vector-cog"></i>) icon
    • down chevron () icon — down chevron (<i class="icon-vector-chevron-down"></i>) icon
    • eye () icon — eye (<i class="icon-vector-eye-open"></i>) icon
    • file () icon — file (<i class="icon-vector-file-text-alt"></i>) icon
    • filled star () icon — filled star (<i class="icon-vector-star"></i>) icon
    • formatting () icon — formatting (<i class="icon-vector-font"></i>) icon
    • menu () icon — menu (<i class="icon-vector-reorder"></i>) icon
    • overflow ( ) icon — overflow ( <i class="icon-vector-ellipsis-verical"></i> ) icon
    • paperclip () icon — paperclip (<i class="icon-vector-paperclip"></i>) icon
    • pencil () icon — pencil (<i class="icon-vector-pencil"></i>) icon
    • pencil and paper () icon — pencil and paper (<i class="icon-vector-edit"></i>) icon
    • plus () icon — plus (<i class="icon-vector-plus"></i>) icon
    • smiley face () icon — smiley face (<i class="icon-vector-smile"></i>) icon
    • star () icon — star (<i class="icon-vector-star-empty"></i>) icon
    • trash () icon — trash (<i class="icon-vector-trash"></i>) icon
    • x () icon — x (<i class="icon-vector-remove"></i>) icon
  • Guidelines for tips and warnings:

    • A tip is any suggestion for the user that is not part of the main set of instructions. E.g. it may address a common problem users may encounter while following the instructions, or point to an option for power users.
    • A warning is a note on what happens when there is some kind of problem. Tips are more common than warnings.
    • All tips/warnings should appear inside tip/warning blocks. They should not be included as part of the numbered instructions or displayed in plain paragraphs.
    • There should be only one tip/warning inside each block. It is perfectly fine to use multiple consecutive tip boxes.
    • Generally, no title for the tip/warning block is needed.
    • Example tip from the sign-in doc page:
      !!! tip ""
          If you've forgotten your password, see the
          [Change your password](/help/change-your-password) page for
          instructions on how to reset it.
      
    • Other examples of tips:
      • Your topic name can be no longer than 52 characters.
      • If you are unsure of the code for any particular emoji visit Emoji Cheat Sheet for a complete list.
    • Example warning:
      !!! warn ""
          If you attempt to input a nonexistent stream name, an error
          message will appear.
      
  • Screenshot guidelines:

    • Only include a screenshot if it will help guide the user. E.g. include a screenshot if the user needs to find a button in the corner. Don't include a screenshot if the element the user needs to interact with is the only thing on the page. Using too many screenshots creates problems:

      • Maintenance: The screen shot has to be updated every time the UI is changed.
      • It makes the instructions look longer and therefore more complicated.
    • Never include the whole Zulip window in a screenshot. Focus on the relevant part of the app.

    • The screenshot should always come after the text that describes it, never before. E.g.:

      1. Click the Sign in with Google button located under the Login button and Forgot your password? link.

      Zulip sign in Google