Repository: PlasmaPy/PlasmaPy

Issue:
Rename default branch to `main`
There has been a push in the tech industry to remove language related to slavery (specifically the use of "master" and "slave" as descriptors).  As part of that push, an increasing number of projects have renamed their default branch from `master` to `main`.  The [GitHub page on renaming the default branch](https://github.com/github/renaming) has more information on how to do this.  They've made it easier to rename the default branch, since doing so will re-target open pull requests, and web requests for the old branch name will be redirected to the new branch name.  There will be a notice on the webpage that provides the git commands needed to update clones of the repository on our local machines.  

The steps we need to take for this include (but might not be limited to):

 - [ ] Rename the default branch to `main`
 - [ ] Change `master` to `main` in documentation guide
 - [ ] Change `master` to `main` in GitHub Actions files
 - [ ] Update the branch name on Read the Docs

I might be missing a few steps.  We might also need to update tests using `astropy-dev` and `numpy-dev` to use `main` instead of `master`, since they might be changing default branch names too.  (I know at least that Astropy is planning to.)  I volunteered at the community meeting yesterday for this, so I'll assign myself to it.


Discussion:

Resolving patch:
diff --git a/docs/conf.py b/docs/conf.py
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -94,8 +94,8 @@
 # source_suffix = ['.rst', '.md']
 source_suffix = ".rst"
 
-# The master toctree document.
-master_doc = "index"
+# The root toctree document.
+root_doc = "index"
 
 # General information about the project.
 project = "PlasmaPy"
@@ -209,7 +209,7 @@
 #  author, documentclass [howto, manual, or own class]).
 latex_documents = [
     (
-        master_doc,
+        root_doc,
         "PlasmaPy.tex",
         "PlasmaPy Documentation",
         "PlasmaPy Community",
@@ -222,7 +222,7 @@
 
 # One entry per manual page. List of tuples
 # (source start file, name, description, authors, manual section).
-man_pages = [(master_doc, "plasmapy", "PlasmaPy Documentation", [author], 1)]
+man_pages = [(root_doc, "plasmapy", "PlasmaPy Documentation", [author], 1)]
 
 
 # -- Options for Texinfo output -------------------------------------------
@@ -232,7 +232,7 @@
 #  dir menu entry, description, category)
 texinfo_documents = [
     (
-        master_doc,
+        root_doc,
         "PlasmaPy",
         "PlasmaPy Documentation",
         author,
@@ -268,7 +268,7 @@
 nbsphinx_prolog = r"""
 {% set docname = 'docs/' + env.doc2path(env.docname, base=None) %}
 {% set nb_base = 'tree' if env.config.revision else 'blob' %}
-{% set nb_where = env.config.revision if env.config.revision else 'master' %}
+{% set nb_where = env.config.revision if env.config.revision else 'main' %}
 
 .. raw:: html
 
diff --git a/plasmapy/plasma/plasma_base.py b/plasmapy/plasma/plasma_base.py
--- a/plasmapy/plasma/plasma_base.py
+++ b/plasmapy/plasma/plasma_base.py
@@ -32,7 +32,7 @@ def __init_subclass__(cls, **kwargs):
     # abstract methods.
 
     # For reference, see
-    # https://github.com/sunpy/ndcube/blob/master/ndcube/ndcube.py#L26
+    # https://github.com/sunpy/ndcube/blob/main/ndcube/ndcube.py#L26
 
     @property
     @abstractmethod


Test patch: