GithubHelp home page GithubHelp logo

mattermost / docs Goto Github PK

View Code? Open in Web Editor NEW
206.0 47.0 559.0 318.2 MB

Mattermost documentation

Home Page: https://docs.mattermost.com

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.63% Batchfile 0.33% Python 59.37% HTML 14.23% CSS 10.54% JavaScript 10.13% Shell 1.31% SCSS 3.45%
mattermost-documentation hacktoberfest

docs's Introduction

Mattermost Documentation

This repository generates the documentation available at https://docs.mattermost.com/. All documentation is available under the terms of a Creative Commons License.

If you have any questions, create an account on the Mattermost Community server, then join the writing team in the Documentation Working Group channel. We look forward to working with you!

Table of Contents

Contribute to Mattermost product documentation

Get started

You can edit or create Mattermost documentation directly in GitHub, or by downloading the mattermost/docs repository onto your machine and using an IDE such as VS Code. Consult the Mattermost Documentation Style Guide and reStructuredText Markup section for stylistic and technical guidance.

If this is your first time contributing to Mattermost, first read and sign the Mattermost Contributor Agreement, so you can be added to the Mattermost Approved Contributor List.

Edit content directly on GitHub

The quickest way to begin is editing directly on GitHub on your fork of the Mattermost docs repo. Select the Edit icon on the top right corner of the page you want to edit in the Mattermost documentation.

If this is the first time you're contributing, follow these steps:

  1. Select Fork in the top-right corner of the GitHub repository page to fork the current repository.
  2. Navigate to file you want to edit, then select the Pencil icon (Edit the file) to open the editing interface.

Create Documentation pull requests

  1. When you're ready to submit your changes, add a descriptive title and comments to summarize the changes made.
  2. Select Create a new branch for this commit and start a pull request.
  3. Check the Propose file change button.
  4. Scroll down to compare changes with the original document.
  5. Select Create pull request.

Use GitHub PR labels

GitHub PR labels are used to track the life cycle and status of a pull request. Using the correct labels helps with managing workflows and ensuring that content is edited, merged and released at the correct time. For example, PRs that include an Editor Review label will be processed by an editor on the writing team to ensure the documentation is correctly formatted at https://docs.mattermost.com/ based on guidelines outlined in the style guide.

Take a look at the Labels page for information about how and when to use which labels.

Comment on pull requests

Once a pull request is submitted, multiple committers may comment on it and provide edits or suggestions which you can commit directly. You can also add line comments. Take a look at Commenting on pull requests for more details.

Review pull requests

Once a pull request has been submitted and the correct label assigned, the review process begins. This includes aligning the content with the Style Guide, validating processes, and tagging any other relevant committers. Read more about the review process and expectations in the Mattermost Developer documentation.

Once the review process is complete, and depending on the type of issue it is (e.g., a typo fix vs. a new feature), the change is either merged into master and pushed immediately or merged into the release branch and pushed in alignment with a future release. The branch is then deleted.

Build locally

If you've downloaded the mattermost/docs repository and are editing Mattermost documentation on your local machine, you can generate the HTML files from markdown in the source directory. You can review your changes before you commit them or create pull requests.

Note: Terminal commands can be executed on Linux, Mac, and Windows (using PowerShell).

Build prerequisites

The following software is required to build the documentation:

Build instructions

  1. Open a terminal window, then clone a forked copy of the documentation repository:

    git clone https://github.com/mattermost/docs.git
  2. In the terminal window, navigate into the cloned repository:

    cd docs
  3. Install pipenv by using one of the following commands based on your operating system:

    For Mac users where Homebrew is installed:

    brew install pipenv

    For other operating systems:

    pip install --user pipenv
  4. Install required Python packages:

    pipenv install --dev
  5. Build the documentation set. You have three build commands available at the terminal:

    • Use make html to generate HTML files in the /build directory. Only file you've modified are re-built.
    • Use make clean html to delete all static HTML output in the /build directory and re-build all files. This command is particularly useful when you're making changes to the LHS navigation pane and want to ensure you're not reviewing cached results.
    • Use make livehtml to review a live preview published to http://127.0.0.1:8000 that automatically updates as new changes are saved in your local IDE.

    Windows users will require GNU Make installed for the above commands to work correctly. If GNU Make is not installed, please substitute CMD /C make.bat for make in the above commands to use the Windows command interpreter. For example make html will become CMD /C make.bat html.

    Note: When using the CMD /C make.bat substitution, only a single target may be specified. Instead of running CMD /C make.bat clean html, each target must be run seperately. For example, CMD /C make.bat clean followed by CMD /C make.bat html.

  6. When working with static build results, navigate to the build directory:

    cd build
  7. Then, preview your changes by opening the build/html/index.html file.

Build errors are written to the build/warnings.log file.

docs's People

Contributors

amyblais avatar asaadmahmood avatar bbodenmiller avatar coltoneshaw avatar comharris avatar coreyhulen avatar cwarnermm avatar emdecr avatar enahum avatar esethna avatar hmhealey avatar icelander avatar it33 avatar james-mm avatar jasonblais avatar jeffschering avatar johnthompson365 avatar jthebab avatar justinegeffen avatar justinreynolds-mm avatar jwilander avatar lfbrock avatar lieut-data avatar lindy65 avatar rutam21 avatar sayanta66 avatar streamer45 avatar svelle avatar tapaswenipathak avatar wiersgallak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

Typing error in mattermost database changes.

At https://docs.mattermost.com/administration/changelog.html#database-changes-from-v3-2-to-v3-3 ,
( Commit
e30c3fa#diff-6d8bc7fdf1108df5a6734816051a32e3R191
)

Users Table

  • Added LastActivityAt column.
  • Added LastPingAt column.
  • Removed ThemeProps column.

But, Actually Users table's column LastActivityAt and LastPingAt removed at v3.3.

( https://github.com/mattermost/platform/blob/c3ae3f20f58b25aa6aba480ddc2239fd09e610cb/store/sql_upgrade.go#L172 )

I try to fix typos, but I found that document database change logs have more errors than I expected.

Can you check document change logs?

[Question] Encourage use of virtualenv in the README?

pip install was giving me errors like:

OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/sphinx'

This requires me to install packages with sudo. I don't program python so might not have configured pip properly. Then I used virtualenv instead which made package installs clean, isolated and without sudo.

This made me wonder if we should encourage contributors to use virtualenv via the README.

[Help Wanted] Add Japanese documentation to international documentation page

While docs.mattermost.com does not yet support localization, an international section has been created to support documentation for communities where English language is uncommon.

This ticket is to welcome pull requests for Japanese documentation to be added to this section, based on considerable interest from the Japanese community. For example:

api oauth docs missing

so we're trying to write a mattermost chat-bot that doesn't have the limitations of the web-hooks (no private channels for example)... We thought this should be easy enough by making a full user-account for the bot and logging it in via the API...

sadly we use our gitlab's oauth and the following section is empty so we can't get it to work:
http://docs.mattermost.com/developer/web-service.html#oauth2

would be cool if someone could take the time to add that section...

by guessing (not sure it's the right track) we already could acquire an access_token from the gitlab oauth:

client_id = 'the one of mattermost in our gitlab'
r = requests.post(
    'https://git.example/oauth/token',
    data={
        "grant_type": "password",
        "username": user,
        "password": pw,
        "client_id": client_id,
    }
)
access_token = r.json()['access_token']

but using it only results in a 401:

ri = requests.get(
    'https://chat.example/api/v1/users/me',
    headers={'Authorization': 'Bearer ' + access_token}
)

ri.status_code, ri.json()
(401,
 {u'detailed_error': u'token=...xxx...',
  u'id': u'api.context.session_expired.app_error',
  u'is_oauth': False,
  u'message': u'Invalid or expired session, please login again.',
  u'request_id': u'...yyy...',
  u'status_code': 401})

Improving the visual difference between section titles and subtitles

It's not easy to distinguish between section titles and subtitles in the docs at the moment, as the header styles are quite close to each other.

image

One option is to add a line below the section title so it's easier to distinguish between the two

image

Opening a GitHub issue to start discussion -- came up during a PM group review on docs earlier today.

Document how to create a clickable button in markdown

Probably create or find a better image, but basically here's the markdown to create a button:

[![button](http://www.presentationpro.com/images/product/medium/slide/PPP_CGENE_LT3_Presentation-PowerPoint-Slide-Graphic_Push_Button_Up.jpg)](https://mattermost.com)

button

Upgrade Guide should mention that you may need to set Mattermost account as directory owner again after upgrading

I upgraded to the Enterprise Edition from the Team Edition, and then ran into an issue when uploading the Identity Provider Public Certificate for SAML: https://docs.mattermost.com/deployment/sso-saml-okta.html

It turns out I had to run the following commands after the upgrade, to be able to upload the certificate:

sudo chown -R mattermost:mattermost /opt/mattermost
sudo chmod -R g+w /opt/mattermost

These are mentioned in the Install documentation, but should probably be mentioned in the Upgrade guide: https://docs.mattermost.com/administration/upgrade.html

[Help Wanted] Set up a system for creating permanent links

With the current, if a doc is renamed or moved, its URL changes.

This sometimes causes issues if the help documentation was linked to in the product, because older versions may contain broken documentation links.

To make it easier, we'd like to add a system for creating permanent links that redirect to the correct docs. We can then keep the permanent link in the product, and just update which document the permanent link points to.

Ubuntu 16.04 instructions needed

I have gone through the steps outlined in section Set up Mattermost Server.

When I get to step 9 and run the command sudo start mattermost, it fails with error message:
[sudo] password for ubuntu:
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused

The machine is running Ubuntu 16.04.1 x64 (a DigitalOcean droplet).

How to start Mattermost automatically ?

Hi everyone !

Can we start mattermost on startup ?

Now we have to pass root and run ./mattermost/bin/platform

Can we add a mattermost service module to start automatically ?

Thanks.

Inconsistent Nginx setup recommendations

In the various Linux install docs, there are three different recommendations for the contents of /etc/nginx/conf.d/mattermost.conf

These are the files that contain Nginx setup instructions:

ee-prod-rhel-6.rst
ee-prod-rhel-7.rst
ee-prod-ubuntu.rst
prod-debian.rst
prod-rhel-6.rst
prod-rhel-7.rst
prod-ubuntu-16.04.rst
prod-ubuntu-1404.rst

Is there a best one that can be used consistently? This is what's there now:

For ee-prod-ubuntu.rst, prod-debian.rst, prod-rhel-6.rst, and prod-rhel-7.rst:

  server {
	 listen         80;
	 server_name    mattermost.example.com;
	 return         301 https://$server_name$request_uri;
	}

	server {
	 listen 443 ssl;
	 server_name mattermost.example.com;

	 ssl on;
	 ssl_certificate /etc/letsencrypt/live/yourdomainname/fullchain.pem;
	 ssl_certificate_key /etc/letsencrypt/live/yourdomainname/privkey.pem;
	 ssl_session_timeout 5m;
	 ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
	 ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
	 ssl_prefer_server_ciphers on;
	 ssl_session_cache shared:SSL:10m;

	 location / {
		gzip off;
		proxy_set_header X-Forwarded-Ssl on;
		client_max_body_size 50M;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection "upgrade";
		proxy_set_header Host $http_host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header X-Forwarded-Proto $scheme;
		proxy_set_header X-Frame-Options SAMEORIGIN;
		proxy_pass http://10.10.10.2:8065;
	 }
	}

For ee-prod-rhel-6.rst and ee-prod-rhel-7.rst:

  server {
	 listen         80;
	 server_name    mattermost.example.com;
  }

  server {
	 listen 443 ssl;
	 server_name mattermost.example.com;

	 ssl on;
	 ssl_certificate /etc/letsencrypt/live/yourdomainname/fullchain.pem;
	 ssl_certificate_key /etc/letsencrypt/live/yourdomainname/privkey.pem;
	 ssl_session_timeout 5m;
	 ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
	 ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
	 ssl_prefer_server_ciphers on;
	 ssl_session_cache shared:SSL:10m;

	 location / {
		gzip off;
		proxy_set_header X-Forwarded-Ssl on;
		client_max_body_size 50M;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection "upgrade";
		proxy_set_header Host $http_host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header X-Forwarded-Proto $scheme;
		proxy_set_header X-Frame-Options SAMEORIGIN;
		proxy_pass http://10.10.10.2:8065;
	 }
  }

For prod-ubuntu-16.04.rst and prod-ubuntu-1404.rst:

        upstream backend {
            server 10.10.10.2:8065;
        }

        proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=mattermost_cache:10m max_size=3g inactive=120m use_temp_path=off;

        server {
            listen 80;
            server_name    mattermost.example.com;

            location /api/v3/users/websocket {
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                client_max_body_size 50M;
                proxy_set_header Host $http_host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto $scheme;
                proxy_set_header X-Frame-Options SAMEORIGIN;
                proxy_buffers 256 16k;
                proxy_buffer_size 16k;
                proxy_read_timeout 600s;
                proxy_pass http://backend;
            }

            location / {
                client_max_body_size 50M;
                proxy_set_header Connection "";
                proxy_set_header Host $http_host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto $scheme;
                proxy_set_header X-Frame-Options SAMEORIGIN;
                proxy_buffers 256 16k;
                proxy_buffer_size 16k;
                proxy_read_timeout 600s;
                proxy_cache mattermost_cache;
                proxy_cache_revalidate on;
                proxy_cache_min_uses 2;
                proxy_cache_use_stale timeout;
                proxy_cache_lock on;
                proxy_pass http://backend;
            }
        }

Add "PDF" to Options menu to export pages to PDF

  • This would be adding the ability to export documentation pages in .rst to PDF, see previous discussion: #85 (comment)
  • It would be nice if there was a way to export from .md files as well, but we can also do the work to convert those to .rst. The .rst format has more formatting options than markdown, and there are tools to help with conversion so it's probably good to do. The downside is that markdown is more popular.

Developer Setup omits installation of VirtualBox

On the Developer Setup page, under Mac OS X setup, step 1.2 "Start a new docker host" fails as follows:

$ docker-machine create -d virtualbox dev
Running pre-create checks...
Error with pre-create check: "VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path"

Perhaps there should be a step before this to describe a preferred way to install VirtualBox?

AWS Docker Setup Guide Issue

The AWS setup guide at docs/source/install/docker-ebs.rst specifies to select a t2.small or larger instance, and that the "options on the Additional Resources page may be left at default unless you wish to change them." However, the t2.* instances require a VPC environment to be configured as well, otherwise the instance will fail when it is created.

I don't know if the best solution is to recommend an m3 instance, or provide details on configuring the VPC for the setup guide.

Creating Auto Scaling group named: [group] failed Reason: The specified instance type can only be used in a VPC. A subnet ID or network interface ID is required to carry out the request. Launching EC2 instance failed.

[Help Wanted] Figure out where to add Community Content Guidelines

This was removed from a PR to Community Guidelines page. It's looking for a new home. Any thoughts?

Community Content Guidelines 
==============================================================

Content from community in GitHub, Forums, Feature Ideas, Community Mattermost site or any other community content site managed by Mattermost should follow Mattermost guidelines: 

Content that is deemed to be controversial, offensive, potentially defamatory or infringing content from material distributed, broadcast, or posted on websites will be edited or removed. 

We ask the community's help in reporting any such content to [email protected]   

Help Wanted: Chapter on Windows setup with IIS

Thanks to Golang, we have a Windows build included in each release of the Mattermost server, but we don't have a chapter in our install guide to walk people through how to set it up properly.

This ticket is to copy an paste one of our Linux install guides to create the Windows server setup chapter with IIS.

Once the chapter is ready, it could be announced to the people who have voted for this feature previously to help test and provide feedback before we announce Windows support as official (or possibly beta, depending on how the testing goes).

Default NGINX SSL setup results in weak Diffie-Hellman key exchange parameters

If you follow the instructions in the doc https://docs.mattermost.com/install/prod-ubuntu-16.04.html#set-up-nginx-with-ssl-recommended, you end up with an NGINX config that supports weak Diffie-Hellman (DH) key exchange parameters. This prevents an A rating from the site that the docs recommend for testing the SSL config, Qualys SSL Labs.

The instructions should include how to configure a Mattermost system to get an A rating.

[Help Wanted] Bug: Linking to a section heading of a document causes the scroll to offset by the width of the Mattermost header bar

Repro:

  1. Click a link to a specific section header in a document (for example, https://docs.mattermost.com/deployment/cluster.html#file-storage-configuration)

Observed: The section header is hidden behind the "Mattermost" header bar because the scroll is offset. This only seems to happen the first time the link is visited.

Expected: Page is scrolled so linked section starts just below the "Mattermost" header bar

See screenshot:
image

[Help Wanted] Reorganize and correct Desktop App info table

https://docs.mattermost.com/help/apps/desktop-guide.html#id2

image

Propose:

  1. Name the columns Windows, Mac and Linux (rather than having "OS X", which is less obvious)
  2. Re-order rows so we have all the Yes, Yes, Yes at the top, then Yes, X, X, then [BLANK], YES, X. so it's easier to see what's in Windows (most popular),
  3. Re-order the settings in the section below so it matches the table.
  4. Update table to match the description below, example: In the description Start App on Logon is only available on Windows and Linux, but the table shows it's available on Mac, this doesn't appear to be correct.

Here is Setting Page on Mac:
image

[Help wanted] Fix search for "Upgrade"

Search for "Upgrade" and upgrade page doesn't appear. Need to find out why, and later write out some criteria so it is easier to find regressions in search

Cannot access to "Creating Teams" page

Hi,

Thank for your work !

I have a problem with docs, I cannot access to "Creating Teams" page, return me 403 HTTP code :(
See screenshot :

capture d ecran_2016-09-16_17-18-30

Thank for your help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.