Skip to content

Commit

Permalink
Fix some references to master not renamed to main
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarlow83 committed Jun 20, 2023
1 parent cf33095 commit a80e7a1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Test and deploy
on:
push:
branches:
- master
- main
- ci
- release/*
- feature/*
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@master
- uses: pypa/gh-action-pypi-publish@main
with:
user: __token__
password: ${{ secrets.TOKEN_PYPI }}
Expand All @@ -264,9 +264,9 @@ jobs:
- name: Set image tag to release or branch
run: echo "DOCKER_IMAGE_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV

- name: If master, set to latest
- name: If main, set to latest
run: echo 'DOCKER_IMAGE_TAG=latest' >> $GITHUB_ENV
if: env.DOCKER_IMAGE_TAG == 'master'
if: env.DOCKER_IMAGE_TAG == 'main'

- name: Set Docker Hub repository to username
run: echo "DOCKER_REPOSITORY=jbarlow83" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Control of unpaper

OCRmyPDF uses ``unpaper`` to provide the implementation of the
``--clean`` and ``--clean-final`` arguments.
`unpaper <https://github.com/Flameeyes/unpaper/blob/master/doc/basic-concepts.md>`__
`unpaper <https://github.com/Flameeyes/unpaper/blob/main/doc/basic-concepts.md>`__
provides a variety of image processing filters to improve images.

By default, OCRmyPDF uses only ``unpaper`` arguments that were found to
Expand Down
4 changes: 2 additions & 2 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ system-wide:

.. code-block:: bash
git clone -b master https://github.com/ocrmypdf/OCRmyPDF.git
git clone -b main https://github.com/ocrmypdf/OCRmyPDF.git
python3 -m venv venv
source venv/bin/activate
cd OCRmyPDF
Expand All @@ -664,7 +664,7 @@ To install all of the development and test requirements:

.. code-block:: bash
git clone -b master https://github.com/ocrmypdf/OCRmyPDF.git
git clone -b main https://github.com/ocrmypdf/OCRmyPDF.git
python -m venv
source venv/bin/activate
cd OCRmyPDF
Expand Down
2 changes: 1 addition & 1 deletion docs/languages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ OCRmyPDF uses Tesseract for OCR, and relies on its language packs for all langua
On most platforms, English is installed with Tesseract by default, but not always.

Tesseract supports `most
languages <https://github.com/tesseract-ocr/tesseract/blob/master/doc/tesseract.1.asc#languages>`__.
languages <https://github.com/tesseract-ocr/tesseract/blob/main/doc/tesseract.1.asc#languages>`__.
Languages are identified by standardized three-letter codes (called ISO 639-2 Alpha-3).
Tesseract's documentation also lists the three-letter code for your language.
Some are anglicized, e.g. Spanish is ``spa`` rather than ``esp``, while others
Expand Down
2 changes: 1 addition & 1 deletion src/ocrmypdf/_exec/unpaper.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from ocrmypdf.subprocess import get_version, run

# unpaper documentation:
# https://github.com/Flameeyes/unpaper/blob/master/doc/basic-concepts.md
# https://github.com/Flameeyes/unpaper/blob/main/doc/basic-concepts.md


if sys.version_info >= (3, 10):
Expand Down

0 comments on commit a80e7a1

Please sign in to comment.