Skip to content

Commit

Permalink
fix!: set default source_version from master to main
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Feb 20, 2025
1 parent 0694db1 commit 06da551
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy docs to Pages
on:
push:
branches:
- master
- main

workflow_dispatch:

Expand Down
2 changes: 1 addition & 1 deletion docs/customisation/layouts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ The ``landing`` layout is typically used for the home page
`Shibuya theme's homepage </>`_. Source code can be found on
`GitHub (index.rst)`_.

.. _`GitHub (index.rst)`: https://github.com/lepture/shibuya/blob/master/docs/index.rst
.. _`GitHub (index.rst)`: https://github.com/lepture/shibuya/blob/main/docs/index.rst

This template offers a special container for buttons:

Expand Down
2 changes: 1 addition & 1 deletion docs/writing/media.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Images
:target: https://pypi.python.org/pypi/shibuya
.. image:: https://img.shields.io/pypi/l/shibuya?color=12A594&style=for-the-badge
:alt: PyPI - License
:target: https://github.com/lepture/shibuya/blob/master/LICENSE
:target: https://github.com/lepture/shibuya/blob/main/LICENSE
.. image:: https://img.shields.io/github/sponsors/lepture?color=8F76D6&style=for-the-badge
:alt: GitHub Sponsors
:target: https://github.com/sponsors/lepture
Expand Down
2 changes: 1 addition & 1 deletion src/shibuya/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def create_edit_source_link(context: Dict[str, Any]):
source_user = context.get("source_user")
source_repo = context.get("source_repo")
source_docs_path = context.get("source_docs_path", "/docs/")
source_version = context.get("source_version", "master")
source_version = context.get("source_version", "main")
source_edit_template = context.get("source_edit_template")

def edit_source_link(filename: str) -> str:
Expand Down

0 comments on commit 06da551

Please sign in to comment.