summaryrefslogtreecommitdiff
path: root/doc/source/conf.py
diff options
context:
space:
mode:
authorStefan van der Walt <stefanv@berkeley.edu>2021-03-04 07:11:41 -0800
committerGitHub <noreply@github.com>2021-03-04 09:11:41 -0600
commit954605ec08ad833899ffb956395f2d70f8eea2df (patch)
treea728df2ab2d8c29e8a36e98cd4a97581e87460ea /doc/source/conf.py
parent7134dcfe5f43146ffd1ba8d9c58504ec7146ea3f (diff)
downloadnumpy-954605ec08ad833899ffb956395f2d70f8eea2df.tar.gz
MAINT: Update master to main after branch rename (gh-18544)
* Upload docs to main branch of neps/devdocs * Update `master` to `main` to be consistent with current state of renaming * Remove badges from README * Replace remaining instances of `master` with `main` * Add back logo * Fix CircleCI branch checks * Fix GA branch name * master->main in issue templates. * master->main for 2 links to numpy archive. * Change master to main in NEP 23 Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
Diffstat (limited to 'doc/source/conf.py')
-rw-r--r--doc/source/conf.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 7eb96eb22..dcf60ada9 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -94,6 +94,7 @@ templates_path = ['_templates']
# The suffix of source filenames.
source_suffix = '.rst'
+# Will change to `root_doc` in Sphinx 4
master_doc = 'index'
# General substitutions.
@@ -442,7 +443,7 @@ def linkcode_resolve(domain, info):
linespec = ""
if 'dev' in numpy.__version__:
- return "https://github.com/numpy/numpy/blob/master/numpy/%s%s" % (
+ return "https://github.com/numpy/numpy/blob/main/numpy/%s%s" % (
fn, linespec)
else:
return "https://github.com/numpy/numpy/blob/v%s/numpy/%s%s" % (