Skip to content

Commit

Permalink
Rename master branch main (#666)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman committed May 26, 2022
1 parent 09504fa commit 14efafa
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# pydata-sphinx-theme

![pypi](https://img.shields.io/pypi/v/pydata-sphinx-theme) [![conda-forge](https://img.shields.io/conda/vn/conda-forge/pydata-sphinx-theme.svg)](https://anaconda.org/conda-forge/pydata-sphinx-theme) [![continuous-integration](https://github.com/pydata/pydata-sphinx-theme/actions/workflows/tests.yml/badge.svg)](https://github.com/pydata/pydata-sphinx-theme/actions/workflows/tests.yml) [![docs](https://readthedocs.org/projects/pydata-sphinx-theme/badge/)](https://readthedocs.org/projects/pydata-sphinx-theme/builds/) [![codecov](https://codecov.io/gh/pydata/pydata-sphinx-theme/branch/master/graph/badge.svg?token=NwOObjYacn)](https://codecov.io/gh/pydata/pydata-sphinx-theme)
![pypi](https://img.shields.io/pypi/v/pydata-sphinx-theme) [![conda-forge](https://img.shields.io/conda/vn/conda-forge/pydata-sphinx-theme.svg)](https://anaconda.org/conda-forge/pydata-sphinx-theme) [![continuous-integration](https://github.com/pydata/pydata-sphinx-theme/actions/workflows/tests.yml/badge.svg)](https://github.com/pydata/pydata-sphinx-theme/actions/workflows/tests.yml) [![docs](https://readthedocs.org/projects/pydata-sphinx-theme/badge/)](https://readthedocs.org/projects/pydata-sphinx-theme/builds/) [![codecov](https://codecov.io/gh/pydata/pydata-sphinx-theme/branch/main/graph/badge.svg?token=NwOObjYacn)](https://codecov.io/gh/pydata/pydata-sphinx-theme)

A Bootstrap-based Sphinx theme from the PyData community.

Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Expand Up @@ -149,9 +149,9 @@
myst_heading_anchors = 2

html_context = {
"github_user": "pandas-dev",
"github_user": "pydata",
"github_repo": "pydata-sphinx-theme",
"github_version": "master",
"github_version": "main",
"doc_path": "docs",
}

Expand Down
4 changes: 2 additions & 2 deletions docs/user_guide/configuring.rst
Expand Up @@ -19,7 +19,7 @@ doc path's _static folder, and use the following configuration:
html_logo = "_static/logo.png"
The logo links to ``master_doc`` (usually the first page of your documentation) by default.
The logo links to ``root_doc`` (usually the first page of your documentation) by default.
If you'd like it to link to another page or use an external link instead, use the following configuration:

.. code:: python
Expand Down Expand Up @@ -167,7 +167,7 @@ For example:
{
"name": "Pandas",
"url": "https://pandas.pydata.org",
"icon": "https://raw.githubusercontent.com/pydata/pydata-sphinx-theme/master/docs/_static/pandas-square.svg",
"icon": "https://raw.githubusercontent.com/pydata/pydata-sphinx-theme/main/docs/_static/pandas-square.svg",
"type": "url",
},
],
Expand Down
4 changes: 2 additions & 2 deletions docs/user_guide/customizing.rst
Expand Up @@ -279,8 +279,8 @@ The default body and header fonts can be changed as follows:
specifically the binary font files. This ensure the files will be loaded
before waiting for the CSS to be parsed, but should be used with care.

.. _pydata-css-variables: https://github.com/pydata/pydata-sphinx-theme/blob/master/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/static/styles/theme.css
.. _pydata-css-colors: https://github.com/pydata/pydata-sphinx-theme/blob/master/src/pydata_sphinx_theme/assets/styles/base/_color.scss
.. _pydata-css-variables: https://github.com/pydata/pydata-sphinx-theme/blob/main/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/static/styles/theme.css
.. _pydata-css-colors: https://github.com/pydata/pydata-sphinx-theme/blob/main/src/pydata_sphinx_theme/assets/styles/base/_color.scss
.. _css-variable-help: https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties

.. meta::
Expand Down
4 changes: 2 additions & 2 deletions docs/user_guide/install.rst
Expand Up @@ -42,14 +42,14 @@ install it from the git repo:

.. code:: console
$ pip install git+https://github.com/pydata/pydata-sphinx-theme.git@master
$ pip install git+https://github.com/pydata/pydata-sphinx-theme.git@main
or in a conda environment yml file, you can add:

.. code:: none
- pip:
- git+https://github.com/pydata/pydata-sphinx-theme.git@master
- git+https://github.com/pydata/pydata-sphinx-theme.git@main
.. meta::
:description lang=en:
Expand Down
4 changes: 2 additions & 2 deletions src/pydata_sphinx_theme/__init__.py
Expand Up @@ -365,8 +365,8 @@ def _get_local_toctree_for(
):
"""Return the "local" TOC nodetree (relative to `indexname`)."""
# this is a copy of `TocTree.get_toctree_for`, but where the sphinx version
# always uses the "master" doctree:
# doctree = self.env.get_doctree(self.env.config.master_doc)
# always uses the "root" doctree:
# doctree = self.env.get_doctree(self.env.config.root_doc)
# we here use the `indexname` additional argument to be able to use a subset
# of the doctree (e.g. starting at a second level for the sidebar):
# doctree = app.env.tocs[indexname].deepcopy()
Expand Down
@@ -1,6 +1,6 @@
{% if logo %}
{% if not theme_logo_link %}
<a class="navbar-brand" href="{{ pathto(master_doc) }}">
<a class="navbar-brand" href="{{ pathto(root_doc) }}">
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="logo">
</a>
{% elif theme_logo_link[:4] == 'http' %}
Expand All @@ -13,7 +13,7 @@
</a>
{% endif %}
{% else %}
<a class="navbar-brand" href="{{ pathto(master_doc) }}">
<a class="navbar-brand" href="{{ pathto(root_doc) }}">
<p class="title">{{ project }}</p>
</a>
{% endif %}
2 changes: 1 addition & 1 deletion tests/sites/base/conf.py
Expand Up @@ -4,7 +4,7 @@
copyright = "2020, Pydata community"
author = "Pydata community"

master_doc = "index"
root_doc = "index"

# -- General configuration ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion tests/sites/sidebars/conf.py
Expand Up @@ -4,7 +4,7 @@
copyright = "2020, Pydata community"
author = "Pydata community"

master_doc = "index"
root_doc = "index"

# -- General configuration ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion tests/sites/test_included_toc/conf.py
Expand Up @@ -6,7 +6,7 @@

# -- General configuration ---------------------------------------------------

master_doc = "index"
root_doc = "index"

# -- Options for HTML output -------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion tests/sites/test_navbar_no_in_page_headers/conf.py
Expand Up @@ -4,7 +4,7 @@
copyright = "2020, Pydata community"
author = "Pydata community"

master_doc = "index"
root_doc = "index"

# -- General configuration ---------------------------------------------------

Expand Down

0 comments on commit 14efafa

Please sign in to comment.